2.2.4.14 USB_DEVICE_RemoteWakeupStop Function

C

void USB_DEVICE_RemoteWakeupStop(
    USB_DEVICE_HANDLE usbDeviceHandle
);

Summary

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

Precondition

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.

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);

Remarks

None.