Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
79 <strong>HID</strong> <strong>Sensor</strong> <strong>Usage</strong>s<br />
A value is identified as an unsigned integer when the ReportSize field = 8, 16 or 32 while the<br />
Units Exponent value = 0. In this section, this is expressed as <strong>HID</strong>_REPORT_SIZE(8),<br />
<strong>HID</strong>_REPORT_SIZE(16), or <strong>HID</strong>_REPORT_SIZE(32) respectively. Logical Minimum and<br />
Logical Maximum must both be positive values. Units can be specified or remain unspecified.<br />
Units Exponent must be = 0.<br />
Signed Integer<br />
Float Value<br />
A value is identified as an signed integer when the ReportSize field = 8, 16 or 32 while the Units<br />
Exponent value = 0. In this section, this is expressed as <strong>HID</strong>_REPORT_SIZE(8),<br />
<strong>HID</strong>_REPORT_SIZE(16), or <strong>HID</strong>_REPORT_SIZE(32) respectively. Logical Minimum must be a<br />
negative value and Logical Maximum must be a positive value. Units can be specified or remain<br />
unspecified. Units Exponent must be = 0.<br />
Essentially, a float is expressed as a combination of a mantissa carried in the value field, and the<br />
exponent expressed as power of 10 carried in the Unit Exponent field. A value is identified as a<br />
float value when the ReportSize field = 16 or 32 while the Units Exponent value is not 0. In this<br />
section, this is expressed as <strong>HID</strong>_REPORT_SIZE(16) or <strong>HID</strong>_REPORT_SIZE(32) respectively.<br />
Logical Minimum must be a negative value and Logical Maximum must be a positive value. Units<br />
can be specified or remain unspecified. Units Exponent must not be = 0. The Unit Exponent field<br />
is translated into powers of 10 as specified by the following table.<br />
Value Exponent Power of Ten<br />
0x00 1x10E0 1<br />
0x01 1X10E1 10<br />
0x02 1x10E2 100<br />
0x03 1x10E3 1 000<br />
0x04 1x10E4 10 000<br />
0x05 1x10E5 100 000<br />
0x06 1x10E6 1 000 000<br />
0x07 1x10E7 10 000 000<br />
0x08 1x10E-8 0.00 000 001<br />
0x09 1x10E-7 0.0 000 001<br />
0x0A 1x10E-6 0.000 001<br />
0x0B 1x10E-5 0.00 001<br />
0x0C 1x10E-4 0.0 001<br />
0x0D 1x10E-3 0.001<br />
0x0E 1x10E-2 0.01<br />
0x0F 1x10E-1 0.1<br />
Table 18. <strong>HID</strong> Unit Exponent encoding and meanings<br />
These Unit Exponent field usages are not unique to this specification, but are the same as the standard <strong>HID</strong><br />
definitions.