USB_PipeClear (SWI&5538D) — Aborts all requests for the specified pipe.
R0 | Pointer to pipe structure. | |||||||||
R1 |
| |||||||||
R2 | Reserved. Must be set to zero. |
This call will abort all transactions on the specified pipe. The state of any active transactions is indeterminate and should not be relied upon to have completed successfully. Transactions are terminated correctly with their waiting structures notified with the appropriate result.
Only a pipe in the opened or halted state may be cleared. If the pipe is in the halted state it may be changed to the active state by setting the appropriate flag in R1.