2.2.4.2 USB_DEVICE_Deinitialize Function

C

void USB_DEVICE_Deinitialize(
    SYS_MODULE_OBJ usbDeviceObj
);

Summary

This function deinitializes the specified instance of the USB device layer, disabling its operation (and any hardware) and invalidates all of the internal data.

Precondition

Function USB_DEVICE_Initialize must have been called before calling this routine and a valid SYS_MODULE_OBJ must have been returned.

Parameters

Parameters Description
usbDeviceobj USB device layer object handle, returned by USB_DEVICE_Initialize

Returns

None.

Example

// This code example shows how the USB
// Device Layer can be deinitialized. It is assumed the
// USB Device Layer was already initialized.

SYS_MODULE_OBJ usbDeviceobj;

USB_DEVICE_Deinitialize(usbDeviceobj); 

Remarks

Once the Initialize operation has been called, the deinitialize operation must be called before the Initialize operation can be called again.