MPLAB Harmony USB Stack
|
Deinitializes the USB Host Layer. All internal data structures will be reset.
void USB_HOST_Deinitialize( SYS_MODULE_OBJ hostLayerObject );
Function USB_HOST_Initialize should have been called before calling this function.
Parameters |
Description |
object |
USB Host layer object handle, returned from the USB_HOST_Initialize routine |
None.
Once the Initialize operation has been called, the Deinitialize operation must be called before the Initialize operation can be called again. This routine will NEVER block waiting for hardware.
SYS_MODULE_OBJ object; // Returned from USB_HOST_Initialize SYS_STATUS status; USB_HOST_Deinitialize(object); status = USB_HOST_Status(object); if (SYS_MODULE_DEINITIALIZED != status) { // Can check again later if you need to know // when the driver is deinitialized. }
MPLAB Harmony USB Stack
|