USB Libraries Help > USB Device Libraries > USB Device Layer Library > Library Interface > c) Device Power State Management Functions > USB_DEVICE_RemoteWakeupStop Function
MPLAB Harmony USB Stack
USB_DEVICE_RemoteWakeupStop Function

This function will stop the resume signaling. This function should be called after the client has called the USB_DEVICE_RemoteWakeupStart() function.

C
void USB_DEVICE_RemoteWakeupStop(
    USB_DEVICE_HANDLE usbDeviceHandle
);
Preconditions

Client handle should be valid. The host should have enabled the Remote Wakeup feature for this device.

Parameters
Parameters 
Description 
usbDeviceHandle 
Client's driver handle (returned from USB_DEVICE_Open
Returns

None.

Remarks

None.

Example
// This code example shows how the device can enable and disable
// Resume signaling on the bus. These function should only be called if the 
// device support remote wake-up and the host has enabled this 
// feature. 

USB_DEVICE_HANDLE usbDeviceHandle;

// Start resume signaling.
USB_DEVICE_RemoteWakeupStart(usbDeviceHandle);

// As per section 7.1.7.7 of the USB specification, device must
// drive resume signaling for at least 1 millisecond but no
// more than 15 milliseconds.

APP_DelayMilliseconds(10);

// Stop resume signaling.
USB_DEVICE_RemoteWakeupStop(usbDeviceHandle);