Vault 7: Projects

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

1.4.2.3.2.6 HID_REPORT Structure
File
usb_host_hid_parser.h
Syntax
typedef struct _HID_REPORT {
uint16_t reportID;
uint16_t inputBits;
uint16_t outputBits;
uint16_t featureBits;
} HID_REPORT;
Members
Members Description
uint16_t reportID; Report ID of the associated report
uint16_t inputBits; If input report then length of report in bits
uint16_t outputBits; If output report then length of report in bits
uint16_t featureBits; If feature report then length of report in bits
Description
HID Report details
This structure contains information about each report exchanged with the device.
1.4.2.3.2.7 HID_REPORTITEM Structure
File
usb_host_hid_parser.h
Syntax
typedef struct _HID_REPORTITEM {
HIDReportTypeEnum reportType;
HID_GLOBALS globals;
uint8_t startBit;
uint8_t parent;
uint32_t dataModes;
uint8_t firstUsageItem;
uint8_t usageItems;
uint8_t firstStringItem;
uint8_t stringItems;
uint8_t firstDesignatorItem;
uint8_t designatorItems;
} HID_REPORTITEM;
Members
Members Description
HIDReportTypeEnum reportType; Type of Report Input/Output/Feature
HID_GLOBALS globals; Stores all the global items associated with the current report
uint8_t startBit; Starting Bit Position of the report
uint8_t parent; Index of parent collection
uint32_t dataModes; this tells the data mode is array or not
uint8_t firstUsageItem; Index to first usage item related to the report
uint8_t usageItems; Number of usage items in the current report
uint8_t firstStringItem; Index to first srting item in the list
uint8_t stringItems; Number of string items in the current report
uint8_t firstDesignatorItem; Index to first designator item
uint8_t designatorItems; Number of designator items in the current report
1.4 Library Interface MLA - USB Library Help Embedded Host API
185

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh