Sebastian Zagrodzki
|
4add66ae0e
|
move things around, to keep list of the devices at the beginning.
|
2017-03-10 07:39:51 -05:00 |
|
Sebastian Zagrodzki
|
d392ad305d
|
Tests for OpenVidPid
|
2017-03-10 07:38:54 -05:00 |
|
Sebastian Zagrodzki
|
4b17678362
|
remove a call to libusb_open_device_with_vid_pid, as it's just a
convenience wrapper. Reimplement the same trivial wrapper in Go.
|
2017-03-10 07:22:04 -05:00 |
|
Sebastian Zagrodzki
|
5608fa49e7
|
remove superfluous imports
|
2017-03-10 07:09:12 -05:00 |
|
Sebastian Zagrodzki
|
a787d0a1d1
|
Modify the test for device list, drop noop/multiple contexts.
|
2017-03-10 07:08:35 -05:00 |
|
Sebastian Zagrodzki
|
c918a7e503
|
Skip the test, until rewritten.
|
2017-03-10 07:08:00 -05:00 |
|
Sebastian Zagrodzki
|
8af7ddc71b
|
add two device descriptors
|
2017-03-10 07:07:44 -05:00 |
|
Sebastian Zagrodzki
|
c2776f302f
|
Merge branch 'master' into libusb_wrappers_tests
|
2017-03-10 07:01:29 -05:00 |
|
zagrodzki
|
b5abadf3f0
|
Merge pull request #39 from kylelemons/libusb_wrappers
Libusb wrappers
|
2017-03-10 06:52:56 -05:00 |
|
Sebastian Zagrodzki
|
0099228bc3
|
started adding fakelibusb functions for testing device.go
|
2017-03-06 11:38:03 +01:00 |
|
Sebastian Zagrodzki
|
bed02e9838
|
A benchmark on the trivial cgo call, to assess overhead of different
ways of calling out to cgo.
|
2017-03-01 10:51:17 +01:00 |
|
Sebastian Zagrodzki
|
2d51a51ec5
|
newEndpoint no longer references *Device, but receives individual values
extracted from the device. Makes testing easier.
|
2017-02-26 21:47:47 +01:00 |
|
Sebastian Zagrodzki
|
d0859b8c47
|
Pass all required info to newEndpoint.
|
2017-02-26 21:44:15 +01:00 |
|
Sebastian Zagrodzki
|
676cb78cae
|
unwrap the nested ifs
|
2017-02-26 21:43:56 +01:00 |
|
Sebastian Zagrodzki
|
c0d81e08a8
|
use a shared fakelibusb for mocking
|
2017-02-26 21:14:04 +01:00 |
|
Sebastian Zagrodzki
|
8addfb562f
|
updated submit interface and added data() method.
|
2017-02-26 21:13:31 +01:00 |
|
Sebastian Zagrodzki
|
9eebb871cb
|
Use fake libusb. Add testcase descriptions.
|
2017-02-26 21:13:09 +01:00 |
|
Sebastian Zagrodzki
|
6caeb9d701
|
remove transferIntf, instead rely on transfer.go "usbTransfer", but with
a fake libusb xfer underneath.
|
2017-02-26 21:12:18 +01:00 |
|
Sebastian Zagrodzki
|
c2167157be
|
Move transfer_fakelibusb to fakelibusb, used in other tests too.
Change the interface a bit.
|
2017-02-26 21:08:08 +01:00 |
|
Sebastian Zagrodzki
|
00dbfd23dd
|
done channel is now initialized on submit.
add a data() method, to avoid reaching into any xfer fields.
|
2017-02-26 21:02:29 +01:00 |
|
Sebastian Zagrodzki
|
69f9eb93e2
|
When terminating the Context, wait for the background goroutine
to sync on c.done channel before exiting.
|
2017-02-24 09:36:17 +01:00 |
|
Sebastian Zagrodzki
|
81e9253f49
|
no more C in transfer.go
|
2017-02-23 10:46:04 +01:00 |
|
Sebastian Zagrodzki
|
bf3b23ccd2
|
move all transfer C parts to libusb.go to alloc()
|
2017-02-23 10:45:35 +01:00 |
|
Sebastian Zagrodzki
|
21d53c9180
|
usb.go no longer needs "C"
|
2017-02-23 10:39:50 +01:00 |
|
Sebastian Zagrodzki
|
74b932b022
|
Duh, missing libusb.go...
|
2017-02-23 10:38:25 +01:00 |
|
Sebastian Zagrodzki
|
82184ea552
|
make libusbDevHandle part of alloc()
|
2017-02-23 10:29:24 +01:00 |
|
Sebastian Zagrodzki
|
cc135fe616
|
move all libusb wrappers to libusb.go.
|
2017-02-23 10:25:02 +01:00 |
|
Sebastian Zagrodzki
|
577447ecbf
|
s/newRealUSBTransfer/newLibUSBTransfer/
|
2017-02-22 23:52:28 +01:00 |
|
Sebastian Zagrodzki
|
313ba15ee6
|
unexport read/write timeout.
|
2017-02-22 23:51:36 +01:00 |
|
Sebastian Zagrodzki
|
01ec3a240e
|
use named receiver in all methods for nicer indentation.
|
2017-02-22 23:36:28 +01:00 |
|
Sebastian Zagrodzki
|
9fdd8c7eb8
|
Rename epSetup to epCfg.
|
2017-02-22 01:36:36 +01:00 |
|
Sebastian Zagrodzki
|
34c00f398b
|
- more tests, for "out" endpoint.
|
2017-02-22 01:35:13 +01:00 |
|
Sebastian Zagrodzki
|
ea2d93bbca
|
Merge branch 'master' into endpoint_tests
|
2017-02-22 01:04:45 +01:00 |
|
Sebastian Zagrodzki
|
fc1be79d5d
|
range xfers
|
2017-02-22 01:00:27 +01:00 |
|
Sebastian Zagrodzki
|
0e46520137
|
change test slightly, add test for write on in endpoint
|
2017-02-22 00:58:50 +01:00 |
|
Sebastian Zagrodzki
|
c7c647e701
|
First tests.
|
2017-02-19 16:04:16 +01:00 |
|
Sebastian Zagrodzki
|
2efb1a354f
|
Use newEndpoint() for initialization. Add an indirection for
newUSBTransfer.
|
2017-02-19 15:35:35 +01:00 |
|
Sebastian Zagrodzki
|
360740e76c
|
Cast libusb_transfer explicitly, to make Go 1.8 happy.
|
2017-02-18 18:13:22 +01:00 |
|
Sebastian Zagrodzki
|
8eaaee4223
|
Merge remote-tracking branch 'origin/master' into transfer_tests
|
2017-02-18 18:06:00 +01:00 |
|
vincentserpoul
|
303eb08f98
|
comment nitpicking :)
|
2017-02-17 02:48:05 +08:00 |
|
vincentserpoul
|
a431f86bcb
|
comment grammar
|
2017-02-17 02:28:24 +08:00 |
|
vincentserpoul
|
0a1a8e43cd
|
error handling and bool handling
|
2017-02-17 02:00:24 +08:00 |
|
vincentserpoul
|
d8e3995f7c
|
improve comment
|
2017-02-17 02:00:24 +08:00 |
|
vincentserpoul
|
09dcccd0dd
|
add bool handling
|
2017-02-17 02:00:24 +08:00 |
|
vincentserpoul
|
6586e027a6
|
remove systematic detach, add SetAutoDetach method
|
2017-02-17 02:00:24 +08:00 |
|
vincentserpoul
|
7c2897852d
|
detach before claim
|
2017-02-17 02:00:24 +08:00 |
|
Sebastian Zagrodzki
|
fce1a48eba
|
Endpoint no longer needs cgo.
|
2017-02-16 12:05:48 +01:00 |
|
Sebastian Zagrodzki
|
99ec211c43
|
Improve tests - use offsetof to find the position of the iso packet
descriptor in the transfer struct.
|
2017-02-16 12:04:10 +01:00 |
|
Sebastian Zagrodzki
|
ef932806ed
|
more comments about transfer protocol.
|
2017-02-15 18:20:32 +01:00 |
|
Sebastian Zagrodzki
|
0ba09a9942
|
Move device handle to newUSBTransfer args, remove separate attach()
|
2017-02-14 01:24:20 +01:00 |
|