# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# MLA -- USB Library

20 December, 2013

- 1
- 2
…
- 53
- 54
- 55
- 56
- 57
…
- 311
- 312

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

- 1
- 2
…
- 53
- 54
- 55
- 56
- 57
…
- 311
- 312