USB_PipeClose (SWI&5538C)

USB_PipeClose (SWI&5538C) — Closes a pipe

On Entry

R0Pointer to pipe structure.
R1Reserved. Must be set to zero.
R2Reserved. Must be set to zero.

On Exit

R0preserved
R1Error code Table A.1, “Error codes used by the USB system”
R2Preserved

Use

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.

Related SWI's

USB_PipeOpen (SWI&5538B)