xref: /haiku/headers/os/drivers/usb/USB_hid_page_digitizers.h (revision ed24eb5ff12640d052171c6a7feba37fab8a75d1)
1 /*
2  * Copyright 2004-2010, Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _USB_HID_PAGE_DIGITIZERS_H
6 #define _USB_HID_PAGE_DIGITIZERS_H
7 
8 
9 /* Reference:
10  *		HID Usage Page 0x0D: DIGITIZERS
11  *		HID Usage Tables Ver. 1.3
12  *		https://usb.org/sites/default/files/hut1_3_0.pdf
13  */
14 
15 // Usage IDs
16 enum {
17 	B_HID_UID_DIG_DIGITIZER = 0x1,
18 	B_HID_UID_DIG_PEN,
19 	B_HID_UID_DIG_LIGHT_PEN,
20 	B_HID_UID_DIG_TOUCH_SCREEN,
21 	B_HID_UID_DIG_TOUCH_PAD,
22 	B_HID_UID_DIG_WHITE_BOARD,
23 	B_HID_UID_DIG_COORDINATE_MEASURING_MACHINE,
24 	B_HID_UID_DIG_3D_DIGITIZER,
25 	B_HID_UID_DIG_STEREO_PLOTTER,
26 	B_HID_UID_DIG_ARTICULATED_ARM,
27 	B_HID_UID_DIG_ARMATURE,
28 	B_HID_UID_DIG_MULTIPLE_POINT_DIGITIZER,
29 	B_HID_UID_DIG_FREE_SPACE_WAND,
30 
31 	B_HID_UID_DIG_STYLUS = 0x20,
32 	B_HID_UID_DIG_PUCK,
33 	B_HID_UID_DIG_FINGER,
34 
35 	B_HID_UID_DIG_TIP_PRESSURE = 0x30,
36 	B_HID_UID_DIG_BARREL_PRESSURE,
37 	B_HID_UID_DIG_IN_RANGE,
38 	B_HID_UID_DIG_TOUCH,
39 	B_HID_UID_DIG_UNTOUCH,
40 	B_HID_UID_DIG_TAP,
41 	B_HID_UID_DIG_QUALITY,
42 	B_HID_UID_DIG_DATA_VALID,
43 	B_HID_UID_DIG_TRANSDUCER_INDEX,
44 	B_HID_UID_DIG_TABLET_FUNCTION_KEYS,
45 	B_HID_UID_DIG_PROGRAM_CHANGE_KEYS,
46 	B_HID_UID_DIG_BATTERY_STRENGTH,
47 	B_HID_UID_DIG_INVERT,
48 	B_HID_UID_DIG_X_TILT,
49 	B_HID_UID_DIG_Y_TILT,
50 	B_HID_UID_DIG_AZIMUTH,
51 	B_HID_UID_DIG_ALTITUDE,
52 	B_HID_UID_DIG_TWIST,
53 	B_HID_UID_DIG_TIP_SWITCH,
54 	B_HID_UID_DIG_SECONDARY_TIP_SWITCH,
55 	B_HID_UID_DIG_BARREL_SWITCH,
56 	B_HID_UID_DIG_ERASER,
57 	B_HID_UID_DIG_TABLET_PICK,
58 	B_HID_UID_DIG_TOUCH_VALID,
59 	B_HID_UID_DIG_WIDTH,
60 	B_HID_UID_DIG_HEIGHT,
61 
62 	B_HID_UID_DIG_CONTACT_IDENTIFIER = 0x51,
63 	B_HID_UID_DIG_DEVICE_MODE,
64 	B_HID_UID_DIG_DEVICE_IDENTIFIER,
65 	B_HID_UID_DIG_CONTACT_COUNT,
66 	B_HID_UID_DIG_CONTACT_COUNT_MAXIMUM,
67 	B_HID_UID_DIG_SCAN_TIME,
68 	B_HID_UID_DIG_SURFACE_SWITCH,
69 	B_HID_UID_DIG_BUTTON_SWITCH,
70 	B_HID_UID_DIG_PAD_TYPE,
71 	B_HID_UID_DIG_SECONDARY_BARREL_SWITCH,
72 	B_HID_UID_DIG_TRANSDUCER_SERIAL_NUMBER,
73 	B_HID_UID_DIG_PREFERRED_COLOR,
74 	B_HID_UID_DIG_PREFERRED_COLOR_IS_LOCKED,
75 	B_HID_UID_DIG_PREFERRED_LINE_WIDTH,
76 	B_HID_UID_DIG_PREFERRED_LINE_WIDTH_IS_LOCKED,
77 	B_HID_UID_DIG_LATENCY_MODE,
78 	B_HID_UID_DIG_GESTURE_CHARACTER_QUALITY,
79 	B_HID_UID_DIG_GESTURE_CHARACTER_ENCODING,
80 	B_HID_UID_DIG_GESTURE_CHARACTER_DATA_LENGTH,
81 	B_HID_UID_DIG_GESTURE_CHARACTER_DATA,
82 	B_HID_UID_DIG_UTF8_CHARACTER_GESTURE_ENCODING,
83 	B_HID_UID_DIG_UTF16_LITTLE_ENDIAN_CHARACTER_GESTURE_ENCODING,
84 	B_HID_UID_DIG_UTF16_BIG_ENDIAN_CHARACTER_GESTURE_ENCODING,
85 	B_HID_UID_DIG_UTF32_LITTLE_ENDIAN_CHARACTER_GESTURE_ENCODING,
86 	B_HID_UID_DIG_UTF32_BIG_ENDIAN_CHARACTER_GESTURE_ENCODING,
87 	B_HID_UID_DIG_CAPACITIVE_HEAT_MAP_PROTOCOL_VENDOR_ID,
88 	B_HID_UID_DIG_CAPACITIVE_HEAT_MAP_PROTOCOL_VERSION,
89 	B_HID_UID_DIG_CAPACITIVE_HEAT_MAP_FRAME_DATA,
90 	B_HID_UID_DIG_GESTURE_CHARACTER_ENABLE,
91 	B_HID_UID_DIG_TRANSDUCER_SERIAL_NUMBER_PART_2,
92 	B_HID_UID_DIG_NO_PREFERRED_COLOR,
93 	B_HID_UID_DIG_PREFERRED_LINE_STYLE,
94 	B_HID_UID_DIG_PREFERRED_LINE_STYLE_IS_LOCKED,
95 	B_HID_UID_DIG_INK,
96 	B_HID_UID_DIG_PENCIL,
97 	B_HID_UID_DIG_HIGHLIGHTER,
98 	B_HID_UID_DIG_CHISEL_MARKER,
99 	B_HID_UID_DIG_BRUSH,
100 	B_HID_UID_DIG_NO_PREFERENCE,
101 
102 	B_HID_UID_DIG_DIGITIZER_DIAGNOSTIC = 0x80,
103 	B_HID_UID_DIG_DIGITIZER_ERROR,
104 	B_HID_UID_DIG_ERR_NORMAL_STATUS,
105 	B_HID_UID_DIG_ERR_TRANSDUCERS_EXCEEDED,
106 	B_HID_UID_DIG_ERR_FULL_TRANS_FEATURES_UNAVAILABLE,
107 	B_HID_UID_DIG_ERR_CHARGE_LOW,
108 
109 	B_HID_UID_DIG_TRANSDUCER_SOFTWARE_INFO = 0x90,
110 	B_HID_UID_DIG_TRANSDUCER_VENDOR_ID,
111 	B_HID_UID_DIG_TRANSDUCER_PRODUCT_ID,
112 	B_HID_UID_DIG_DEVICE_SUPPORTED_PROTOCOLS,
113 	B_HID_UID_DIG_TRANSDUCER_SUPPORTED_PROTOCOLS,
114 	B_HID_UID_DIG_NO_PROTOCOL,
115 	B_HID_UID_DIG_WACOM_AES_PROTOCOL,
116 	B_HID_UID_DIG_USI_PROTOCOL,
117 	B_HID_UID_DIG_MICROSOFT_PEN_PROTOCOL,
118 
119 	B_HID_UID_DIG_SUPPORTED_REPORT_RATES = 0xA0,
120 	B_HID_UID_DIG_REPORT_RATE,
121 	B_HID_UID_DIG_TRANSDUCER_CONNECTED,
122 	B_HID_UID_DIG_SWITCH_DISABLED,
123 	B_HID_UID_DIG_SWITCH_UNIMPLEMENTED,
124 	B_HID_UID_DIG_TRANSDUCER_SWITCHES
125 };
126 
127 
128 #endif // _USB_HID_PAGE_DIGITIZERS_H
129