Vault 7: Projects

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

DATA_INTERFACE_DETAILS dataInterface;
} USB_CDC_DEVICE_INFO;
Members
Members Description
uint8_t* userData; Data pointer to application buffer.
uint16_t reportSize; Total length of user data
uint16_t remainingBytes; Number uint8_ts remaining to be transferrerd in case user
data length is more than 64 uint8_ts
uint16_t bytesTransferred; Number of uint8_ts transferred to/from the user's data buffer.
uint8_t bfDirection : 1; Direction of current transfer (0=OUT, 1=IN).
uint8_t bfReset : 1; Flag indicating to perform CDC Reset.
uint8_t bfClearDataIN : 1; Flag indicating to clear the IN endpoint.
uint8_t bfClearDataOUT : 1; Flag indicating to clear the OUT endpoint.
uint8_t driverSupported; If CDC driver supports requested Class,Subclass & Protocol.
uint8_t deviceAddress; Address of the device on the bus.
uint8_t errorCode; Error code of last error.
uint8_t state; State machine state of the device.
uint8_t returnState; State to return to after performing error handling.
uint8_t noOfInterfaces; Total number of interfaces in the device.
uint8_t interface; Interface number of current transfer.
uint8_t endpointDATA; Endpoint to use for the current transfer.
uint8_t commRequest; Current Communication code
uint8_t clientDriverID; Client driver ID for device requests.
COMM_INTERFACE_DETAILS commInterface; This structure stores communication interface details.
DATA_INTERFACE_DETAILS dataInterface; This structure stores data interface details.
Description
This structure is used to hold information about an attached CDC device
1.4.2.2.2.7 USB_CDC_HEADER_FN_DSC Structure
File
usb_host_cdc.h
Syntax
typedef struct _USB_CDC_HEADER_FN_DSC {
uint8_t bFNLength;
uint8_t bDscType;
uint8_t bDscSubType;
uint8_t bcdCDC[2];
} USB_CDC_HEADER_FN_DSC;
Members
Members Description
uint8_t bFNLength; Size of this functional descriptor, in uint8_ts.
uint8_t bDscType; CS_INTERFACE
uint8_t bDscSubType; Header. This is defined in [USBCDC1.2], which defines this
as a header.
uint8_t bcdCDC[2]; USB Class Definitions for Communications Devices
Specification release number in binary-coded decimal.
Description
Header Functional Descriptor
1.4 Library Interface MLA - USB Library Help Embedded Host API
147

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh