Jump to main content

##

# 3.2.4.1 USB_HOST_Deinitialize Function

## C

    void USB_HOST_Deinitialize(
        SYS_MODULE_OBJ usbHostObject
    );

## Summary

Deinitializes the USB Host Layer. All internal data structures will be reset.

## Precondition

Function USB_HOST_Initialize should have been called before calling this function.

## Parameters

Parameters | Description
usbHostObject | USB Host layer object handle, returned from the USB_HOST_Initialize routine

## Returns

None.

## Example

    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.
    }

## Remarks

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.