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