Skip to content

Navigation Menu

Sign in
Sign up

need guidance on how to fill the webhid HIDCollectionInfo using hidapi APIs #629

Unanswered
Codeskb asked this question in Q&A
Discussion options

Hello all, I am writing an adapter between webhid and hidapi. I need some guidance how to fill the HIDCollectionInfo for a particular device using hidapi APIs. Webhid provides an algorithm (https://wicg.github.io/webhid/#dfn-parsing-the-report-descriptor) how to parse the raw bytes of report descriptor and I see that hidapi provides hid_get_report_descriptor to get the raw data. Did anyone attempt to do this ? Is there any implementation I can take as reference ?
Thanks.

You must be logged in to vote

Replies: 1 comment

Comment options

Essentially I believe this discussion is not directly related to HIDAPI.
As you already pointed, HIDAPI provides hid_get_report_descriptor to get a RAW HID Report Descriptor.

It is probably best to post this somewhere at webhid community (is there a discussion/forum/etc.?): "how to fill the HIDCollectionInfo having the RAW HID Report Descriptor".
I have a feeling someone has already done it in the past and you might be able to find the complete implementation to do so.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /