USB_EndpointDeregister (SWI&55381)
Prev | Chapter 2. Core SWI Calls | Next

## Name

USB_EndpointDeregister (SWI&55381) — Removes a given endpoint.

## On Entry

R0 | Pointer to endpoint 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 endpoint structure is deregistered automatically in every case.

Removes an endpoint structure from the USB Module. All pending and running request of this endpoint are aborted. The endpoint is also removed from the list of available endpoints of the corresponding device and service calls are generated. If no references using this endpoint are active the endpoint structure will be removed physically from memory.

This call is used internally by the USB Hub module for default pipe endpoints. It must be also used by drivers for the other endpoints belonging to the Interface supported by the driver which are passed as a list to the driver by SetDevConf.

## Related SWI's

USB_EndpointRegister (SWI &55380)

Prev | Up | Next
USB_EndpointRegister (SWI &55380) | Home | USB_DeviceRegister (SWI&55382)