Add Host HID APIs to set/get protocol and and optional device HID changes protocol callback#244
Open
ayedm1 wants to merge 2 commits intoeclipse-threadx:devfrom
Open
Add Host HID APIs to set/get protocol and and optional device HID changes protocol callback#244ayedm1 wants to merge 2 commits intoeclipse-threadx:devfrom
ayedm1 wants to merge 2 commits intoeclipse-threadx:devfrom
Conversation
Merging changes ahead of hotfix release 202504a
… set/get protocol This pull request adds host HID API functions to get and set the HID protocol (boot vs report mode) and introduces an optional callback for the device side when the protocol changes. - Added new host-side APIs ux_host_class_hid_protocol_set() and ux_host_class_hid_protocol_get() with error checking wrappers. - Added device-side optional callback ux_device_class_hid_set_protocol_callback that is invoked when the protocol changes - Added comprehensive test to verify the new protocol callback functionality
rahmanih
requested changes
Feb 6, 2026
Contributor
rahmanih
left a comment
There was a problem hiding this comment.
IIRC, this PR implements 2 features in HID Device and Host Classes.
please split them in separate commits.
Contributor
Author
in the simulator test, i test the callback with new apis |
Contributor
|
the regression test updates can be made in a separate commit too. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds host HID API functions to get and set the HID protocol (boot vs report mode) and introduces an optional callback for the device side when the protocol changes.