# 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
…
- 189
- 190
- 191
- 192
- 193
…
- 311
- 312

HID_ERR_UnexpectedEndCollection,
HID_ERR_UnexpectedPop,
HID_ERR_MissingEndCollection,
HID_ERR_MissingTopLevelCollection,
HID_ERR_NoReports,
HID_ERR_UnmatchedUsageRange,
HID_ERR_UnmatchedStringRange,
HID_ERR_UnmatchedDesignatorRange,
HID_ERR_UnexpectedEndOfDescriptor,
HID_ERR_BadLogicalMin,
HID_ERR_BadLogicalMax,
HID_ERR_BadLogical,
HID_ERR_ZeroReportSize,
HID_ERR_ZeroReportID,
HID_ERR_ZeroReportCount,
HID_ERR_BadUsageRangePage,
HID_ERR_BadUsageRange
} USB_HID_RPT_DESC_ERROR;
Members
Members Description
HID_ERR = 0 No error
HID_ERR_NotEnoughMemory If not enough Heap can be allocated, make sure sufficient
dynamic memory is aloocated for the parser
HID_ERR_NullPointer Pointer to report descriptor is NULL
HID_ERR_UnexpectedEndCollection End of collection not expected
HID_ERR_UnexpectedPop POP not expected
HID_ERR_MissingEndCollection No end of collection found
HID_ERR_MissingTopLevelCollection Atleast one collection must be present
HID_ERR_NoReports atlest one report must be present
HID_ERR_UnmatchedUsageRange Either Minimum or Maximum for usage range missing
HID_ERR_UnmatchedStringRange Either Minimum or Maximum for string range missing
HID_ERR_UnmatchedDesignatorRange Either Minimum or Maximum for designator range missing
HID_ERR_UnexpectedEndOfDescriptor Report descriptor not formatted properly
HID_ERR_BadLogicalMin Logical Min greater than report size
HID_ERR_BadLogicalMax Logical Max greater than report size
HID_ERR_BadLogical If logical Min is greater than Max
HID_ERR_ZeroReportSize Report size is zero
HID_ERR_ZeroReportID report ID is zero
HID_ERR_ZeroReportCount Number of reports is zero
HID_ERR_BadUsageRangePage Bad Usage page range
HID_ERR_BadUsageRange Bad Usage range
Description
HID parser error codes
This enumerates the error encountered during the parsing of report descriptor. In case of any error parsing is sttopped and
the error is flagged. Device is not attched successfully.
1.4.2.3.2.17 deviceRptInfo Variable
File
usb_host_hid_parser.h
Syntax
USB_HID_DEVICE_RPT_INFO deviceRptInfo;
1.4 Library Interface MLA - USB Library Help Embedded Host API
191

- 1
- 2
…
- 189
- 190
- 191
- 192
- 193
…
- 311
- 312