Merge pull request #1483 from JVital2013/rawio

Implement RAW_IO with WinUSB
This commit is contained in:
Martin Ling
2025-09-16 12:35:50 +01:00
committed by GitHub

View File

@@ -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;