# 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
…
- 196
- 197
- 198
- 199
- 200
…
- 311
- 312

1.4.2.3.2.47 USB_HID_RESET_ERROR Macro
File
usb_host_hid.h
Syntax
#define USB_HID_RESET_ERROR (USB_HID_CLASS_ERROR | 0x0A) // An error occurred while
resetting the device.
Description
An error occurred while resetting the device.
1.4.2.3.2.48 USB_HID_RESETTING_DEVICE Macro
File
usb_host_hid.h
Syntax
#define USB_HID_RESETTING_DEVICE 0x55 // Device is being reset.
Description
Device is being reset.
1.4.2.3.2.49 USB_PROCESSING_REPORT_DESCRIPTOR Macro
File
usb_host_hid.h
Syntax
#define USB_PROCESSING_REPORT_DESCRIPTOR 0x52 // Parser is processing report descriptor.
Description
Parser is processing report descriptor.
1.4.2.3.3 usb_host_hid.h
Functions
Name Description
USBHostHID_ApiFindBit This function is used to locate a specific button or indicator. Once
the report descriptor is parsed by the HID layer without any error,
data from the report descriptor is stored in pre defined dat
structures. This function traverses these data structure and exract
data required by application
USBHostHID_ApiFindValue Find a specific Usage Value. Once the report descriptor is parsed
by the HID layer without any error, data from the report descriptor is
stored in pre defined dat structures. This function traverses these
data structure and exract data required by application.
USBHostHID_ApiGetCurrentInterfaceNum This function reurns the interface number of the cuurent report
descriptor parsed. This function must be called to fill data interface
detail data structure and passed as parameter when requesinf for
report transfers.
USBHostHID_ApiImportData This function can be used by application to extract data from the
input reports. On receiving the input report from the device
application can call the function with required inputs
'HID_DATA_DETAILS'.
USBHostHIDDeviceDetect This function determines if a HID device is attached and ready to
use.
1.4 Library Interface MLA - USB Library Help Embedded Host API
198

- 1
- 2
…
- 196
- 197
- 198
- 199
- 200
…
- 311
- 312