10.07.2015 Views

HID Usage Tables Document 1.1 - C. Scott Ananian

HID Usage Tables Document 1.1 - C. Scott Ananian

HID Usage Tables Document 1.1 - C. Scott Ananian

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Universal Serial Bus <strong>HID</strong> <strong>Usage</strong> <strong>Tables</strong> 91In the following example, the device returns one of three status codes: Not Ready, Ready, or Err Not aloadable character. An application can simply query for the Display Status usage to find the array field thatwill contain the status codes.ReportSize(2), ReportCount(1),Logical Maximum(2),<strong>Usage</strong>(Display Status),Collection(Logical),<strong>Usage</strong>(Stat Not Ready),<strong>Usage</strong>(Stat Ready),<strong>Usage</strong>(Err Not a loadable character),Input(Data, Array, Absolute, No Null Position), ; 3-bit status fieldEnd Collection(),The No Null Position flag indicates that there is never a state in which it is not sending meaningful data. Thereturned values are Null = No event (outside of the Logical Minimum / Logical Maximum range) 1 = StatNot Ready, 2 = Stat Ready, or 3 = Err Not a loadable character.A.5 Multiple Instances of a ControlThis example shows how to implement multiple instances of a set of controls by defining a device with twopointers, each with X and Y axes. An application looking for Pointer usages would find two of each typeenumerated.<strong>Usage</strong>Page(Generic Desktop),<strong>Usage</strong>(Pointer),; PointerCollection(Logical),<strong>Usage</strong>Page(Ordinal),<strong>Usage</strong>(Instance 1), ; Pointer 1Collection(Physical),<strong>Usage</strong>Page(Generic Desktop),<strong>Usage</strong>(X-axis),<strong>Usage</strong>(Y-axis),Collection End,<strong>Usage</strong>Page(Ordinal),<strong>Usage</strong>(Instance 2), ; Pointer 2Collection(Physical),<strong>Usage</strong>Page(Generic Desktop),<strong>Usage</strong>(X-axis),<strong>Usage</strong>(Y-axis),Collection End,Collection End,A.6 Multiple Instances of a Multi-Mode LEDThis example shows how to implement an indicator that supports blinking as well as multiple colors. In thisexample, there are two LEDs (Play and Stop) that can be On, Blinking, or Off, and when they areilluminated they can be Red, Green, or Amber. The LED page provides slow and fast blinking usages, andeither could have been chosen here to enable the single blinking mode that this device supports.Declare the globals that are used by all the Main items.Report Size(2),Report Count(1),Logical Minimum(1),Version <strong>1.1</strong> April 8, 1999

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!