Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
USB_HID_RPT_DESC_ERROR 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.
Macros
Name Description
DEVICE_CLASS_HID HID Interface Class Code
DSC_HID HID Descriptor Code
DSC_PHY Pysical Descriptor Code
EVENT_HID_ATTACH A HID device has attached. The returned data pointer points to a
USB_HID_DEVICE_ID structure.
EVENT_HID_BAD_REPORT_DESCRIPTOR There was a problem parsing the report descriptor of the attached device.
Communication with the device is not allowed, and the device should be
detached.
EVENT_HID_DETACH A HID device has detached. The returned data pointer points to a byte
with the previous address of the detached device.
EVENT_HID_NONE No event occured (NULL event)
EVENT_HID_OFFSET If the application has not defined an offset for HID events, set it to 0.
EVENT_HID_READ_DONE define EVENT_HID_TRANSFER EVENT_HID_BASE +
EVENT_HID_OFFSET + 3 // Unused - value retained for legacy. A HID
Read transfer has completed. The returned data pointer points to a
HID_TRANSFER_DATA structure, with information about the transfer.
EVENT_HID_RESET HID reset complete. The returned data pointer is NULL.
EVENT_HID_RESET_ERROR An error occurred while trying to do a HID reset. The returned data
pointer is NULL.
EVENT_HID_RPT_DESC_PARSED A Report Descriptor has been parsed. The returned data pointer is NULL.
The application must collect details, or simply return TRUE if the
application is already aware of the data format.
EVENT_HID_WRITE_DONE A HID Write transfer has completed. The returned data pointer points to a
HID_TRANSFER_DATA structure, with information about the transfer.
HOST_DSC_RPT Report Descriptor Code
USB_HID_CLASS_ERROR
USB_HID_COMMAND_FAILED Command failed at the device.
USB_HID_COMMAND_PASSED Command was successful.
USB_HID_DEVICE_BUSY A transfer is currently in progress.
USB_HID_DEVICE_DETACHED Device is detached.
USB_HID_DEVICE_HOLDING Device is holding due to error
USB_HID_DEVICE_NOT_FOUND Device with the specified address is not available.
USB_HID_ILLEGAL_REQUEST Cannot perform requested operation.
USB_HID_INITIALIZING Device is initializing.
USB_HID_INTERFACE_ERROR The interface layer cannot support the device.
USB_HID_NO_REPORT_DESCRIPTOR No report descriptor found
USB_HID_NORMAL_RUNNING Device is running and available for data transfers.
USB_HID_PHASE_ERROR Command had a phase error at the device.
USB_HID_REPORT_DESCRIPTOR_BAD Report Descriptor for not proper
USB_HID_RESET_ERROR An error occurred while resetting the device.
USB_HID_RESETTING_DEVICE Device is being reset.
USB_PROCESSING_REPORT_DESCRIPTOR Parser is processing report descriptor.
Module
HID Client Driver
1.4 Library Interface MLA - USB Library Help Embedded Host API
179
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf