USB_PipeClose (SWI&5538C) — Closes a pipe
R0 | Pointer to pipe structure. |
R1 | Reserved. Must be set to zero. |
R2 | Reserved. Must be set to zero. |
R0 | preserved |
R1 | Error code Table A.1 |
R2 | Preserved |
The reference to the pipe structure is deregistered automatically in every case.
Only an opened or halted pipe can be closed. All requests running at this pipe will be aborted. The Bus capacity used by this pipe will be released if the last program using the pipe is closing it.