Skip to content

Call dcd_event_xfer_complete on packet submit vs packet complete #902

Answered by hathach
smunaut asked this question in Q&A
Discussion options

You must be logged in to vote

I think you should trigger the interrupt after packet complete i.e the data and CRC has been checked and/or ACK is being returned. Should something bad happened such as bad data toggle, incorrect checksum or more often STALLED response from host, it should report back to software. Depending on the class driver (stall may has different meaning for each class), tinyusb will decide to re-submit or abort the transfer.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@hathach
Comment options

@smunaut
Comment options

@smunaut
Comment options

@smunaut
Comment options

@hathach
Comment options

Answer selected by smunaut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants