]> git.zerfleddert.de Git - proxmark3-svn/blame - winsrc/include/hidusage.h
fast flash mode (button already held down) and both (os & fpga) flashing mode
[proxmark3-svn] / winsrc / include / hidusage.h
CommitLineData
6658905f 1/*++\r
2\r
3Copyright (c) 1996, 1997 Microsoft Corporation\r
4\r
5Module Name:\r
6\r
7 HIDUSAGE.H\r
8\r
9Abstract:\r
10\r
11 Public Definitions of HID USAGES.\r
12\r
13Environment:\r
14\r
15 Kernel & user mode\r
16\r
17--*/\r
18\r
19#ifndef __HIDUSAGE_H__\r
20#define __HIDUSAGE_H__\r
21\r
22//\r
23// Usage Pages\r
24//\r
25\r
26typedef USHORT USAGE, *PUSAGE;\r
27\r
28#define HID_USAGE_PAGE_GENERIC ((USAGE) 0x01)\r
29#define HID_USAGE_PAGE_SIMULATION ((USAGE) 0x02)\r
30#define HID_USAGE_PAGE_VR ((USAGE) 0x03)\r
31#define HID_USAGE_PAGE_SPORT ((USAGE) 0x04)\r
32#define HID_USAGE_PAGE_GAME ((USAGE) 0x05)\r
33#define HID_USAGE_PAGE_KEYBOARD ((USAGE) 0x07)\r
34#define HID_USAGE_PAGE_LED ((USAGE) 0x08)\r
35#define HID_USAGE_PAGE_BUTTON ((USAGE) 0x09)\r
36#define HID_USAGE_PAGE_ORDINAL ((USAGE) 0x0A)\r
37#define HID_USAGE_PAGE_TELEPHONY ((USAGE) 0x0B)\r
38#define HID_USAGE_PAGE_CONSUMER ((USAGE) 0x0C)\r
39#define HID_USAGE_PAGE_DIGITIZER ((USAGE) 0x0D)\r
40#define HID_USAGE_PAGE_UNICODE ((USAGE) 0x10)\r
41#define HID_USAGE_PAGE_ALPHANUMERIC ((USAGE) 0x14)\r
42\r
43\r
44//\r
45// Usages from Generic Desktop Page (0x01)\r
46//\r
47\r
48#define HID_USAGE_GENERIC_POINTER ((USAGE) 0x01)\r
49#define HID_USAGE_GENERIC_MOUSE ((USAGE) 0x02)\r
50#define HID_USAGE_GENERIC_JOYSTICK ((USAGE) 0x04)\r
51#define HID_USAGE_GENERIC_GAMEPAD ((USAGE) 0x05)\r
52#define HID_USAGE_GENERIC_KEYBOARD ((USAGE) 0x06)\r
53#define HID_USAGE_GENERIC_KEYPAD ((USAGE) 0x07)\r
54#define HID_USAGE_GENERIC_SYSTEM_CTL ((USAGE) 0x80)\r
55\r
56#define HID_USAGE_GENERIC_X ((USAGE) 0x30)\r
57#define HID_USAGE_GENERIC_Y ((USAGE) 0x31)\r
58#define HID_USAGE_GENERIC_Z ((USAGE) 0x32)\r
59#define HID_USAGE_GENERIC_RX ((USAGE) 0x33)\r
60#define HID_USAGE_GENERIC_RY ((USAGE) 0x34)\r
61#define HID_USAGE_GENERIC_RZ ((USAGE) 0x35)\r
62#define HID_USAGE_GENERIC_SLIDER ((USAGE) 0x36)\r
63#define HID_USAGE_GENERIC_DIAL ((USAGE) 0x37)\r
64#define HID_USAGE_GENERIC_WHEEL ((USAGE) 0x38)\r
65#define HID_USAGE_GENERIC_HATSWITCH ((USAGE) 0x39)\r
66#define HID_USAGE_GENERIC_COUNTED_BUFFER ((USAGE) 0x3A)\r
67#define HID_USAGE_GENERIC_BYTE_COUNT ((USAGE) 0x3B)\r
68#define HID_USAGE_GENERIC_MOTION_WAKEUP ((USAGE) 0x3C)\r
69#define HID_USAGE_GENERIC_VX ((USAGE) 0x40)\r
70#define HID_USAGE_GENERIC_VY ((USAGE) 0x41)\r
71#define HID_USAGE_GENERIC_VZ ((USAGE) 0x42)\r
72#define HID_USAGE_GENERIC_VBRX ((USAGE) 0x43)\r
73#define HID_USAGE_GENERIC_VBRY ((USAGE) 0x44)\r
74#define HID_USAGE_GENERIC_VBRZ ((USAGE) 0x45)\r
75#define HID_USAGE_GENERIC_VNO ((USAGE) 0x46)\r
76#define HID_USAGE_GENERIC_SYSCTL_POWER ((USAGE) 0x81)\r
77#define HID_USAGE_GENERIC_SYSCTL_SLEEP ((USAGE) 0x82)\r
78#define HID_USAGE_GENERIC_SYSCTL_WAKE ((USAGE) 0x83)\r
79#define HID_USAGE_GENERIC_SYSCTL_CONTEXT_MENU ((USAGE) 0x84)\r
80#define HID_USAGE_GENERIC_SYSCTL_MAIN_MENU ((USAGE) 0x85)\r
81#define HID_USAGE_GENERIC_SYSCTL_APP_MENU ((USAGE) 0x86)\r
82#define HID_USAGE_GENERIC_SYSCTL_HELP_MENU ((USAGE) 0x87)\r
83#define HID_USAGE_GENERIC_SYSCTL_MENU_EXIT ((USAGE) 0x88)\r
84#define HID_USAGE_GENERIC_SYSCTL_MENU_SELECT ((USAGE) 0x89)\r
85#define HID_USAGE_GENERIC_SYSCTL_MENU_RIGHT ((USAGE) 0x8A)\r
86#define HID_USAGE_GENERIC_SYSCTL_MENU_LEFT ((USAGE) 0x8B)\r
87#define HID_USAGE_GENERIC_SYSCTL_MENU_UP ((USAGE) 0x8C)\r
88#define HID_USAGE_GENERIC_SYSCTL_MENU_DOWN ((USAGE) 0x8D)\r
89\r
90//\r
91// Usages from Simulation Controls Page (0x02)\r
92//\r
93\r
94#define HID_USAGE_SIMULATION_RUDDER ((USAGE) 0xBA)\r
95#define HID_USAGE_SIMULATION_THROTTLE ((USAGE) 0xBB)\r
96\r
97//\r
98// Virtual Reality Controls Page (0x03)\r
99//\r
100\r
101\r
102//\r
103// Sport Controls Page (0x04)\r
104//\r
105\r
106\r
107//\r
108// Game Controls Page (0x05)\r
109//\r
110\r
111\r
112//\r
113// Keyboard/Keypad Page (0x07)\r
114//\r
115\r
116 // Error "keys"\r
117#define HID_USAGE_KEYBOARD_NOEVENT ((USAGE) 0x00)\r
118#define HID_USAGE_KEYBOARD_ROLLOVER ((USAGE) 0x01)\r
119#define HID_USAGE_KEYBOARD_POSTFAIL ((USAGE) 0x02)\r
120#define HID_USAGE_KEYBOARD_UNDEFINED ((USAGE) 0x03)\r
121\r
122 // Letters\r
123#define HID_USAGE_KEYBOARD_aA ((USAGE) 0x04)\r
124#define HID_USAGE_KEYBOARD_zZ ((USAGE) 0x1D)\r
125 // Numbers\r
126#define HID_USAGE_KEYBOARD_ONE ((USAGE) 0x1E)\r
127#define HID_USAGE_KEYBOARD_ZERO ((USAGE) 0x27)\r
128 // Modifier Keys\r
129#define HID_USAGE_KEYBOARD_LCTRL ((USAGE) 0xE0)\r
130#define HID_USAGE_KEYBOARD_LSHFT ((USAGE) 0xE1)\r
131#define HID_USAGE_KEYBOARD_LALT ((USAGE) 0xE2)\r
132#define HID_USAGE_KEYBOARD_LGUI ((USAGE) 0xE3)\r
133#define HID_USAGE_KEYBOARD_RCTRL ((USAGE) 0xE4)\r
134#define HID_USAGE_KEYBOARD_RSHFT ((USAGE) 0xE5)\r
135#define HID_USAGE_KEYBOARD_RALT ((USAGE) 0xE6)\r
136#define HID_USAGE_KEYBOARD_RGUI ((USAGE) 0xE7)\r
137#define HID_USAGE_KEYBOARD_SCROLL_LOCK ((USAGE) 0x47)\r
138#define HID_USAGE_KEYBOARD_NUM_LOCK ((USAGE) 0x53)\r
139#define HID_USAGE_KEYBOARD_CAPS_LOCK ((USAGE) 0x39)\r
140 // Funtion keys\r
141#define HID_USAGE_KEYBOARD_F1 ((USAGE) 0x3A)\r
142#define HID_USAGE_KEYBOARD_F12 ((USAGE) 0x45)\r
143\r
144#define HID_USAGE_KEYBOARD_RETURN ((USAGE) 0x28)\r
145#define HID_USAGE_KEYBOARD_ESCAPE ((USAGE) 0x29)\r
146#define HID_USAGE_KEYBOARD_DELETE ((USAGE) 0x2A)\r
147\r
148#define HID_USAGE_KEYBOARD_PRINT_SCREEN ((USAGE) 0x46)\r
149\r
150// and hundreds more...\r
151\r
152//\r
153// LED Page (0x08)\r
154//\r
155\r
156#define HID_USAGE_LED_NUM_LOCK ((USAGE) 0x01)\r
157#define HID_USAGE_LED_CAPS_LOCK ((USAGE) 0x02)\r
158#define HID_USAGE_LED_SCROLL_LOCK ((USAGE) 0x03)\r
159#define HID_USAGE_LED_COMPOSE ((USAGE) 0x04)\r
160#define HID_USAGE_LED_KANA ((USAGE) 0x05)\r
161#define HID_USAGE_LED_POWER ((USAGE) 0x06)\r
162#define HID_USAGE_LED_SHIFT ((USAGE) 0x07)\r
163#define HID_USAGE_LED_DO_NOT_DISTURB ((USAGE) 0x08)\r
164#define HID_USAGE_LED_MUTE ((USAGE) 0x09)\r
165#define HID_USAGE_LED_TONE_ENABLE ((USAGE) 0x0A)\r
166#define HID_USAGE_LED_HIGH_CUT_FILTER ((USAGE) 0x0B)\r
167#define HID_USAGE_LED_LOW_CUT_FILTER ((USAGE) 0x0C)\r
168#define HID_USAGE_LED_EQUALIZER_ENABLE ((USAGE) 0x0D)\r
169#define HID_USAGE_LED_SOUND_FIELD_ON ((USAGE) 0x0E)\r
170#define HID_USAGE_LED_SURROUND_FIELD_ON ((USAGE) 0x0F)\r
171#define HID_USAGE_LED_REPEAT ((USAGE) 0x10)\r
172#define HID_USAGE_LED_STEREO ((USAGE) 0x11)\r
173#define HID_USAGE_LED_SAMPLING_RATE_DETECT ((USAGE) 0x12)\r
174#define HID_USAGE_LED_SPINNING ((USAGE) 0x13)\r
175#define HID_USAGE_LED_CAV ((USAGE) 0x14)\r
176#define HID_USAGE_LED_CLV ((USAGE) 0x15)\r
177#define HID_USAGE_LED_RECORDING_FORMAT_DET ((USAGE) 0x16)\r
178#define HID_USAGE_LED_OFF_HOOK ((USAGE) 0x17)\r
179#define HID_USAGE_LED_RING ((USAGE) 0x18)\r
180#define HID_USAGE_LED_MESSAGE_WAITING ((USAGE) 0x19)\r
181#define HID_USAGE_LED_DATA_MODE ((USAGE) 0x1A)\r
182#define HID_USAGE_LED_BATTERY_OPERATION ((USAGE) 0x1B)\r
183#define HID_USAGE_LED_BATTERY_OK ((USAGE) 0x1C)\r
184#define HID_USAGE_LED_BATTERY_LOW ((USAGE) 0x1D)\r
185#define HID_USAGE_LED_SPEAKER ((USAGE) 0x1E)\r
186#define HID_USAGE_LED_HEAD_SET ((USAGE) 0x1F)\r
187#define HID_USAGE_LED_HOLD ((USAGE) 0x20)\r
188#define HID_USAGE_LED_MICROPHONE ((USAGE) 0x21)\r
189#define HID_USAGE_LED_COVERAGE ((USAGE) 0x22)\r
190#define HID_USAGE_LED_NIGHT_MODE ((USAGE) 0x23)\r
191#define HID_USAGE_LED_SEND_CALLS ((USAGE) 0x24)\r
192#define HID_USAGE_LED_CALL_PICKUP ((USAGE) 0x25)\r
193#define HID_USAGE_LED_CONFERENCE ((USAGE) 0x26)\r
194#define HID_USAGE_LED_STAND_BY ((USAGE) 0x27)\r
195#define HID_USAGE_LED_CAMERA_ON ((USAGE) 0x28)\r
196#define HID_USAGE_LED_CAMERA_OFF ((USAGE) 0x29)\r
197#define HID_USAGE_LED_ON_LINE ((USAGE) 0x2A)\r
198#define HID_USAGE_LED_OFF_LINE ((USAGE) 0x2B)\r
199#define HID_USAGE_LED_BUSY ((USAGE) 0x2C)\r
200#define HID_USAGE_LED_READY ((USAGE) 0x2D)\r
201#define HID_USAGE_LED_PAPER_OUT ((USAGE) 0x2E)\r
202#define HID_USAGE_LED_PAPER_JAM ((USAGE) 0x2F)\r
203#define HID_USAGE_LED_REMOTE ((USAGE) 0x30)\r
204#define HID_USAGE_LED_FORWARD ((USAGE) 0x31)\r
205#define HID_USAGE_LED_REVERSE ((USAGE) 0x32)\r
206#define HID_USAGE_LED_STOP ((USAGE) 0x33)\r
207#define HID_USAGE_LED_REWIND ((USAGE) 0x34)\r
208#define HID_USAGE_LED_FAST_FORWARD ((USAGE) 0x35)\r
209#define HID_USAGE_LED_PLAY ((USAGE) 0x36)\r
210#define HID_USAGE_LED_PAUSE ((USAGE) 0x37)\r
211#define HID_USAGE_LED_RECORD ((USAGE) 0x38)\r
212#define HID_USAGE_LED_ERROR ((USAGE) 0x39)\r
213#define HID_USAGE_LED_SELECTED_INDICATOR ((USAGE) 0x3A)\r
214#define HID_USAGE_LED_IN_USE_INDICATOR ((USAGE) 0x3B)\r
215#define HID_USAGE_LED_MULTI_MODE_INDICATOR ((USAGE) 0x3C)\r
216#define HID_USAGE_LED_INDICATOR_ON ((USAGE) 0x3D)\r
217#define HID_USAGE_LED_INDICATOR_FLASH ((USAGE) 0x3E)\r
218#define HID_USAGE_LED_INDICATOR_SLOW_BLINK ((USAGE) 0x3F)\r
219#define HID_USAGE_LED_INDICATOR_FAST_BLINK ((USAGE) 0x40)\r
220#define HID_USAGE_LED_INDICATOR_OFF ((USAGE) 0x41)\r
221#define HID_USAGE_LED_FLASH_ON_TIME ((USAGE) 0x42)\r
222#define HID_USAGE_LED_SLOW_BLINK_ON_TIME ((USAGE) 0x43)\r
223#define HID_USAGE_LED_SLOW_BLINK_OFF_TIME ((USAGE) 0x44)\r
224#define HID_USAGE_LED_FAST_BLINK_ON_TIME ((USAGE) 0x45)\r
225#define HID_USAGE_LED_FAST_BLINK_OFF_TIME ((USAGE) 0x46)\r
226#define HID_USAGE_LED_INDICATOR_COLOR ((USAGE) 0x47)\r
227#define HID_USAGE_LED_RED ((USAGE) 0x48)\r
228#define HID_USAGE_LED_GREEN ((USAGE) 0x49)\r
229#define HID_USAGE_LED_AMBER ((USAGE) 0x4A)\r
230#define HID_USAGE_LED_GENERIC_INDICATOR ((USAGE) 0x3B)\r
231\r
232//\r
233// Button Page (0x09)\r
234//\r
235// There is no need to label these usages.\r
236//\r
237\r
238\r
239//\r
240// Ordinal Page (0x0A)\r
241//\r
242// There is no need to label these usages.\r
243//\r
244\r
245\r
246//\r
247// Telephony Device Page (0x0B)\r
248//\r
249\r
250#define HID_USAGE_TELEPHONY_PHONE ((USAGE) 0x01)\r
251#define HID_USAGE_TELEPHONY_ANSWERING_MACHINE ((USAGE) 0x02)\r
252#define HID_USAGE_TELEPHONY_MESSAGE_CONTROLS ((USAGE) 0x03)\r
253#define HID_USAGE_TELEPHONY_HANDSET ((USAGE) 0x04)\r
254#define HID_USAGE_TELEPHONY_HEADSET ((USAGE) 0x05)\r
255#define HID_USAGE_TELEPHONY_KEYPAD ((USAGE) 0x06)\r
256#define HID_USAGE_TELEPHONY_PROGRAMMABLE_BUTTON ((USAGE) 0x07)\r
257\r
258//\r
259// and others...\r
260//\r
261\r
262\r
263#endif\r
Impressum, Datenschutz