USB Libraries Help > USB Host Libraries > USB Host Layer Library > Library Interface > a) Functions > USB_HOST_DeviceSuspend Function
MPLAB Harmony USB Stack
USB_HOST_DeviceSuspend Function

The function suspends the specified device.

C
USB_HOST_RESULT USB_HOST_DeviceSuspend(
    USB_HOST_DEVICE_OBJ_HANDLE deviceObjHandle
);
Preconditions

The USB_HOST_BusEnable() function should have been called.

Parameters
Parameters 
Description 
deviceObjHandle 
handle to the device to suspend. 
Returns

USB_HOST_RESULT_SUCCESS - The request was accepted and the device will be suspended. USB_HOST_RESULT_DEVICE_UNKNOWN - The request failed. The device may have been detached. USB_HOST_RESULT_FAILURE - An unknown failure occurred.

Remarks

None.

Example
TBD.