USB_DeviceDeregister (SWI&55383)
Prev | Chapter 2. Core SWI Calls | Next

## Name

USB_DeviceDeregister (SWI&55383) — Removes a given device.

## On Entry

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

Removes a device structure from the USB Module. All endpoints are also removed. The device is also removed from the list of available devices of the corresponding USB host controller driver and service calls are generated. If no references using this device are active the device structure will be removed physically from memory.

This call is normally used only internally by the USB-Hub driver module if it detects that a devices has been unplugged.

## Related SWI's

USB_DeviceRegister (SWI&55382)

Prev | Up | Next
USB_DeviceRegister (SWI&55382) | Home | USB_ControllerRegister (SWI&55384)