Sebastian Zagrodzki
da849d96b5
Add context-aware read/write ( #57 )
...
Adds ReadContext/WriteContext methods to endpoints and to streams. Update rawread example tool to use ReadContext for implementation of "timeout" flag.
2018-11-05 15:33:31 +01:00
zagrodzki
1aaa100bdb
Allocate libusb buffers in C ( #11 )
...
* add alloc/free_transfer_and_buffer. Manages the buffer memory on the C
side.
* switch libusb.go to use the new alloc/free_transfer_and_buffer. Add
a new buffer() call to get access to the allocated buffer as a Go slice.
* Fake USB transfer uses the new alloc/free/buffer interface.
* Switch to the new libusb.alloc signature, where libusb owns the buffer.
* newUSBTransfer now allocates a separate buffer, do a copy on
endpoint.transfer.
* newUSBTransfer will now allocate it's own buffer.
* Enable autodetach in rawread.
2017-08-29 12:11:04 +02:00
Sebastian Zagrodzki
f87a74e39f
Update uses of List/OpenDevices
2017-06-13 10:56:35 +02:00
Sebastian Zagrodzki
9f04f7bdf0
Replace anonymous DeviceDesc field import with a named "Desc" field.
2017-05-06 02:47:24 +02:00
Sebastian Zagrodzki
fedc9864dd
rename Descriptor to DeviceDesc
2017-05-06 02:36:45 +02:00
Sebastian Zagrodzki
5200a36191
Move files from gousb/usb to gousb
2017-05-06 00:11:11 +02:00
Sebastian Zagrodzki
e33e0fef82
s/kylelemons/google/ in the new repo.
2017-05-05 23:41:11 +02:00
Sebastian Zagrodzki
60d0aba507
Use int for Bus/Addr, not uint8.
2017-04-29 02:12:04 +02:00
Sebastian Zagrodzki
80f3c60b2b
Better error messages.
...
Update rawread to use the new endpoint interface.
2017-04-29 00:41:26 +02:00
Sebastian Zagrodzki
6c60468e06
Update to use ints instead of uint8s
2017-04-26 22:23:58 +02:00
Sebastian Zagrodzki
eed8b77a16
NewStream takes int now.
2017-04-26 21:35:50 +02:00
Sebastian Zagrodzki
b50bc8761f
First version of streaming transfers.
2017-04-23 10:45:04 +02:00
Sebastian Zagrodzki
961f271746
rename setup to alternate, print endpoint description first.
2017-04-10 02:44:23 +02:00
Sebastian Zagrodzki
57b10f0dd3
Remove OpenEndpoint, add InEndpoint for Read transfers.
2017-04-10 01:00:53 +02:00
Sebastian Zagrodzki
aaef575b06
rename Setups to AltSettings
2017-04-09 20:45:35 +02:00
Sebastian Zagrodzki
c44b5b7307
OpenEndpoint now uses endpoint number, not endpoint address.
2017-04-09 18:57:43 +02:00
Sebastian Zagrodzki
b70848cf73
start renaming the constants to Go-style.
2017-03-27 22:23:47 +02:00
Nikola Kovacs
f19e934f9f
Ignore rawread and usbid/regen binaries
2017-03-26 18:40:51 +02:00
Sebastian Zagrodzki
0588c4e512
Remove the bench option, add num_reads instead for controlling how many
...
reads to send. Default is read forever.
2017-02-10 13:02:48 +01:00
Sebastian Zagrodzki
66db4a686b
Merge flags vid/pid and bus/addr into single flags, vidpid and busaddr.
2017-02-10 12:48:44 +01:00
Sebastian Zagrodzki
91119ca790
Add a benchmark option.
2017-02-08 23:28:52 +01:00
Sebastian Zagrodzki
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.
2017-02-08 22:30:03 +01:00
Sebastian Zagrodzki
beb4fdbac5
Update copyright notes for multiple contributors.
2017-02-07 07:37:57 +01: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
Kyle Lemons
96f1a0a774
Update LICENSE
2013-08-14 19:22:55 -07:00
Kyle Lemons
1723f5a08d
gofmt
2012-07-22 23:40:25 -07:00
Kyle Lemons
71bbb57904
Checkpoint
2012-04-09 17:37:25 -07:00