66db4a686bMerge flags vid/pid and bus/addr into single flags, vidpid and busaddr.
Sebastian Zagrodzki
2017-02-10 12:48:44 +01:00
a5290248deMerge vid/pid and bus/addr into single flags vidpid and busaddr.
Sebastian Zagrodzki
2017-02-10 12:43:56 +01:00
b4393ac372Merge branch 'rawread_benchmark'
Sebastian Zagrodzki
2017-02-09 22:52:55 +01:00
c792f8e028replace allocTransfer with a new more generic newUSBTransfer
Sebastian Zagrodzki
2017-02-09 22:51:28 +01:00
de92c7047bmake methods of usbTransfer private
Sebastian Zagrodzki
2017-02-09 22:38:16 +01:00
80b2741a2cRename 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
66a1f45cd9Remove 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
91119ca790Add a benchmark option.
Sebastian Zagrodzki
2017-02-08 23:28:52 +01:00
c27a77b547Pass 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
a35725f4fbWhen 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
1755936932Change 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
edeaa30938Merge pull request #26 from kylelemons/authors_and_contributing
zagrodzki
2017-02-07 19:20:29 +01:00
9e9783177aAdd Kyle's mail addr.
Sebastian Zagrodzki
2017-02-07 19:17:34 +01:00
1800586f77Merge branch 'master' into authors_and_contributing
Sebastian Zagrodzki
2017-02-07 09:44:41 +01:00
94519ea824Add a list of contributors.
Sebastian Zagrodzki
2017-02-07 09:37:52 +01:00
cd91046028Merge pull request #21 from thorduri/iso-callback-prototype
zagrodzki
2017-02-07 08:24:36 +01:00
8258ffe0a7Define the contribution process.
Sebastian Zagrodzki
2017-02-07 08:04:38 +01:00
beb4fdbac5Update copyright notes for multiple contributors.
Sebastian Zagrodzki
2017-02-07 07:37:57 +01:00
1445b71bedMerge pull request #24 from zagrodzki/master
zagrodzki
2017-02-06 20:43:46 +01:00
397a363de1Revert "Ditto for device_test, move to usb_test package."
Sebastian Zagrodzki
2017-02-06 20:26:32 +01:00
aafad620e6Revert "Move usb_test to a separate package, in line with opensource Go"
Sebastian Zagrodzki
2017-02-06 20:26:23 +01:00
9849c8088eAdd a reference to libusb ticket on incorrect max iso packet size.
Sebastian Zagrodzki
2017-02-05 16:49:02 +01:00
c1b87403faDitto for device_test, move to usb_test package.
Sebastian Zagrodzki
2017-02-05 16:46:56 +01:00
4d60ebb065Move 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
f13728c6e1Set 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
4319ef2cc2Revert "Use the calculated max iso packet size."
Sebastian Zagrodzki
2017-02-05 16:00:53 +01:00
a6e284610bUse the calculated max iso packet size.
Sebastian Zagrodzki
2017-02-05 04:16:57 +01:00
82210bc585Aappease C99 by providing a prototype for iso_callback().
Thordur Bjornsson
2016-09-26 17:51:26 +02:00
efc611f455Generate the USB ID data using 'go generate'
Kyle Lemons
2016-04-03 20:07:28 -07:00
ec7ebf8e87Update baked-in USB IDs
Kyle Lemons
2016-04-03 20:01:12 -07:00