# 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
…
- 133
- 134
- 135
- 136
- 137
…
- 311
- 312

Preconditions
None
Parameters
Parameters Description
uint8_t no_of_bytes Number of Bytes expected from the device.
uint8_t* data Pointer to application receive data buffer.
Return Values
Return Values Description
TRUE Transfer request is placed successfully.
FALSE Transfer request failed.
Function
bool USBHostCDC_Api_Get_IN_Data(uint8_t no_of_bytes, uint8_t* data)
1.4.2.2.1.3 USBHostCDC_Api_Send_OUT_Data Function
File
usb_host_cdc_interface.h
Syntax
bool USBHostCDC_Api_Send_OUT_Data(uint16_t no_of_bytes, uint8_t* data);
Description
This function is called by application to transmit out data over DATA interface. This function setsup the request to transmit
data to the device.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t no_of_bytes Number of Bytes expected from the device.
uint8_t* data Pointer to application transmit data buffer.
Return Values
Return Values Description
TRUE Transfer request is placed successfully.
FALSE Transfer request failed.
Function
bool USBHostCDC_Api_Send_OUT_Data(uint16_t no_of_bytes, uint8_t* data)
1.4.2.2.1.4 USBHostCDC_ApiDeviceDetect Function
File
usb_host_cdc_interface.h
Syntax
bool USBHostCDC_ApiDeviceDetect();
1.4 Library Interface MLA - USB Library Help Embedded Host API
135

- 1
- 2
…
- 133
- 134
- 135
- 136
- 137
…
- 311
- 312