STBootLib.STBoot.Close C# (CSharp) Méthode

Close() public méthode

public Close ( ) : void
Résultat void
        public void Close()
        {
            /* close permitted? */
            if (sp != null && sp.IsOpen)
                sp.Close();
        }

Usage Example

Exemple #1
0
 /* 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();
     }
 }
All Usage Examples Of STBootLib.STBoot::Close