Replies: 1 comment
-
tud_vendor_control_xfer_cb() is called when a transaction is complete e.g if
so if you want to transfer data, you must preare that in setup stage. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I'm trying to work out what the correct way to send and receive a couple of bytes to the control endpoint with a vendor request. I have the following code, which seems to work, and I was wondering if the tud_control_xfer was in the right place. I assumed the right place would be in CONTROL_STAGE_DATA, but that doesn't actually work. What works is to put the tud_control_xfer in the SETUP, both for IN and OUT transactions.
This code works:
Assuming this is correct, I can add an example with host side too so people have a place to reference an implementation like this.
Beta Was this translation helpful? Give feedback.
All reactions