Is there any way to respond to Get_Report requests over the control endpoint without modifying the source code? #2698
Unanswered
justinjradi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I noticed that in hid_device.c,
tud_control_xfer
is called aftertud_hid_get_report_cb
is called. As I understand, that means that if you want to respond to a Get_Report request over the control endpoint, just implementing the callback would result in two responses for one request. I can only think of two ways around this:Either way, both methods involve modifying hid_device.c. Is there any way to do this without modfying the source code?
If it's helpful, here's what
hidd_control_xfer_cb
in hid_device.c looks after taking the second route. My modification is under the class-specific request section:Beta Was this translation helpful? Give feedback.
All reactions