public void ModeReceive() { SetTransceiverMode(TransceiverMode.Receive); Device.EnableBufferedRead(EP_RX, 4, 64); RxPipeReader = Device.BufferedGetPacketInterface(EP_RX); Device.BufferedReadNotifyPipe(EP_RX, RxDataCallback); }
public RgbButton(WinUSBEnumeratedDevice dev) { BaseDevice = new WinUSBDevice(dev); ButtonColors = new RGBColor[4]; ButtonValues = new int[4]; ButtonPressed = new bool[4]; BaseDevice.EnableBufferedRead(IN_PIPE); BaseDevice.BufferedReadNotifyPipe(IN_PIPE, NewDataCallback); EnableButtonData(); }