USB_PipeClose (SWI&5538C)
Prev | Chapter 2. Core SWI Calls | Next

## Name

USB_PipeClose (SWI&5538C) — Closes a pipe

## On Entry

R0 | Pointer to pipe structure.
R1 | Reserved. Must be set to zero.
R2 | Reserved. Must be set to zero.

## On Exit

R0 | preserved
R1 | Error code Table A.1
R2 | Preserved

## 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)

Prev | Up | Next
USB_PipeOpen (SWI&5538B) | Home | USB_PipeClear (SWI&5538D)