You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hid_set_output_report = hid_write (hid_write is even a bit more flexible from functional point of view)
hid_get_output_report/hid_set_input_report - I don't believe HID standard defines this operations. USB implementation defines it, but others may not. Windows backend definitely doesn't support those.
macOS backend technically could implement such thing, but I'm not sure whether it is functional.
And of course, the device itself has to support such operation.
Please keep in mind, that hidapi is a cross-platform library in a first place, and it is not intended to implement platform-specific things or non-standard extensions.
As for get_input_report implementation on hidraw backend - Linux kernel itself didn't support it as far as 4 months ago, so that one is yet to be added to hidapi.
hid_set_output_report - But won't hid_write the OUT interrupt EP if a device has such a thing instead of doing a control transfer ?
hid_get_input_report - Yeah, right it's recent, I didn't check the history of the kernel to see when it was done, I just opened the latest hidraw doc.
Anyway, feel free to close, turns out that I misread the trace ... (the raw hw capture usb trace showed a SET/GET_REPORT but I missed the fact the report type was set to feature 🤦 ).
Looking at the hidraw API I see thos ioctl :
HIDIOCSINPUT
HIDIOCGINPUT
HIDIOCSOUTPUT
HIDIOCGOUTPUT
which is exactly the functions I'd need for a device I have here but :
The text was updated successfully, but these errors were encountered: