Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Remarks
This function is the same as USBIsBusSuspended().
Preconditions
None
Return Values
Return Values Description
true the USB port this device is attached to is suspended.
false the USB port this device is attached to is not suspended.
Function
bool USBGetSuspendState(void)
1.4.1.1.1.21 USBHandleBusy Function
Checks to see if the input handle is busy
File
usb_device.h
Syntax
bool USBHandleBusy(USB_HANDLE handle);
Description
Checks to see if the input handle is busy
Typical Usage
//make sure that the last transfer isn't busy by checking the handle
if(!USBHandleBusy(USBGenericInHandle))
{
//Send the data contained in the INPacket[] array out on
// endpoint USBGEN_EP_NUM
USBGenericInHandle = USBGenWrite(USBGEN_EP_NUM,(uint8_t*)&INPacket[0],sizeof(INPacket));
}
Remarks
None
Preconditions
None
Parameters
Parameters Description
USB_HANDLE handle handle of the transfer that you want to check the status of
Return Values
Return Values Description
true The specified handle is busy
false The specified handle is free and available for a transfer
Function
bool USBHandleBusy( USB_HANDLE handle)
1.4 Library Interface MLA - USB Library Help Device/Peripheral
55
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf