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

This function returns the suspend state of the specified USB device. This function can be used to check the completion of the Resume operation started by using the USB_HOST_Resume() function. If the Resume signaling has completed, the USB_HOST_IsSuspended() function would return USB_HOST_RESULT_TRUE.

C
USB_HOST_RESULT USB_HOST_DeviceIsSuspended(
    USB_HOST_DEVICE_OBJ_HANDLE deviceObjHandle
);
Preconditions

The USB_HOST_BusEnable() function should have been called.

Parameters
Parameters 
Description 
deviceObjHandle 
handle to the device that needs to be checked for suspend status. 
Returns

USB_HOST_RESULT_TRUE - if the device is suspended. USB_HOST_RESULT_FALSE - if the device is not suspended. USB_HOST_RESULT_DEVICE_UNKNOWN - the specified device does not exist in the system. USB_HOST_RESULT_FAILURE - An unknown failure occurred.

Remarks

None.

Example
TBD.