mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-03 05:55:18 +01:00
Merge pull request #1483 from JVital2013/rawio
Implement RAW_IO with WinUSB
This commit is contained in:
@@ -728,6 +728,13 @@ static int hackrf_open_setup(libusb_device_handle* usb_device, hackrf_device** d
|
||||
return HACKRF_ERROR_NO_MEM;
|
||||
}
|
||||
|
||||
#if LIBUSB_API_VERSION >= 0x0100010C
|
||||
// WinUSB: Use RAW_IO to improve throughput on RX
|
||||
if (libusb_endpoint_supports_raw_io(usb_device, RX_ENDPOINT_ADDRESS) == 1) {
|
||||
libusb_endpoint_set_raw_io(usb_device, RX_ENDPOINT_ADDRESS, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
lib_device->usb_device = usb_device;
|
||||
lib_device->transfers = NULL;
|
||||
lib_device->callback = NULL;
|
||||
|
||||
Reference in New Issue
Block a user