Commit Graph

  • 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
  • a19ac0f654 Per http://www.beyondlogic.org/usbnutshell/usb5.shtml#EndpointDescriptors: bits 0-3 are endpoint number, 4-6 reserved, set to zero, bit 7 is direction. Bits 0-3 is 0x0f. Sebastian Zagrodzki 2017-02-08 22:35:45 +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
  • edeaa30938 Merge pull request #26 from kylelemons/authors_and_contributing zagrodzki 2017-02-07 19:20:29 +01:00
  • 9e9783177a Add Kyle's mail addr. Sebastian Zagrodzki 2017-02-07 19:17:34 +01:00
  • 1800586f77 Merge branch 'master' into authors_and_contributing Sebastian Zagrodzki 2017-02-07 09:44:41 +01:00
  • 94519ea824 Add a list of contributors. Sebastian Zagrodzki 2017-02-07 09:37:52 +01:00
  • cd91046028 Merge pull request #21 from thorduri/iso-callback-prototype zagrodzki 2017-02-07 08:24:36 +01:00
  • 8258ffe0a7 Define the contribution process. Sebastian Zagrodzki 2017-02-07 08:04:38 +01:00
  • beb4fdbac5 Update copyright notes for multiple contributors. Sebastian Zagrodzki 2017-02-07 07:37:57 +01:00
  • 1445b71bed Merge pull request #24 from zagrodzki/master zagrodzki 2017-02-06 20:43:46 +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
  • 9397824026 Update README [skip ci] Kyle Lemons 2016-04-03 10:38:12 -07:00
  • 1b4ec4416e Remove TestNoop from whitelist Kyle Lemons 2016-04-03 10:27:53 -07:00
  • 8736c99b74 Whitelist tests for travis-ci Kyle Lemons 2016-04-03 10:25:58 -07:00
  • 527c5b8a3f Add travis-ci config Kyle Lemons 2016-04-03 10:18:00 -07:00
  • 0042b0dd4f report correct error during Enum failure Kyle Lemons 2016-04-02 13:20:31 -07:00
  • 497c20341d idiomatic slice append Kyle Lemons 2016-04-02 13:19:59 -07:00
  • b41ee259db Merge pull request #14 from nodtem66/master Kyle Lemons 2016-03-27 09:26:11 -07:00
  • 57beddde7a fix readme.m accordding to github.com/kylelemons/gousb/pull/14#issuecomment-115348193 nodtem66 2015-06-26 23:49:19 +07:00
  • 3138826f8a fix cgo build directive nodtem66 2015-04-08 01:25:20 +07:00
  • c7d3dad580 add unit test device_test.go nodtem66 2015-03-04 01:36:51 +07:00
  • f3b93aa5fa handle error OpenDeviceWithVidPid and add GetStringDescriptor nodtem66 2015-03-04 01:32:24 +07:00
  • 4bf19c7f86 undo the edited usb_test.go in TestMultipleContexts to origin nodtem66 2015-03-03 00:24:24 +07:00
  • 897ea727f3 tested for libusb-1.0.19 on windows (MinGw) nodtem66 2015-03-03 00:20:31 +07:00
  • ffbf8dd410 update README.md Jirawat I. 2015-01-10 05:55:23 +07:00
  • a00903cb65 add installation for Window in readme.md nodtem66 2015-01-10 05:44:09 +07:00
  • b8ca4aadc7 Mention the Google CLA Kyle Lemons 2014-06-19 23:14:30 -07:00
  • 992853faa2 Move client code into its own repo Kyle Lemons 2013-11-22 00:38:02 -08:00
  • e929ab6058 Basic decoding of XBox One controller Kyle Lemons 2013-11-22 00:25:46 -08:00
  • b9f2aa720b Fix up usb to pass reliably and to work cross-platform Kyle Lemons 2013-08-14 19:38:57 -07:00
  • ca13741ba1 See https://github.com/kylelemons/gousb/pull/7 Kyle Lemons 2013-08-14 19:23:18 -07:00
  • 96f1a0a774 Update LICENSE Kyle Lemons 2013-08-14 19:22:55 -07:00
  • f0ae807096 Fix race condition with C.libusb_handle_events that might still being called while libusb_exit is executed. Use C.libusb_handle_events_timeout_completed which accepts timeouts and pass 100 ms timeout. This is the recommended way to deal with this issue, see http://libusb.sourceforge.net/api-1.0/group__poll.html#ga43e52b912a760b41a0cf8a4a472fbd5b and http://libusb.sourceforge.net/api-1.0/group__poll.html#ga4989086e3f0327f3886a4c474ec7c327 Ivan Krasin 2013-08-14 00:34:00 -07:00
  • e5e703175c Add a test case that triggers 'handle_events: error: libusb: unknown error [code -99]' Ivan Krasin 2013-08-14 00:25:49 -07:00
  • f0081d8ff9 add xbox example and make some changes to support it Kyle Lemons 2013-06-22 08:38:58 -07:00
  • 98ceb07d97 Merge branch 'master' of github.com:kylelemons/gousb Kyle Lemons 2013-06-18 00:43:40 -07:00
  • 969c2fa8e5 Merge pull request #4 from krasin/request-type Kyle Lemons 2013-06-18 00:42:56 -07:00
  • 4a779282d1 Merge pull request #5 from krasin/fix-multiple-endpoints Kyle Lemons 2013-06-18 00:42:02 -07:00
  • b0713f61b4 Allow opening multiple endpoints for the same device, if configuration is also the same. Ivan Krasin 2013-06-16 20:29:54 -07:00
  • 28a4c23af3 Add RequestType enum values to be passed to Device.Control() Ivan Krasin 2013-06-16 19:54:30 -07:00
  • 333941e08d Update links to godoc.org Kyle Lemons 2013-04-07 12:35:37 -07:00
  • 67ecea5706 Update readme with instructions for darwin Kyle Lemons 2013-04-07 12:32:53 -07:00
  • 88b4ba82fe Merge branch 'master' of github.com:kylelemons/gousb Kyle Lemons 2013-04-07 12:29:05 -07:00
  • 2a0c17dbb4 Add script to fix libusb on darwin Kyle Lemons 2013-04-07 12:28:45 -07:00
  • ac35be6d92 Merge pull request #2 from pjvds/master Kyle Lemons 2013-01-06 14:11:08 -08:00
  • c78a929b29 Fix get command urls Pieter Joost van de Sande 2013-01-06 12:41:20 +01:00
  • 6844d749d9 Add LICENSE file (CDDL-1.0) Kyle Lemons 2012-12-07 20:56:40 -05:00
  • 8d73a5775d Fix GC race condition with callback pointer Kyle Lemons 2012-07-25 00:40:54 -07:00
  • 1723f5a08d gofmt Kyle Lemons 2012-07-22 23:40:25 -07:00
  • b8ed23c967 remove swap file Kyle Lemons 2012-07-22 23:37:31 -07:00
  • e5fd0ba6e3 Fix double free issues Kyle Lemons 2012-07-22 23:36:03 -07:00
  • acb3aed8c3 Working on iso Kyle Lemons 2012-04-16 00:18:53 -04:00
  • 96ca30cdbb Fix ordering of config Kyle Lemons 2012-04-15 22:43:55 -04:00
  • 1e5170b125 Working on iso Kyle Lemons 2012-04-15 18:58:18 -07:00
  • 9849a972c6 Added isochronous transfer Kyle Lemons 2012-04-12 20:15:30 -07:00
  • 71bbb57904 Checkpoint Kyle Lemons 2012-04-09 17:37:25 -07:00
  • 0c8ed5357c Add first round of bulk/interrupt I/O Kyle Lemons 2012-03-27 23:04:18 -07:00
  • c8d19d2d0f Renames Kyle Lemons 2012-03-27 20:30:16 -07:00
  • 5fef64fd78 gofmt Kyle Lemons 2012-03-27 19:40:32 -07:00
  • e5a0531ed2 Cleanup Kyle Lemons 2012-03-27 19:40:22 -07:00
  • 25c01a9f60 Remove (*Config).Close() Kyle Lemons 2012-03-27 18:40:32 -07:00
  • be26b2f34b Tweaks and renames Kyle Lemons 2012-03-27 18:34:56 -07:00
  • 8a56742c74 Improve documentation Kyle Lemons 2012-03-27 00:09:18 -07:00
  • 78e551a40d Package documentation Kyle Lemons 2012-03-26 23:58:51 -07:00
  • 1190ab988a Fix missing parenthesis Kyle Lemons 2012-03-26 23:54:30 -07:00
  • de63823965 Comment/test cleanup Kyle Lemons 2012-03-26 23:53:08 -07:00
  • e5d6effd74 Add doc links Kyle Lemons 2012-03-26 23:11:53 -07:00
  • 965cf762a2 Add README Kyle Lemons 2012-03-26 23:08:44 -07:00
  • 2da2ce1e17 gofmt Kyle Lemons 2012-03-26 22:51:47 -07:00
  • 86ebf94158 Output cleanup Kyle Lemons 2012-03-26 22:51:37 -07:00
  • 0f572675c9 Tidy up interfaces and pretty printing Kyle Lemons 2012-03-26 22:37:25 -07:00
  • ba2dd5404f Add config, interfaces, endpoints, etc Kyle Lemons 2012-03-26 00:06:53 -07:00
  • 804a3c6ab8 First cut Kyle Lemons 2012-03-25 04:11:01 -07:00