karalabe / hid

Gopher Interface Devices (USB HID)
Other
263 stars 131 forks source link

hid: Support sending & retrieving feature reports #13

Closed neverpanic closed 5 years ago

neverpanic commented 6 years ago

Some USB devices require sending a feature report before they will answer to read requests. Implement wrapper functions for the hidapi hid_send_feature_report and hid_get_feature_report functions to support doing so.

I have tested this on macOS.

Note that this is only my second time writing Go, so please pull with review and care.

See also #10.

stamp commented 5 years ago

@karalabe @fjl could you consider merging this one? Seems to work just fine in linux as well :)

pafuent commented 5 years ago

I tested just the SendFeatureReport() on a Win10 and it also works

kpeu3i commented 5 years ago

@neverpanic, great work! @karalabe maybe it's time to merge this PR?

muesli commented 5 years ago

Anything still blocking this?

muesli commented 5 years ago

@karalabe I hope this doesn't come across as offensive, it's really not meant that way. If you just don't have the time for it currently, I'll understand. But since I'm depending on this library with a project, I'm wondering: are you still planning to maintain this library or shall we concentrate on a fork?

fjl commented 5 years ago

Sorry for the delay.

muesli commented 5 years ago

Thank you!