Vault 7: Projects

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

Function
bool USBHostHID_ApiImportData(uint8_t *report, uint16_t reportLength,
HID_USER_DATA_SIZE *buffer,HID_DATA_DETAILS *pDataDetails)
1.4.2.3.1.5 USBHostHID_HasUsage Function
File
usb_host_hid_parser.h
Syntax
bool USBHostHID_HasUsage(HID_REPORTITEM * reportItem, uint16_t usagePage, uint16_t usage,
uint16_t * pindex, uint8_t* count);
Description
This function is used to locate the usage in a report descriptor. Function will look into the data structures created by the HID
parser and return the appropriate location.
Remarks
None
Preconditions
None
Parameters
Parameters Description
HID_REPORTITEM *reportItem Report item index to be searched
uint16_t usagePage Application needs to pass the usagePage as the search
criteria for the usage
uint16_t usage Application needs to pass the usageto be searched
uint16_t *pindex returns index to the usage item requested.
uint8_t* count returns the remaining number of reports
Return Values
Return Values Description
bool FALSE - If requested usage is not found
TRUE if requested usage is found
Function
bool USBHostHID_HasUsage( HID_REPORTITEM *reportItem, uint16_t usagePage,
uint16_t usage, uint16_t *pindex, uint8_t* count)
1.4.2.3.1.6 USBHostHIDDeviceDetect Function
File
usb_host_hid.h
Syntax
bool USBHostHIDDeviceDetect(uint8_t deviceAddress);
Description
This function determines if a HID device is attached and ready to use.
Remarks
This function replaces the USBHostHID_ApiDeviceDetect() function.
1.4 Library Interface MLA - USB Library Help Embedded Host API
169

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh