hid_descriptor.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. // Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #pragma once
  15. const unsigned char hidReportMap[] = {
  16. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  17. 0x09, 0x02, // Usage (Mouse)
  18. 0xA1, 0x01, // Collection (Application)
  19. 0x85, 0x01, // Report ID (1)
  20. 0x09, 0x01, // Usage (Pointer)
  21. 0xA1, 0x00, // Collection (Physical)
  22. 0x05, 0x09, // Usage Page (Button)
  23. 0x19, 0x01, // Usage Minimum (0x01)
  24. 0x29, 0x03, // Usage Maximum (0x03)
  25. 0x15, 0x00, // Logical Minimum (0)
  26. 0x25, 0x01, // Logical Maximum (1)
  27. 0x75, 0x01, // Report Size (1)
  28. 0x95, 0x03, // Report Count (3)
  29. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  30. 0x75, 0x05, // Report Size (5)
  31. 0x95, 0x01, // Report Count (1)
  32. 0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  33. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  34. 0x09, 0x30, // Usage (X)
  35. 0x09, 0x31, // Usage (Y)
  36. 0x09, 0x38, // Usage (Wheel)
  37. 0x15, 0x81, // Logical Minimum (-127)
  38. 0x25, 0x7F, // Logical Maximum (127)
  39. 0x75, 0x08, // Report Size (8)
  40. 0x95, 0x03, // Report Count (3)
  41. 0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position)
  42. 0xC0, // End Collection
  43. 0xC0, // End Collection
  44. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  45. 0x09, 0x06, // Usage (Keyboard)
  46. 0xA1, 0x01, // Collection (Application)
  47. 0x85, 0x02, // Report ID (2)
  48. 0x05, 0x07, // Usage Page (Kbrd/Keypad)
  49. 0x19, 0xE0, // Usage Minimum (0xE0)
  50. 0x29, 0xE7, // Usage Maximum (0xE7)
  51. 0x15, 0x00, // Logical Minimum (0)
  52. 0x25, 0x01, // Logical Maximum (1)
  53. 0x75, 0x01, // Report Size (1)
  54. 0x95, 0x08, // Report Count (8)
  55. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  56. 0x95, 0x01, // Report Count (1)
  57. 0x75, 0x08, // Report Size (8)
  58. 0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  59. 0x95, 0x05, // Report Count (5)
  60. 0x75, 0x01, // Report Size (1)
  61. 0x05, 0x08, // Usage Page (LEDs)
  62. 0x19, 0x01, // Usage Minimum (Num Lock)
  63. 0x29, 0x05, // Usage Maximum (Kana)
  64. 0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
  65. 0x95, 0x01, // Report Count (1)
  66. 0x75, 0x03, // Report Size (3)
  67. 0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
  68. 0x95, 0x06, // Report Count (6)
  69. 0x75, 0x08, // Report Size (8)
  70. 0x15, 0x00, // Logical Minimum (0)
  71. 0x25, 0x65, // Logical Maximum (101)
  72. 0x05, 0x07, // Usage Page (Kbrd/Keypad)
  73. 0x19, 0x00, // Usage Minimum (0x00)
  74. 0x29, 0x65, // Usage Maximum (0x65)
  75. 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  76. 0xC0, // End Collection
  77. 0x05, 0x0C, // Usage Page (Consumer)
  78. 0x09, 0x01, // Usage (Consumer Control)
  79. 0xA1, 0x01, // Collection (Application)
  80. 0x85, 0x03, // Report ID (3)
  81. 0x09, 0x02, // Usage (Numeric Key Pad)
  82. 0xA1, 0x02, // Collection (Logical)
  83. 0x05, 0x09, // Usage Page (Button)
  84. 0x19, 0x01, // Usage Minimum (0x01)
  85. 0x29, 0x0A, // Usage Maximum (0x0A)
  86. 0x15, 0x01, // Logical Minimum (1)
  87. 0x25, 0x0A, // Logical Maximum (10)
  88. 0x75, 0x04, // Report Size (4)
  89. 0x95, 0x01, // Report Count (1)
  90. 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  91. 0xC0, // End Collection
  92. 0x05, 0x0C, // Usage Page (Consumer)
  93. 0x09, 0x86, // Usage (Channel)
  94. 0x15, 0xFF, // Logical Minimum (-1)
  95. 0x25, 0x01, // Logical Maximum (1)
  96. 0x75, 0x02, // Report Size (2)
  97. 0x95, 0x01, // Report Count (1)
  98. 0x81, 0x46, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,Null State)
  99. 0x09, 0xE9, // Usage (Volume Increment)
  100. 0x09, 0xEA, // Usage (Volume Decrement)
  101. 0x15, 0x00, // Logical Minimum (0)
  102. 0x75, 0x01, // Report Size (1)
  103. 0x95, 0x02, // Report Count (2)
  104. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  105. 0x09, 0xE2, // Usage (Mute)
  106. 0x09, 0x30, // Usage (Power)
  107. 0x09, 0x83, // Usage (Recall Last)
  108. 0x09, 0x81, // Usage (Assign Selection)
  109. 0x09, 0xB0, // Usage (Play)
  110. 0x09, 0xB1, // Usage (Pause)
  111. 0x09, 0xB2, // Usage (Record)
  112. 0x09, 0xB3, // Usage (Fast Forward)
  113. 0x09, 0xB4, // Usage (Rewind)
  114. 0x09, 0xB5, // Usage (Scan Next Track)
  115. 0x09, 0xB6, // Usage (Scan Previous Track)
  116. 0x09, 0xB7, // Usage (Stop)
  117. 0x15, 0x01, // Logical Minimum (1)
  118. 0x25, 0x0C, // Logical Maximum (12)
  119. 0x75, 0x04, // Report Size (4)
  120. 0x95, 0x01, // Report Count (1)
  121. 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  122. 0x09, 0x80, // Usage (Selection)
  123. 0xA1, 0x02, // Collection (Logical)
  124. 0x05, 0x09, // Usage Page (Button)
  125. 0x19, 0x01, // Usage Minimum (0x01)
  126. 0x29, 0x03, // Usage Maximum (0x03)
  127. 0x15, 0x01, // Logical Minimum (1)
  128. 0x25, 0x03, // Logical Maximum (3)
  129. 0x75, 0x02, // Report Size (2)
  130. 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  131. 0xC0, // End Collection
  132. 0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  133. 0xC0, // End Collection
  134. 0x06, 0xFF, 0xFF, // Usage Page (Vendor Defined 0xFFFF)
  135. 0x09, 0xA5, // Usage (0xA5)
  136. 0xA1, 0x01, // Collection (Application)
  137. 0x85, 0x04, // Report ID (4)
  138. 0x09, 0xA6, // Usage (0xA6)
  139. 0x09, 0xA9, // Usage (0xA9)
  140. 0x75, 0x08, // Report Size (8)
  141. 0x95, 0x7F, // Report Count (127)
  142. 0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
  143. 0xC0, // End Collection
  144. // 250 bytes
  145. };
  146. const unsigned char relMouseReportMap[] = { //4 bytes (btns,x,y,wheel)
  147. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  148. 0x09, 0x02, // Usage (Mouse)
  149. 0xA1, 0x01, // Collection (Application)
  150. 0x09, 0x01, // Usage (Pointer)
  151. 0xA1, 0x00, // Collection (Physical)
  152. 0x85, 0x01, // Report ID (1)
  153. 0x05, 0x09, // Usage Page (Button)
  154. 0x19, 0x01, // Usage Minimum (0x01)
  155. 0x29, 0x05, // Usage Maximum (0x05)
  156. 0x15, 0x00, // Logical Minimum (0)
  157. 0x25, 0x01, // Logical Maximum (1)
  158. 0x95, 0x05, // Report Count (5)
  159. 0x75, 0x01, // Report Size (1)
  160. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  161. 0x95, 0x01, // Report Count (1)
  162. 0x75, 0x03, // Report Size (3)
  163. 0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  164. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  165. 0x09, 0x30, // Usage (X)
  166. 0x09, 0x31, // Usage (Y)
  167. 0x09, 0x38, // Usage (Wheel)
  168. 0x15, 0x81, // Logical Minimum (-127)
  169. 0x25, 0x7F, // Logical Maximum (127)
  170. 0x75, 0x08, // Report Size (8)
  171. 0x95, 0x03, // Report Count (3)
  172. 0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position)
  173. 0xC0, // End Collection
  174. 0xC0, // End Collection
  175. // 54 bytes
  176. };
  177. const unsigned char absMouseReportMap[] = { //6 bytes (btns,x*2,y*2,wheel)
  178. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  179. 0x09, 0x02, // Usage (Mouse)
  180. 0xA1, 0x01, // Collection (Application)
  181. 0x09, 0x01, // Usage (Pointer)
  182. 0xA1, 0x00, // Collection (Physical)
  183. 0x85, 0x01, // Report ID (1)
  184. 0x05, 0x09, // Usage Page (Button)
  185. 0x19, 0x01, // Usage Minimum (0x01)
  186. 0x29, 0x05, // Usage Maximum (0x05)
  187. 0x15, 0x00, // Logical Minimum (0)
  188. 0x25, 0x01, // Logical Maximum (1)
  189. 0x95, 0x05, // Report Count (5)
  190. 0x75, 0x01, // Report Size (1)
  191. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  192. 0x95, 0x01, // Report Count (1)
  193. 0x75, 0x03, // Report Size (3)
  194. 0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  195. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  196. 0x09, 0x30, // Usage (X)
  197. 0x09, 0x31, // Usage (Y)
  198. 0x15, 0x00, // Logical Minimum (0)
  199. 0x26, 0xFF, 0x7F, // Logical Maximum (32767)
  200. 0x75, 0x10, // Report Size (16)
  201. 0x95, 0x02, // Report Count (2)
  202. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  203. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  204. 0x09, 0x38, // Usage (Wheel)
  205. 0x15, 0x81, // Logical Minimum (-127)
  206. 0x25, 0x7F, // Logical Maximum (127)
  207. 0x75, 0x08, // Report Size (8)
  208. 0x95, 0x01, // Report Count (1)
  209. 0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position)
  210. 0xC0, // End Collection
  211. 0xC0, // End Collection
  212. // 67 bytes
  213. };
  214. const unsigned char keyboardReportMap[] = { //7 bytes input (modifiers, resrvd, keys*5), 1 byte output
  215. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  216. 0x09, 0x06, // Usage (Keyboard)
  217. 0xA1, 0x01, // Collection (Application)
  218. 0x85, 0x01, // Report ID (1)
  219. 0x05, 0x07, // Usage Page (Kbrd/Keypad)
  220. 0x19, 0xE0, // Usage Minimum (0xE0)
  221. 0x29, 0xE7, // Usage Maximum (0xE7)
  222. 0x15, 0x00, // Logical Minimum (0)
  223. 0x25, 0x01, // Logical Maximum (1)
  224. 0x75, 0x01, // Report Size (1)
  225. 0x95, 0x08, // Report Count (8)
  226. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  227. 0x95, 0x01, // Report Count (1)
  228. 0x75, 0x08, // Report Size (8)
  229. 0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  230. 0x95, 0x05, // Report Count (5)
  231. 0x75, 0x01, // Report Size (1)
  232. 0x05, 0x08, // Usage Page (LEDs)
  233. 0x19, 0x01, // Usage Minimum (Num Lock)
  234. 0x29, 0x05, // Usage Maximum (Kana)
  235. 0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
  236. 0x95, 0x01, // Report Count (1)
  237. 0x75, 0x03, // Report Size (3)
  238. 0x91, 0x03, // Output (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
  239. 0x95, 0x05, // Report Count (5)
  240. 0x75, 0x08, // Report Size (8)
  241. 0x15, 0x00, // Logical Minimum (0)
  242. 0x25, 0x65, // Logical Maximum (101)
  243. 0x05, 0x07, // Usage Page (Kbrd/Keypad)
  244. 0x19, 0x00, // Usage Minimum (0x00)
  245. 0x29, 0x65, // Usage Maximum (0x65)
  246. 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  247. 0xC0, // End Collection
  248. // 65 bytes
  249. };
  250. const unsigned char joystickReportMap[] = { // 8bytes (8but, 4but+hat, r, y, rx, ry, z, rz)
  251. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  252. 0x09, 0x04, // Usage (Joystick)
  253. 0xA1, 0x01, // Collection (Application)
  254. 0x85, 0x01, // Report ID (1)
  255. 0x05, 0x09, // Usage Page (Button)
  256. 0x19, 0x01, // Usage Minimum (0x01)
  257. 0x29, 0x0C, // Usage Maximum (0x0C)
  258. 0x15, 0x00, // Logical Minimum (0)
  259. 0x25, 0x01, // Logical Maximum (1)
  260. 0x75, 0x01, // Report Size (1)
  261. 0x95, 0x0C, // Report Count (12)
  262. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  263. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  264. 0x09, 0x39, // Usage (Hat switch)
  265. 0x15, 0x01, // Logical Minimum (1)
  266. 0x25, 0x08, // Logical Maximum (8)
  267. 0x95, 0x01, // Report Count (1)
  268. 0x75, 0x04, // Report Size (4)
  269. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  270. 0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
  271. 0xA1, 0x00, // Collection (Physical)
  272. 0x09, 0x30, // Usage (X)
  273. 0x09, 0x31, // Usage (Y)
  274. 0x09, 0x33, // Usage (Rx)
  275. 0x09, 0x34, // Usage (Ry)
  276. 0x15, 0x80, // Logical Minimum (-128)
  277. 0x25, 0x7F, // Logical Maximum (127)
  278. 0x75, 0x08, // Report Size (8)
  279. 0x95, 0x04, // Report Count (4)
  280. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  281. 0x09, 0x32, // Usage (Z)
  282. 0x09, 0x35, // Usage (Rz)
  283. 0x15, 0x80, // Logical Minimum (-128)
  284. 0x25, 0x7F, // Logical Maximum (127)
  285. 0x75, 0x08, // Report Size (8)
  286. 0x95, 0x02, // Report Count (2)
  287. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  288. 0xC0, // End Collection
  289. 0xC0, // End Collection
  290. // 76 bytes
  291. };
  292. const unsigned char mediaReportMap[] = { //6 bytes (3 x 16bit)
  293. 0x05, 0x0C, // Usage Page (Consumer)
  294. 0x09, 0x01, // Usage (Consumer Control)
  295. 0xA1, 0x01, // Collection (Application)
  296. 0x85, 0x03, // Report ID (3)
  297. 0x19, 0x00, // Usage Minimum (Unassigned)
  298. 0x2A, 0xFF, 0x03, // Usage Maximum (0x03FF)
  299. 0x15, 0x00, // Logical Minimum (0)
  300. 0x26, 0xFF, 0x03, // Logical Maximum (1023)
  301. 0x95, 0x03, // Report Count (3)
  302. 0x75, 0x10, // Report Size (16)
  303. 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  304. 0xC0, // End Collection
  305. // 25 bytes
  306. };
  307. const unsigned char mediaReportMap2[] = {
  308. 0x05, 0x0C, // Usage Page (Consumer)
  309. 0x09, 0x01, // Usage (Consumer Control)
  310. 0xA1, 0x01, // Collection (Application)
  311. 0x85, 0x03, // Report ID (3)
  312. 0x09, 0x02, // Usage (Numeric Key Pad)
  313. 0xA1, 0x02, // Collection (Logical)
  314. 0x05, 0x09, // Usage Page (Button)
  315. 0x19, 0x01, // Usage Minimum (0x01)
  316. 0x29, 0x0A, // Usage Maximum (0x0A)
  317. 0x15, 0x01, // Logical Minimum (1)
  318. 0x25, 0x0A, // Logical Maximum (10)
  319. 0x75, 0x04, // Report Size (4)
  320. 0x95, 0x01, // Report Count (1)
  321. 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  322. 0xC0, // End Collection
  323. 0x05, 0x0C, // Usage Page (Consumer)
  324. 0x09, 0x86, // Usage (Channel)
  325. 0x15, 0xFF, // Logical Minimum (-1)
  326. 0x25, 0x01, // Logical Maximum (1)
  327. 0x75, 0x02, // Report Size (2)
  328. 0x95, 0x01, // Report Count (1)
  329. 0x81, 0x46, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,Null State)
  330. 0x09, 0xE9, // Usage (Volume Increment)
  331. 0x09, 0xEA, // Usage (Volume Decrement)
  332. 0x15, 0x00, // Logical Minimum (0)
  333. 0x75, 0x01, // Report Size (1)
  334. 0x95, 0x02, // Report Count (2)
  335. 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  336. 0x09, 0xE2, // Usage (Mute)
  337. 0x09, 0x30, // Usage (Power)
  338. 0x09, 0x83, // Usage (Recall Last)
  339. 0x09, 0x81, // Usage (Assign Selection)
  340. 0x09, 0xB0, // Usage (Play)
  341. 0x09, 0xB1, // Usage (Pause)
  342. 0x09, 0xB2, // Usage (Record)
  343. 0x09, 0xB3, // Usage (Fast Forward)
  344. 0x09, 0xB4, // Usage (Rewind)
  345. 0x09, 0xB5, // Usage (Scan Next Track)
  346. 0x09, 0xB6, // Usage (Scan Previous Track)
  347. 0x09, 0xB7, // Usage (Stop)
  348. 0x15, 0x01, // Logical Minimum (1)
  349. 0x25, 0x0C, // Logical Maximum (12)
  350. 0x75, 0x04, // Report Size (4)
  351. 0x95, 0x01, // Report Count (1)
  352. 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  353. 0x09, 0x80, // Usage (Selection)
  354. 0xA1, 0x02, // Collection (Logical)
  355. 0x05, 0x09, // Usage Page (Button)
  356. 0x19, 0x01, // Usage Minimum (0x01)
  357. 0x29, 0x03, // Usage Maximum (0x03)
  358. 0x15, 0x01, // Logical Minimum (1)
  359. 0x25, 0x03, // Logical Maximum (3)
  360. 0x75, 0x02, // Report Size (2)
  361. 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position)
  362. 0xC0, // End Collection
  363. 0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
  364. 0xC0, // End Collection
  365. };
  366. const unsigned char hidapiReportMap[] = { //8 bytes input, 8 bytes feature
  367. 0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00)
  368. 0x0A, 0x00, 0x01, // Usage (0x0100)
  369. 0xA1, 0x01, // Collection (Application)
  370. 0x85, 0x01, // Report ID (1)
  371. 0x15, 0x00, // Logical Minimum (0)
  372. 0x26, 0xFF, 0x00, // Logical Maximum (255)
  373. 0x75, 0x08, // Report Size (8)
  374. 0x95, 0x08, // Report Count (8)
  375. 0x09, 0x01, // Usage (0x01)
  376. 0x82, 0x02, 0x01, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Buffered Bytes)
  377. 0x95, 0x08, // Report Count (8)
  378. 0x09, 0x02, // Usage (0x02)
  379. 0xB2, 0x02, 0x01, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile,Buffered Bytes)
  380. 0x95, 0x08, // Report Count (8)
  381. 0x09, 0x03, // Usage (0x03)
  382. 0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
  383. 0xC0, // End Collection
  384. // 38 bytes
  385. };