bidirectional endpoints

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bidirectional endpoints

782 Views
alexeynikolaev
Contributor I

Does "bidirectional endpoints" for K22 mean that one endpoint can be used, for example, for both BULK_IN and BULK_OUT transfers at the same time? According to SDK2.0 for K22F examples that is not the case since different endpoints assigned as USB_CDC_VCOM_DIC_BULK_IN_ENDPOINT and USB_CDC_VCOM_DIC_BULK_OUT_ENDPOINT.

Just wanted to double check since according to Endpoint Control register (USBx_ENDPTn) description an endpoint can indeed carry out bidirectional transfers.

Labels (2)
0 Kudos
1 Reply

496 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Alexey,

An endpoint is just a buffer. By USB spec bidirectional endpoints must work as IN and OUT at the same time without problems. USB stack in KSDK2.0 allows you to use the same endpoint as IN and OUT. In previous USB stacks there was a limitation that avoided the usage of such functionality, but now in the last version it was fixed.


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos