USB - code example for using control endpoint

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
mapr_1232266
Level 1
Level 1

how can I use the control endpoint on USB component from user code?

It seems to work different from the other endpoint types, but I can't find any code snippets.

USB control center does support such transfers, but my first tests raised error code 87.

Thanks a lot.

0 Likes
1 Solution
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello,

Please refer to the Appendix D Project 2 Firmware - USBFS_vnd.c of the application note 'PSoC 3 and 5LP- Introduction to implemeting USB data transfers', page 71. The Appnote has sample code for control Read and Write:

https://www.cypress.com/file/139686/download

Best Regards

Ekta

View solution in original post

0 Likes
1 Reply
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello,

Please refer to the Appendix D Project 2 Firmware - USBFS_vnd.c of the application note 'PSoC 3 and 5LP- Introduction to implemeting USB data transfers', page 71. The Appnote has sample code for control Read and Write:

https://www.cypress.com/file/139686/download

Best Regards

Ekta

0 Likes