Example #1
0
        private void resetDevice(CBUS pinNumber)
        {
            byte mask = 0xFF;

            mask ^= (byte)((int)pinNumber << 1);
            FtdiDevice.SetBitMode(mask, CBUSBitbang);
            Thread.Sleep(100);
            FtdiDevice.SetBitMode(0xFF, CBUSBitbang);
        }
Example #2
0
 private void resetDevice(CBUS pinNumber)
 {
     byte mask = 0xFF;
     mask ^= (byte)((int)pinNumber<<1);
     FtdiDevice.SetBitMode(mask, CBUSBitbang);
     Thread.Sleep(100);
     FtdiDevice.SetBitMode(0xFF, CBUSBitbang);
 }