Commit Graph

13 Commits

Author SHA1 Message Date
Deomid Ryabkov
757722bf8e Add Device.Manufacturer(), .Product() and .SerialNumber() (#14) 2017-09-04 00:42:55 +02:00
Nico MT
bc91dd3f2c Extend the autodetach behavior
Detach interfaces before trying to change the config, as libusb doesn't handle that automatically.
2017-07-21 21:15:49 +02:00
Filzmaier Josef
9fc0278283 Don't reset the configuration if desired config is already active (#6)
Fixes issue #5
2017-06-29 14:31:12 +02:00
Sebastian Zagrodzki
5f9276965f Start decoding descriptor in Go, rather than relying on libusb helper
functions. Descriptor format is defined explicitly by the USB spec.
2017-05-06 23:42:52 +02:00
Sebastian Zagrodzki
d68d0c1a41 Rename more "Info" fields to "Desc" 2017-05-06 02:52:19 +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
e5961a7cc4 rename ConfigInfo to ConfigDesc 2017-05-06 02:40:09 +02:00
Sebastian Zagrodzki
fedc9864dd rename Descriptor to DeviceDesc 2017-05-06 02:36:45 +02:00
Sebastian Zagrodzki
86c8e27edf moar comments. Add a done callback to DefaultInterface return values. 2017-05-06 02:30:16 +02:00
Sebastian Zagrodzki
eb5500f387 Move Control from Config to Device.
Rename Default to DefaultInterface.
2017-05-06 02:16:22 +02:00
Sebastian Zagrodzki
1c9a11b1ce Remove "libusb" from the comments. 2017-05-06 00:31:04 +02:00
Sebastian Zagrodzki
9623c1ba8d replace ActiveConfig with ActiveConfigNum.
Add a Default() helper that simplifies setup for uncomplicated USB
devices.
2017-05-06 00:20:43 +02:00
Sebastian Zagrodzki
5200a36191 Move files from gousb/usb to gousb 2017-05-06 00:11:11 +02:00