Skip to content

Commit

Permalink
Implement RAW_IO with WinUSB
Browse files Browse the repository at this point in the history
  • Loading branch information
JVital2013 committed Sep 21, 2024
1 parent 17f3943 commit f2aa678
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions host/libhackrf/src/hackrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,13 @@ static int hackrf_open_setup(libusb_device_handle* usb_device, hackrf_device** d
return HACKRF_ERROR_NO_MEM;
}

// WinUSB: Use RAW_IO to improve throughput on RX
//#if LIBUSB_API_VERSION >= 0x0100010B
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;
Expand Down

0 comments on commit f2aa678

Please sign in to comment.