Is usbd_edpt_claim() also intended to be used for the control endpoint? #2662
RockyZeroFour
started this conversation in
General
Replies: 1 comment
-
|
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
-
Is the function
usbd_edpt_claim()
for claiming an endpoint before sending data over it also intended to be used for the control endpoint?To my understanding that function is only for the non-control endpoints. It's also only used in the driver. If I get it right, the control endpoint also has an independent handling which can be busy but not be claimed.
Right now any endpoint can be successfully claimed, the control endpoint as well as an unsupported endpoint. So a custom driver can access the
_usbd_dev.ep_status
out of bounce or the HID driver can claim the control endpoint when data is tried to send on an instance where no IN endpoint is assigned to.Beta Was this translation helpful? Give feedback.
All reactions