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

Description
1.4.2.2.1.1 USBHostCDC_Api_ACM_Request Function
File
usb_host_cdc_interface.h
Syntax
uint8_t USBHostCDC_Api_ACM_Request(uint8_t requestType, uint8_t size, uint8_t* data);
Description
This function can be used by application code to dynamically access ACM specific requests. This function should be used
only if apllication intends to modify for example the Baudrate from previouly configured rate. Data transmitted/received
to/from device is a array of bytes. Application must take extra care of understanding the data format before using this
function.
Remarks
None
Preconditions
Device must be enumerated and attached successfully.
Parameters
Parameters Description
uint8_t size Number bytes to be transferred.
uint8_t *data Pointer to data being transferred.
Return Values
Return Values Description
USB_SUCCESS Request started successfully
USB_CDC_DEVICE_NOT_FOUND No device with specified address
USB_CDC_DEVICE_BUSY Device not in proper state for performing a transfer
USB_CDC_COMMAND_FAILED Request is not supported.
USB_CDC_ILLEGAL_REQUEST Requested ID is invalid.
Function
uint8_t USBHostCDC_Api_ACM_Request(uint8_t requestType, uint8_t size, uint8_t* data)
1.4.2.2.1.2 USBHostCDC_Api_Get_IN_Data Function
File
usb_host_cdc_interface.h
Syntax
bool USBHostCDC_Api_Get_IN_Data(uint8_t no_of_bytes, uint8_t* data);
Description
This function is called by application to receive Input data over DATA interface. This function setsup the request to receive
data from the device.
Remarks
None
1.4 Library Interface MLA - USB Library Help Embedded Host API
134

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