USB_PipeClear (SWI&5538D) — Aborts all requests for the specified pipe.
R0 | Pointer to pipe structure. | |||||||||
R1 |
| |||||||||
R2 | Reserved. Must be set to zero. |
R0 | preserved |
R1 | Error code Table A.1 |
R2 | Preserved |
This call will abort all transcations on the specified pipe. The state of any active transactions is indetermiante and should not be relied upon to have completed successfuly. Transactions are terminated correctly with their waiting structures notified with the apropriate 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 apropriate flag in R1.