66db4a686b
Merge flags vid/pid and bus/addr into single flags, vidpid and busaddr.
Sebastian Zagrodzki
2017-02-10 12:48:44 +01:00
a5290248de
Merge vid/pid and bus/addr into single flags vidpid and busaddr.
Sebastian Zagrodzki
2017-02-10 12:43:56 +01:00
b4393ac372
Merge branch 'rawread_benchmark'
Sebastian Zagrodzki
2017-02-09 22:52:55 +01:00
c792f8e028
replace allocTransfer with a new more generic newUSBTransfer
Sebastian Zagrodzki
2017-02-09 22:51:28 +01:00
de92c7047b
make methods of usbTransfer private
Sebastian Zagrodzki
2017-02-09 22:38:16 +01:00
80b2741a2c
Rename Transfer to usbTransfer, it's internal to gousb. Move usbTransfer and it's methods to transfer.go, it's not only used by iso transfers.
Sebastian Zagrodzki
2017-02-09 22:36:51 +01:00
66a1f45cd9
Remove the artificial limit. The worst case is a longer timeout for the transfer is required.
Sebastian Zagrodzki
2017-02-08 23:29:17 +01:00
91119ca790
Add a benchmark option.
Sebastian Zagrodzki
2017-02-08 23:28:52 +01:00
c27a77b547
Pass the max buffer size down to the alloc_transfer. Use the number of iso packets matching the buffer size. This guarantees that the transfer size is smaller or equal to the buffer. Device will transfer less data if iso transfer response does not utilize the maximum available number of iso packets per microframe or doesn't fill the packets entirely.
Sebastian Zagrodzki
2017-02-08 23:02:08 +01:00
a35725f4fb
When extracting transfer data, pay attention to the size of the buffer provided by the user, which may be smaller than the length of data received in the transfer.
Sebastian Zagrodzki
2017-02-08 22:37:12 +01:00
1755936932
Change how device is addressed, add alternative --bus/--addr flags. Print all diagnostics to the log (stderr). Capture the data from the specified endpoint and print it to stdout.
Sebastian Zagrodzki
2017-02-08 22:30:03 +01:00
397a363de1
Revert "Ditto for device_test, move to usb_test package."
Sebastian Zagrodzki
2017-02-06 20:26:32 +01:00
aafad620e6
Revert "Move usb_test to a separate package, in line with opensource Go"
Sebastian Zagrodzki
2017-02-06 20:26:23 +01:00
9849c8088e
Add a reference to libusb ticket on incorrect max iso packet size.
Sebastian Zagrodzki
2017-02-05 16:49:02 +01:00
c1b87403fa
Ditto for device_test, move to usb_test package.
Sebastian Zagrodzki
2017-02-05 16:46:56 +01:00
4d60ebb065
Move usb_test to a separate package, in line with opensource Go expectations. Multiple packages per directory are not supported in this realm ;) And with a separate package, the dot import seems unnecessary.
Sebastian Zagrodzki
2017-02-05 16:29:22 +01:00
f13728c6e1
Set the MaxIsoPacket field in the endpoint info if the endpoint is an isochronous endpoint. Use MaxIsoPacket as the iso packet size when preparing the iso transfer.
Sebastian Zagrodzki
2017-02-05 16:20:58 +01:00
4319ef2cc2
Revert "Use the calculated max iso packet size."
Sebastian Zagrodzki
2017-02-05 16:00:53 +01:00
a6e284610b
Use the calculated max iso packet size.
Sebastian Zagrodzki
2017-02-05 04:16:57 +01:00
82210bc585
Aappease C99 by providing a prototype for iso_callback().
Thordur Bjornsson
2016-09-26 17:51:26 +02:00
efc611f455
Generate the USB ID data using 'go generate'
Kyle Lemons
2016-04-03 20:07:28 -07:00
ec7ebf8e87
Update baked-in USB IDs
Kyle Lemons
2016-04-03 20:01:12 -07:00