I have previously used the following XUD library functions, to allow the separation of requesting to send/receive a packet and the notification of a successful transfer, based on the XC select statement. I have used them with Interrupt mode transfer endpoints, successfully receiving the transmitted data packets.
XUD_SetReady_Out()
XUD_GetData_Select()
I would like to use these same functions, but with Control mode transfer endpoints. Unlike Interrupt transfers, Control transfer have three stages
1: setup stage
2: data stage
3: status stage
Based on Xmos examples, I believe i can use the same approach with the "data stage" and "status stage". The "setup stage" is different, in the sense that the initial packet is a setup token packet, not an In/Out token packet like the "data stage" and the "status stage".
Will I be able to retrieve the data packet from the "setup stage", using the same approach used for the other two stages?
Control Endpoint data handling
-
- Junior Member
- Posts: 5
- Joined: Wed Apr 19, 2017 5:40 pm