Exemple #1
0
 public static bool InterfaceDisconnect()
 {
     try
     {
         if (_handleFtdi != (IntPtr)0)
         {
             Ftd2Xx.FT_SetBitMode(_handleFtdi, 0x00, Ftd2Xx.FT_BITMODE_RESET);
             Ftd2Xx.FT_Close(_handleFtdi);
             _handleFtdi = (IntPtr)0;
         }
     }
     catch (Exception)
     {
         return(false);
     }
     return(true);
 }