Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Returns
None
Description
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
Remarks
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).
Preconditions
None
Function
bool USBIsBusSuspended(void);
1.4.1.1.1.26 USBIsDeviceSuspended Function
This function indicates if the USB module is in suspend mode.
File
usb_device.h
Syntax
bool USBIsDeviceSuspended();
Returns
None
Description
This function indicates if the USB module is in suspend mode. This function does NOT indicate that a suspend request has
been received. It only reflects the state of the USB module.
Typical Usage:
if(USBIsDeviceSuspended() == true)
{
return;
}
// otherwise do some application specific tasks
Remarks
None
Preconditions
None
1.4 Library Interface MLA - USB Library Help Device/Peripheral
58
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf