# 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
…
- 138
- 139
- 140
- 141
- 142
…
- 311
- 312

File
usb_host_cdc.h
Syntax
void USBHostCDCTasks();
Returns
None
Description
This function performs the maintenance tasks required by the CDC class. If transfer events from the host layer are not being
used, then it should be called on a regular basis by the application. If transfer events from the host layer are being used, this
function is compiled out, and does not need to be called.
Remarks
None
Preconditions
USBHostCDCInitialize() has been called.
Parameters
Parameters Description
None None
Function
void USBHostCDCTasks( void )
1.4.2.2.1.12 USBHostCDCTransfer Function
This function starts a CDC transfer.
File
usb_host_cdc.h
Syntax
uint8_t USBHostCDCTransfer(uint8_t deviceAddress, uint8_t request, uint8_t direction,
uint8_t interfaceNum, uint16_t size, uint8_t * data, uint8_t endpointDATA);
Description
This function starts a CDC transfer. A read/write wrapper is provided in application interface file to access this function.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device address
uint8_t request Request type for Communication Interface
uint8_t direction 1=read, 0=write
uint8_t interfaceNum interface number of the requested transfer
uint8_t size uint8_t size of the data buffer
uint8_t *data Pointer to the data buffer
uint8_t endpointDATA endpoint details on which the transfer is requested
1.4 Library Interface MLA - USB Library Help Embedded Host API
140

- 1
- 2
…
- 138
- 139
- 140
- 141
- 142
…
- 311
- 312