Commit Graph

172 Commits

Author SHA1 Message Date
Sebastian Zagrodzki
aafad620e6 Revert "Move usb_test to a separate package, in line with opensource Go"
This reverts commit 4d60ebb065.
2017-02-06 20:26:23 +01:00
Sebastian Zagrodzki
9849c8088e Add a reference to libusb ticket on incorrect max iso packet size. 2017-02-05 16:49:02 +01:00
Sebastian Zagrodzki
c1b87403fa Ditto for device_test, move to usb_test package. 2017-02-05 16:46:56 +01:00
Sebastian Zagrodzki
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.
2017-02-05 16:29:22 +01:00
Sebastian Zagrodzki
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.
2017-02-05 16:20:58 +01:00
Sebastian Zagrodzki
4319ef2cc2 Revert "Use the calculated max iso packet size."
The libusb_get_max_iso_packet_size ignores the endpoint information and
will return the same size for all endpoints, even if the current
alternative configuration does not support given size.

This reverts commit a6e284610b.
2017-02-05 16:00:53 +01:00
Sebastian Zagrodzki
a6e284610b Use the calculated max iso packet size. 2017-02-05 04:16:57 +01:00
Thordur Bjornsson
82210bc585 Aappease C99 by providing a prototype for iso_callback(). 2016-09-26 17:51:26 +02:00
Kyle Lemons
efc611f455 Generate the USB ID data using 'go generate' 2016-04-03 20:07:28 -07:00
Kyle Lemons
ec7ebf8e87 Update baked-in USB IDs 2016-04-03 20:01:12 -07:00
Kyle Lemons
9397824026 Update README [skip ci] 2016-04-03 10:38:12 -07:00
Kyle Lemons
1b4ec4416e Remove TestNoop from whitelist 2016-04-03 10:27:53 -07:00
Kyle Lemons
8736c99b74 Whitelist tests for travis-ci 2016-04-03 10:25:58 -07:00
Kyle Lemons
527c5b8a3f Add travis-ci config 2016-04-03 10:18:00 -07:00
Kyle Lemons
0042b0dd4f report correct error during Enum failure 2016-04-02 13:20:31 -07:00
Kyle Lemons
497c20341d idiomatic slice append 2016-04-02 13:19:59 -07:00
Kyle Lemons
b41ee259db Merge pull request #14 from nodtem66/master
Add OpenDeviceWithVidPid - thanks nodtem66!
2016-03-27 09:26:11 -07:00
nodtem66
57beddde7a fix readme.m accordding to github.com/kylelemons/gousb/pull/14#issuecomment-115348193
change `window` and `Window` to `windows` and `Windows`
2015-06-26 23:49:19 +07:00
nodtem66
3138826f8a fix cgo build directive 2015-04-08 01:25:20 +07:00
nodtem66
c7d3dad580 add unit test device_test.go 2015-03-04 01:36:51 +07:00
nodtem66
f3b93aa5fa handle error OpenDeviceWithVidPid and add GetStringDescriptor 2015-03-04 01:32:24 +07:00
nodtem66
4bf19c7f86 undo the edited usb_test.go in TestMultipleContexts to origin 2015-03-03 00:24:24 +07:00
nodtem66
897ea727f3 tested for libusb-1.0.19 on windows (MinGw) 2015-03-03 00:20:31 +07:00
Jirawat I.
ffbf8dd410 update README.md 2015-01-10 05:55:23 +07:00
nodtem66
a00903cb65 add installation for Window in readme.md 2015-01-10 05:44:09 +07:00
Kyle Lemons
b8ca4aadc7 Mention the Google CLA 2014-06-19 23:14:30 -07:00
Kyle Lemons
992853faa2 Move client code into its own repo 2013-11-22 00:38:02 -08:00
Kyle Lemons
e929ab6058 Basic decoding of XBox One controller 2013-11-22 00:25:46 -08:00
Kyle Lemons
b9f2aa720b Fix up usb to pass reliably and to work cross-platform 2013-08-14 19:38:57 -07:00
Kyle Lemons
ca13741ba1 See https://github.com/kylelemons/gousb/pull/7
Merge branch 'fix-context-close-race' of https://github.com/krasin/gousb
2013-08-14 19:23:18 -07:00
Kyle Lemons
96f1a0a774 Update LICENSE 2013-08-14 19:22:55 -07:00
Ivan Krasin
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 2013-08-14 00:34:00 -07:00
Ivan Krasin
e5e703175c Add a test case that triggers 'handle_events: error: libusb: unknown error [code -99]' 2013-08-14 00:25:49 -07:00
Kyle Lemons
f0081d8ff9 add xbox example and make some changes to support it 2013-06-22 08:38:58 -07:00
Kyle Lemons
98ceb07d97 Merge branch 'master' of github.com:kylelemons/gousb 2013-06-18 00:43:40 -07:00
Kyle Lemons
969c2fa8e5 Merge pull request #4 from krasin/request-type
Add RequestType enum values to be passed to Device.Control()
2013-06-18 00:42:56 -07:00
Kyle Lemons
4a779282d1 Merge pull request #5 from krasin/fix-multiple-endpoints
Allow opening multiple endpoints for the same device
2013-06-18 00:42:02 -07:00
Ivan Krasin
b0713f61b4 Allow opening multiple endpoints for the same device, if configuration is also the same. 2013-06-16 20:29:54 -07:00
Ivan Krasin
28a4c23af3 Add RequestType enum values to be passed to Device.Control() 2013-06-16 19:54:30 -07:00
Kyle Lemons
333941e08d Update links to godoc.org 2013-04-07 12:35:37 -07:00
Kyle Lemons
67ecea5706 Update readme with instructions for darwin 2013-04-07 12:32:53 -07:00
Kyle Lemons
88b4ba82fe Merge branch 'master' of github.com:kylelemons/gousb 2013-04-07 12:29:05 -07:00
Kyle Lemons
2a0c17dbb4 Add script to fix libusb on darwin 2013-04-07 12:28:45 -07:00
Kyle Lemons
ac35be6d92 Merge pull request #2 from pjvds/master
Fix get command urls
2013-01-06 14:11:08 -08:00
Pieter Joost van de Sande
c78a929b29 Fix get command urls 2013-01-06 12:41:20 +01:00
Kyle Lemons
6844d749d9 Add LICENSE file (CDDL-1.0) 2012-12-07 20:56:40 -05:00
Kyle Lemons
8d73a5775d Fix GC race condition with callback pointer 2012-07-25 00:40:54 -07:00
Kyle Lemons
1723f5a08d gofmt 2012-07-22 23:40:25 -07:00
Kyle Lemons
b8ed23c967 remove swap file 2012-07-22 23:37:31 -07:00
Kyle Lemons
e5fd0ba6e3 Fix double free issues 2012-07-22 23:36:03 -07:00