bool USBIsBusSuspended();
This function indicates if the USB bus is in suspend mode. This function is typically used for checking if the conditions are consistent with performing a USB remote wakeup sequence.
Typical Usage:
if((USBIsBusSuspended() == true) && (USBGetRemoteWakeupStatus() == true)) { //Check if some stimulus occured, which will be used as the wakeup source if(sw3 == 0) { USBCBSendResume(); //Send the remote wakeup signalling to the host } } // otherwise do some other application specific tasks
None
None
The USBIsBusSuspended() function relies on the USBBusIsSuspended boolean variable, which gets updated by the USBDeviceTasks() function. Therefore, in order to be sure the return value is not "stale", it is suggested to make sure USBDeviceTasks() has executed recently (if using USB polling mode).
MLA - USB Library Help Version : 2.16
![]() |