USB_EndpointDeregister (SWI&55381)

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

On Entry

R0Pointer to endpoint 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 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)