Hid Usages; Report Descriptor - Magtek MICRSAFE Technical Reference Manual

Table of Contents

Advertisement

HID USAGES

HID devices send data in reports. Elements of data in a report are identified by unique identifiers
called usages. The structure of the device's reports and the device's capabilities are reported to
the host in a report descriptor. The host usually gets the report descriptor only once, right after
the device is plugged in. The report descriptor usages identify the device's capabilities and
report structures. For example, a device could be identified as a keyboard by analyzing the
device's report descriptor. Usages are four byte integers. The most significant two bytes are
called the usage page and the least significant two bytes are called usage IDs. Usages that are
related can share a common usage page. Usages can be standardized or they can be vendor-
defined. Standardized usages, such as usages for mice and keyboards, can be found in the HID
Usage Tables document and can be downloaded free at www.usb.org. Vendor-defined usages
must have a usage page in the range 0xFF00 – 0xFFFF. All usages for this device use the
standard HID keyboard usages or vendor-defined magnetic stripe reader usage page 0xFF00.
The vendor-defined usage IDs for this device are defined in the following table. The usage types
are also listed. These usage types are defined in the HID Usage Tables document.
Magnetic Stripe Reader usage page 0xFF00:
Usage ID
(Hex)
20

REPORT DESCRIPTOR

The HID report descriptor is structured as follows:
Item
Usage Page (Generic Desktop)
Usage (Keyboard)
Collection (Application)
Usage Page (Key Codes)
Usage Minimum (224)
Usage Maximum (231)
Logical Minimum (0)
Logical Maximum (1)
Report Size (1)
Report Count (8)
Input (Data, Variable, Absolute)
Report Count (1)
Report Size (8)
Input (Constant)
Report Count (5)
Report Size (1)
Usage Page (LEDs)
Usage Minimum (1)
Usage Maximum (5)
Output (Data, Variable, Absolute)
Report Count (1)
Usage Name
Command message
Section 5. USB Communications
Usage
Report
Type
Type
Data
Feature
Value(Hex)
05 01
09 06
A1 01
05 07
19 E0
29 E7
15 00
25 01
75 01
95 08
81 02
95 01
75 08
81 03
95 05
75 01
05 08
19 01
29 05
91 02
95 01
23

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MICRSAFE and is the answer not in the manual?

Questions and answers

Table of Contents