Advertisement
Guest User

G27 HID descriptor

a guest
Feb 19th, 2016
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. Raw binary from Wireshark: 05 01 09 04
  2. a1 01 15 00 25 07 35 00 46 3b 01 65 14 09 39 75
  3. 04 95 01 81 42 65 00 25 01 45 01 05 09 19 01 29
  4. 16 75 01 95 16 81 02 26 ff 3f 46 ff 3f 75 0e 95
  5. 01 05 01 09 30 81 02 26 ff 00 46 ff 00 75 08 95
  6. 03 09 32 09 35 09 31 81 02 06 00 ff 09 01 95 02
  7. 81 02 95 01 75 01 25 01 45 01 05 09 09 17 81 02
  8. 06 00 ff 09 01 95 07 81 02 26 ff 00 46 ff 00 06
  9. 00 ff 09 02 95 07 75 08 91 02 95 90 09 03 b1 02
  10. c0
  11.  
  12. Descriptor parsed by http://eleccelerator.com/usbdescreqparser/:
  13. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  14. 0x09, 0x04, // Usage (Joystick)
  15. 0xA1, 0x01, // Collection (Application)
  16. 0x15, 0x00, // Logical Minimum (0)
  17. 0x25, 0x07, // Logical Maximum (7)
  18. 0x35, 0x00, // Physical Minimum (0)
  19. 0x46, 0x3B, 0x01, // Physical Maximum (315)
  20. 0x65, 0x14, // Unit (System: English Rotation, Length: Centimeter)
  21. 0x09, 0x39, // Usage (Hat switch)
  22. 0x75, 0x04, // Report Size (4)
  23. 0x95, 0x01, // Report Count (1)
  24. 0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State)
  25. 0x65, 0x00, // Unit (None)
  26. 0x25, 0x01, // Logical Maximum (1)
  27. 0x45, 0x01, // Physical Maximum (1)
  28. 0x05, 0x09, // Usage Page (Button)
  29. 0x19, 0x01, // Usage Minimum (0x01)
  30. 0x29, 0x16, // Usage Maximum (0x16)
  31. 0x75, 0x01, // Report Size (1)
  32. 0x95, 0x16, // Report Count (22)
  33. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  34. 0x26, 0xFF, 0x3F, // Logical Maximum (16383)
  35. 0x46, 0xFF, 0x3F, // Physical Maximum (16383)
  36. 0x75, 0x0E, // Report Size (14)
  37. 0x95, 0x01, // Report Count (1)
  38. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  39. 0x09, 0x30, // Usage (X)
  40. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  41. 0x26, 0xFF, 0x00, // Logical Maximum (255)
  42. 0x46, 0xFF, 0x00, // Physical Maximum (255)
  43. 0x75, 0x08, // Report Size (8)
  44. 0x95, 0x03, // Report Count (3)
  45. 0x09, 0x32, // Usage (Z)
  46. 0x09, 0x35, // Usage (Rz)
  47. 0x09, 0x31, // Usage (Y)
  48. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  49. 0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
  50. 0x09, 0x01, // Usage (0x01)
  51. 0x95, 0x02, // Report Count (2)
  52. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  53. 0x95, 0x01, // Report Count (1)
  54. 0x75, 0x01, // Report Size (1)
  55. 0x25, 0x01, // Logical Maximum (1)
  56. 0x45, 0x01, // Physical Maximum (1)
  57. 0x05, 0x09, // Usage Page (Button)
  58. 0x09, 0x17, // Usage (0x17)
  59. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  60. 0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
  61. 0x09, 0x01, // Usage (0x01)
  62. 0x95, 0x07, // Report Count (7)
  63. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  64. 0x26, 0xFF, 0x00, // Logical Maximum (255)
  65. 0x46, 0xFF, 0x00, // Physical Maximum (255)
  66. 0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
  67. 0x09, 0x02, // Usage (0x02)
  68. 0x95, 0x07, // Report Count (7)
  69. 0x75, 0x08, // Report Size (8)
  70. 0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
  71. 0x95, 0x90, // Report Count (144)
  72. 0x09, 0x03, // Usage (0x03)
  73. 0xB1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
  74. 0xC0, // End Collection
  75.  
  76. // 133 bytes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement