USB_EndpointDeregister (SWI&55381) — Removes a given endpoint.
R0 | Pointer to endpoint structure |
R1 | Reserved. Must be set to zero. |
R2 | Reserved. Must be set to zero. |
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.