Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial support for HID descriptors #205

Merged
merged 7 commits into from
Oct 28, 2024
Merged

Conversation

martinling
Copy link
Member

This PR adds some groundwork for supporting class-specific descriptors, where the meaning of the bDescriptorType depends on the context of the relevant interface class.

This is then used to identify and decode HID descriptors attached to an interface, where the interface class provides the context:

image

And to recognise requests for HID report descriptors, where the class of the recipient is known from previous traffic:

image

Note that HID report descriptors are not yet decoded or added to the device tree, that will come later.

@miek
Copy link
Member

miek commented Oct 28, 2024

This has some conflicts now that #196 is merged, could you rebase?

@martinling
Copy link
Member Author

@miek Rebased now.

@miek
Copy link
Member

miek commented Oct 28, 2024

Thanks!

@miek miek merged commit 01ee4a4 into greatscottgadgets:main Oct 28, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants