Lines Matching +full:hid +full:- +full:mouse
5 * SPDX-License-Identifier: Apache-2.0
10 * @brief USB Human Interface Device (HID) common definitions header
12 * Header follows Device Class Definition for Human Interface Devices (HID)
13 * Version 1.11 document (HID1_11-1.pdf).
24 * @brief hid.h API
25 * @defgroup usb_hid_definitions USB HID common definitions
33 * @name USB HID types and values
37 /** HID Specification release v1.11 */
40 /** USB HID Class HID descriptor type */
42 /** USB HID Class Report descriptor type */
44 /** USB HID Class physical descriptor type */
47 /** USB HID Class GetReport bRequest value */
49 /** USB HID Class GetIdle bRequest value */
51 /** USB HID Class GetProtocol bRequest value */
53 /** USB HID Class SetReport bRequest value */
55 /** USB HID Class SetIdle bRequest value */
57 /** USB HID Class SetProtocol bRequest value */
60 /** USB HID Boot Interface Protocol (bInterfaceProtocol) Code None */
62 /** USB HID Boot Interface Protocol (bInterfaceProtocol) Code Keyboard */
64 /** USB HID Boot Interface Protocol (bInterfaceProtocol) Code Mouse */
67 /** USB HID Class Boot protocol code */
69 /** USB HID Class Report protocol code */
72 /** HID Main item type */
74 /** HID Global item type */
76 /** HID Local item type */
79 /** HID Input item tag */
81 /** HID Output item tag */
83 /** HID Collection item tag */
85 /** HID Feature item tag */
87 /** HID End Collection item tag */
90 /** HID Usage Page item tag */
92 /** HID Logical Minimum item tag */
94 /** HID Logical Maximum item tag */
96 /** HID Physical Minimum item tag */
98 /** HID Physical Maximum item tag */
100 /** HID Unit Exponent item tag */
102 /** HID Unit item tag */
104 /** HID Report Size item tag */
106 /** HID Report ID item tag */
108 /** HID Report count item tag */
111 /** HID Usage item tag */
113 /** HID Usage Minimum item tag */
115 /** HID Usage Maximum item tag */
134 /* Usage page and IDs from Universal Serial Bus HID Usage Tables */
136 /** HID Generic Desktop Controls Usage page */
138 /** HID Keyboard Usage page */
140 /** HID LEDs Usage page */
142 /** HID Button Usage page */
145 /** HID Generic Desktop Undefined Usage ID */
147 /** HID Generic Desktop Pointer Usage ID */
149 /** HID Generic Desktop Mouse Usage ID */
151 /** HID Generic Desktop Joystick Usage ID */
153 /** HID Generic Desktop Gamepad Usage ID */
155 /** HID Generic Desktop Keyboard Usage ID */
157 /** HID Generic Desktop Keypad Usage ID */
159 /** HID Generic Desktop X Usage ID */
161 /** HID Generic Desktop Y Usage ID */
163 /** HID Generic Desktop Wheel Usage ID */
171 * @defgroup usb_hid_items USB HID Item helpers
176 * @brief Define HID short item.
181 * @return HID Input item
187 * @brief Define HID Input item with the data length of one byte.
193 * @return HID Input item
199 * @brief Define HID Output item with the data length of one byte.
204 * @return HID Output item
210 * @brief Define HID Feature item with the data length of one byte.
213 * @return HID Feature item
219 * @brief Define HID Collection item with the data length of one byte.
225 * @return HID Collection item
231 * @brief Define HID End Collection (non-data) item.
236 * @return HID End Collection item
242 * @brief Define HID Usage Page item.
248 * @return HID Usage Page item
254 * @brief Define HID Logical Minimum item with the data length of one byte.
260 * @return HID Logical Minimum item
266 * @brief Define HID Logical Maximum item with the data length of one byte.
272 * @return HID Logical Maximum item
278 * @brief Define HID Logical Minimum item with the data length of two bytes.
282 * @return HID Logical Minimum item
288 * @brief Define HID Logical Maximum item with the data length of two bytes.
292 * @return HID Logical Maximum item
298 * @brief Define HID Logical Minimum item with the data length of four bytes.
304 * @return HID Logical Minimum item
310 * @brief Define HID Logical Maximum item with the data length of four bytes.
316 * @return HID Logical Maximum item
322 * @brief Define HID Report Size item with the data length of one byte.
328 * @return HID Report Size item
334 * @brief Define HID Report ID item with the data length of one byte.
337 * @return HID Report ID item
343 * @brief Define HID Report Count item with the data length of one byte.
349 * @return HID Report Count item
355 * @brief Define HID Usage Index item with the data length of one byte.
361 * @return HID Usage Index item
367 * @brief Define HID Usage Minimum item with the data length of one byte.
373 * @return HID Usage Minimum item
379 * @brief Define HID Usage Maximum item with the data length of one byte.
385 * @return HID Usage Maximum item
391 * @brief Define HID Usage Minimum item with the data length of two bytes.
398 * @return HID Usage Minimum item
404 * @brief Define HID Usage Maximum item with the data length of two bytes.
411 * @return HID Usage Maximum item
421 * @defgroup usb_hid_mk_report_desc Mouse and keyboard report descriptors
426 * @brief Simple HID mouse report descriptor for n button mouse.
447 HID_REPORT_SIZE(8 - bcnt), \
456 HID_LOGICAL_MIN8(-127), \
467 * @brief Simple HID keyboard report descriptor.
516 * @brief HID keyboard button codes.
565 HID_KEY_HASH = 50, /* Non-US # and ~ */
617 * @brief HID keyboard modifiers.
632 * @brief HID keyboard LEDs.