# 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
…
- 142
- 143
- 144
- 145
- 146
…
- 311
- 312

1.4.2.2.2.1 COMM_INTERFACE_DETAILS Structure
File
usb_host_cdc.h
Syntax
typedef struct _COMM_INTERFACE_DETAILS {
uint8_t interfaceNum;
uint8_t noOfEndpoints;
USB_CDC_HEADER_FN_DSC Header_Fn_Dsc;
USB_CDC_ACM_FN_DSC ACM_Fn_Desc;
USB_CDC_UNION_FN_DSC Union_Fn_Desc;
USB_CDC_CALL_MGT_FN_DSC Call_Mgt_Fn_Desc;
uint16_t endpointMaxDataSize;
uint16_t endpointInDataSize;
uint16_t endpointOutDataSize;
uint8_t endpointPollInterval;
uint8_t endpointType;
uint8_t endpointIN;
uint8_t endpointOUT;
} COMM_INTERFACE_DETAILS;
Members
Members Description
uint8_t interfaceNum; communication interface number
uint8_t noOfEndpoints; Number endpoints for communication interface Functional
Descriptor Details
USB_CDC_HEADER_FN_DSC Header_Fn_Dsc; Header Function Descriptor
USB_CDC_ACM_FN_DSC ACM_Fn_Desc; Abstract Control Model Function Descriptor
USB_CDC_UNION_FN_DSC Union_Fn_Desc; Union Function Descriptor
USB_CDC_CALL_MGT_FN_DSC Call_Mgt_Fn_Desc; Call Management Function Descriptor Endpoint Descriptor
Details
uint16_t endpointMaxDataSize; Max data size for a interface.
uint16_t endpointInDataSize; Max data size for a interface.
uint16_t endpointOutDataSize; Max data size for a interface.
uint8_t endpointPollInterval; Polling rate of corresponding interface.
uint8_t endpointType; Endpoint type - either Isochronous or Bulk
uint8_t endpointIN; IN endpoint for comm interface.
uint8_t endpointOUT; IN endpoint for comm interface.
Description
This structure stores communication interface details of the attached CDC device
1.4.2.2.2.2 DATA_INTERFACE_DETAILS Structure
File
usb_host_cdc.h
Syntax
typedef struct _DATA_INTERFACE_DETAILS {
uint8_t interfaceNum;
uint8_t noOfEndpoints;
uint16_t endpointInDataSize;
uint16_t endpointOutDataSize;
uint8_t endpointType;
uint8_t endpointIN;
uint8_t endpointOUT;
} DATA_INTERFACE_DETAILS;
1.4 Library Interface MLA - USB Library Help Embedded Host API
144

- 1
- 2
…
- 142
- 143
- 144
- 145
- 146
…
- 311
- 312