public void Close()
{
/* close permitted? */
if (sp != null && sp.IsOpen)
sp.Close();
}
/* execute code */ private async Task Jump(uint address) { /* create new programming interface object */ using (var uc = new STBoot()) { /* open device */ uc.Open(portName, baudRate); /* initialize communication */ await uc.Initialize(); /* go! */ await uc.Jump(address); /* end communication */ uc.Close(); } }