Advertisement
Guest User

USB keyboard "boot interface"

a guest
Jun 28th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. ; implicit HID Report descriptor for Keyboard Boot Interface
  2. ;
  3. ; Keyboards aren't required to supply this descriptor since BIOS
  4. ; isn't expected to query for report format anyway.
  5. ;
  6. ; A proper USB HID class driver will query the report format and
  7. ; issue a Change Protocol to allow the device to switch from the
  8. ; boot report format to its true report format.
  9.  
  10. Usage Page (Generic Desktop),
  11. Usage (Keyboard),
  12. Collection (Application),
  13.  
  14. ; Input report (device->host) structure:
  15.  
  16. ; byte 0: keys 224-231 (modifiers)
  17. Report Count (8),
  18. Report Size (1),
  19. Logical Minimum (0),
  20. Logical Maximum (1),
  21. Usage Page (Key Codes),
  22. Usage Minimum (224),
  23. Usage Maximum (231),
  24. Input (Data, Variable, Absolute),
  25.  
  26. ; byte 1: reserved
  27. Report Count (1),
  28. Report Size (8),
  29. Input (Constant),
  30.  
  31. ; bytes 2-7: up to 6 of keys 1-255
  32. Report Count (6),
  33. Report Size (8),
  34. Logical Minimum (0),
  35. Logical Maximum(255),
  36. Usage Page (Key Codes),
  37. Usage Minimum (0),
  38. Usage Maximum (255),
  39. Input (Data, Array),
  40.  
  41.  
  42. ; Output report (host->device) structure:
  43.  
  44. ; byte 0, bits 0-4: LEDs 1-5
  45. Report Count (5),
  46. Report Size (1),
  47. Usage Page (LEDs),
  48. Usage Minimum (1),
  49. Usage Maximum (5),
  50. Output (Data, Variable, Absolute),
  51.  
  52. ; byte 0, bits 5-7: padding
  53. Report Count (1),
  54. Report Size (3),
  55. Output (Constant),
  56.  
  57. End Collection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement