| 1 |
/** |
| 2 |
****************************************************************************** |
| 3 |
* @file usbh_hid_keybd.c |
| 4 |
* @author MCD Application Team |
| 5 |
* @version V3.0.0 |
| 6 |
* @date 18-February-2014 |
| 7 |
* @brief This file contain the USAGE page codes |
| 8 |
****************************************************************************** |
| 9 |
* @attention |
| 10 |
* |
| 11 |
* <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2> |
| 12 |
* |
| 13 |
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); |
| 14 |
* You may not use this file except in compliance with the License. |
| 15 |
* You may obtain a copy of the License at: |
| 16 |
* |
| 17 |
* http://www.st.com/software_license_agreement_liberty_v2 |
| 18 |
* |
| 19 |
* Unless required by applicable law or agreed to in writing, software |
| 20 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 21 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 22 |
* See the License for the specific language governing permissions and |
| 23 |
* limitations under the License. |
| 24 |
* |
| 25 |
****************************************************************************** |
| 26 |
*/ |
| 27 |
#ifndef _HID_USAGE_H_ |
| 28 |
#define _HID_USAGE_H_ |
| 29 |
|
| 30 |
/** @addtogroup USBH_LIB |
| 31 |
* @{ |
| 32 |
*/ |
| 33 |
|
| 34 |
/** @addtogroup USBH_CLASS |
| 35 |
* @{ |
| 36 |
*/ |
| 37 |
|
| 38 |
/** @addtogroup USBH_HID_CLASS |
| 39 |
* @{ |
| 40 |
*/ |
| 41 |
|
| 42 |
/** @defgroup USBH_HID_USAGE |
| 43 |
* @brief This file is the Header file for USBH_HID_USAGE.c |
| 44 |
* @{ |
| 45 |
*/ |
| 46 |
|
| 47 |
|
| 48 |
/** @defgroup USBH_HID_USAGE_Exported_Types |
| 49 |
* @{ |
| 50 |
*/ |
| 51 |
|
| 52 |
/****************************************************/ |
| 53 |
/* HID 1.11 usage pages */ |
| 54 |
/****************************************************/ |
| 55 |
|
| 56 |
#define HID_USAGE_PAGE_UNDEFINED uint16_t (0x00) /* Undefined */ |
| 57 |
/**** Top level pages */ |
| 58 |
#define HID_USAGE_PAGE_GEN_DES uint16_t (0x01) /* Generic Desktop Controls*/ |
| 59 |
#define HID_USAGE_PAGE_SIM_CTR uint16_t (0x02) /* Simulation Controls */ |
| 60 |
#define HID_USAGE_PAGE_VR_CTR uint16_t (0x03) /* VR Controls */ |
| 61 |
#define HID_USAGE_PAGE_SPORT_CTR uint16_t (0x04) /* Sport Controls */ |
| 62 |
#define HID_USAGE_PAGE_GAME_CTR uint16_t (0x05) /* Game Controls */ |
| 63 |
#define HID_USAGE_PAGE_GEN_DEV uint16_t (0x06) /* Generic Device Controls */ |
| 64 |
#define HID_USAGE_PAGE_KEYB uint16_t (0x07) /* Keyboard/Keypad */ |
| 65 |
#define HID_USAGE_PAGE_LED uint16_t (0x08) /* LEDs */ |
| 66 |
#define HID_USAGE_PAGE_BUTTON uint16_t (0x09) /* Button */ |
| 67 |
#define HID_USAGE_PAGE_ORDINAL uint16_t (0x0A) /* Ordinal */ |
| 68 |
#define HID_USAGE_PAGE_PHONE uint16_t (0x0B) /* Telephony */ |
| 69 |
#define HID_USAGE_PAGE_CONSUMER uint16_t (0x0C) /* Consumer */ |
| 70 |
#define HID_USAGE_PAGE_DIGITIZER uint16_t (0x0D) /* Digitizer*/ |
| 71 |
/* 0E Reserved */ |
| 72 |
#define HID_USAGE_PAGE_PID uint16_t (0x0F) /* PID Page (force feedback and related devices) */ |
| 73 |
#define HID_USAGE_PAGE_UNICODE uint16_t (0x10) /* Unicode */ |
| 74 |
/* 11-13 Reserved */ |
| 75 |
#define HID_USAGE_PAGE_ALNUM_DISP uint16_t (0x14) /* Alphanumeric Display */ |
| 76 |
/* 15-1f Reserved */ |
| 77 |
/**** END of top level pages */ |
| 78 |
/* 25-3f Reserved */ |
| 79 |
#define HID_USAGE_PAGE_MEDICAL uint16_t (0x40) /* Medical Instruments */ |
| 80 |
/* 41-7F Reserved */ |
| 81 |
/*80-83 Monitor pages USB Device Class Definition for Monitor Devices |
| 82 |
84-87 Power pages USB Device Class Definition for Power Devices */ |
| 83 |
/* 88-8B Reserved */ |
| 84 |
#define HID_USAGE_PAGE_BARCODE uint16_t (0x8C) /* Bar Code Scanner page */ |
| 85 |
#define HID_USAGE_PAGE_SCALE uint16_t (0x8D) /* Scale page */ |
| 86 |
#define HID_USAGE_PAGE_MSR uint16_t (0x8E) /* Magnetic Stripe Reading (MSR) Devices */ |
| 87 |
#define HID_USAGE_PAGE_POS uint16_t (0x8F) /* Reserved Point of Sale pages */ |
| 88 |
#define HID_USAGE_PAGE_CAMERA_CTR uint16_t (0x90) /* Camera Control Page */ |
| 89 |
#define HID_USAGE_PAGE_ARCADE uint16_t (0x91) /* Arcade Page */ |
| 90 |
|
| 91 |
/****************************************************/ |
| 92 |
/* Usage definitions for the "Generic Decktop" page */ |
| 93 |
/****************************************************/ |
| 94 |
#define HID_USAGE_UNDEFINED uint16_t (0x00) /* Undefined */ |
| 95 |
#define HID_USAGE_POINTER uint16_t (0x01) /* Pointer (Physical Collection) */ |
| 96 |
#define HID_USAGE_MOUSE uint16_t (0x02) /* Mouse (Application Collection) */ |
| 97 |
/* 03 Reserved */ |
| 98 |
#define HID_USAGE_JOYSTICK uint16_t (0x04) /* Joystick (Application Collection) */ |
| 99 |
#define HID_USAGE_GAMEPAD uint16_t (0x05) /* Game Pad (Application Collection) */ |
| 100 |
#define HID_USAGE_KBD uint16_t (0x06) /* Keyboard (Application Collection) */ |
| 101 |
#define HID_USAGE_KEYPAD uint16_t (0x07) /* Keypad (Application Collection) */ |
| 102 |
#define HID_USAGE_MAX_CTR uint16_t (0x08) /* Multi-axis Controller (Application Collection) */ |
| 103 |
/* 09-2F Reserved */ |
| 104 |
#define HID_USAGE_X uint16_t (0x30) /* X (Dynamic Value) */ |
| 105 |
#define HID_USAGE_Y uint16_t (0x31) /* Y (Dynamic Value) */ |
| 106 |
#define HID_USAGE_Z uint16_t (0x32) /* Z (Dynamic Value) */ |
| 107 |
#define HID_USAGE_RX uint16_t (0x33) /* Rx (Dynamic Value) */ |
| 108 |
#define HID_USAGE_RY uint16_t (0x34) /* Ry (Dynamic Value) */ |
| 109 |
#define HID_USAGE_RZ uint16_t (0x35) /* Rz (Dynamic Value) */ |
| 110 |
#define HID_USAGE_SLIDER uint16_t (0x36) /* Slider (Dynamic Value) */ |
| 111 |
#define HID_USAGE_DIAL uint16_t (0x37) /* Dial (Dynamic Value) */ |
| 112 |
#define HID_USAGE_WHEEL uint16_t (0x38) /* Wheel (Dynamic Value) */ |
| 113 |
#define HID_USAGE_HATSW uint16_t (0x39) /* Hat switch (Dynamic Value) */ |
| 114 |
#define HID_USAGE_COUNTEDBUF uint16_t (0x3A) /* Counted Buffer (Logical Collection) */ |
| 115 |
#define HID_USAGE_BYTECOUNT uint16_t (0x3B) /* Byte Count (Dynamic Value) */ |
| 116 |
#define HID_USAGE_MOTIONWAKE uint16_t (0x3C) /* Motion Wakeup (One Shot Control) */ |
| 117 |
#define HID_USAGE_START uint16_t (0x3D) /* Start (On/Off Control) */ |
| 118 |
#define HID_USAGE_SELECT uint16_t (0x3E) /* Select (On/Off Control) */ |
| 119 |
/* 3F Reserved */ |
| 120 |
#define HID_USAGE_VX uint16_t (0x40) /* Vx (Dynamic Value) */ |
| 121 |
#define HID_USAGE_VY uint16_t (0x41) /* Vy (Dynamic Value) */ |
| 122 |
#define HID_USAGE_VZ uint16_t (0x42) /* Vz (Dynamic Value) */ |
| 123 |
#define HID_USAGE_VBRX uint16_t (0x43) /* Vbrx (Dynamic Value) */ |
| 124 |
#define HID_USAGE_VBRY uint16_t (0x44) /* Vbry (Dynamic Value) */ |
| 125 |
#define HID_USAGE_VBRZ uint16_t (0x45) /* Vbrz (Dynamic Value) */ |
| 126 |
#define HID_USAGE_VNO uint16_t (0x46) /* Vno (Dynamic Value) */ |
| 127 |
#define HID_USAGE_FEATNOTIF uint16_t (0x47) /* Feature Notification (Dynamic Value),(Dynamic Flag) */ |
| 128 |
/* 48-7F Reserved */ |
| 129 |
#define HID_USAGE_SYSCTL uint16_t (0x80) /* System Control (Application Collection) */ |
| 130 |
#define HID_USAGE_PWDOWN uint16_t (0x81) /* System Power Down (One Shot Control) */ |
| 131 |
#define HID_USAGE_SLEEP uint16_t (0x82) /* System Sleep (One Shot Control) */ |
| 132 |
#define HID_USAGE_WAKEUP uint16_t (0x83) /* System Wake Up (One Shot Control) */ |
| 133 |
#define HID_USAGE_CONTEXTM uint16_t (0x84) /* System Context Menu (One Shot Control) */ |
| 134 |
#define HID_USAGE_MAINM uint16_t (0x85) /* System Main Menu (One Shot Control) */ |
| 135 |
#define HID_USAGE_APPM uint16_t (0x86) /* System App Menu (One Shot Control) */ |
| 136 |
#define HID_USAGE_MENUHELP uint16_t (0x87) /* System Menu Help (One Shot Control) */ |
| 137 |
#define HID_USAGE_MENUEXIT uint16_t (0x88) /* System Menu Exit (One Shot Control) */ |
| 138 |
#define HID_USAGE_MENUSELECT uint16_t (0x89) /* System Menu Select (One Shot Control) */ |
| 139 |
#define HID_USAGE_SYSM_RIGHT uint16_t (0x8A) /* System Menu Right (Re-Trigger Control) */ |
| 140 |
#define HID_USAGE_SYSM_LEFT uint16_t (0x8B) /* System Menu Left (Re-Trigger Control) */ |
| 141 |
#define HID_USAGE_SYSM_UP uint16_t (0x8C) /* System Menu Up (Re-Trigger Control) */ |
| 142 |
#define HID_USAGE_SYSM_DOWN uint16_t (0x8D) /* System Menu Down (Re-Trigger Control) */ |
| 143 |
#define HID_USAGE_COLDRESET uint16_t (0x8E) /* System Cold Restart (One Shot Control) */ |
| 144 |
#define HID_USAGE_WARMRESET uint16_t (0x8F) /* System Warm Restart (One Shot Control) */ |
| 145 |
#define HID_USAGE_DUP uint16_t (0x90) /* D-pad Up (On/Off Control) */ |
| 146 |
#define HID_USAGE_DDOWN uint16_t (0x91) /* D-pad Down (On/Off Control) */ |
| 147 |
#define HID_USAGE_DRIGHT uint16_t (0x92) /* D-pad Right (On/Off Control) */ |
| 148 |
#define HID_USAGE_DLEFT uint16_t (0x93) /* D-pad Left (On/Off Control) */ |
| 149 |
/* 94-9F Reserved */ |
| 150 |
#define HID_USAGE_SYS_DOCK uint16_t (0xA0) /* System Dock (One Shot Control) */ |
| 151 |
#define HID_USAGE_SYS_UNDOCK uint16_t (0xA1) /* System Undock (One Shot Control) */ |
| 152 |
#define HID_USAGE_SYS_SETUP uint16_t (0xA2) /* System Setup (One Shot Control) */ |
| 153 |
#define HID_USAGE_SYS_BREAK uint16_t (0xA3) /* System Break (One Shot Control) */ |
| 154 |
#define HID_USAGE_SYS_DBGBRK uint16_t (0xA4) /* System Debugger Break (One Shot Control) */ |
| 155 |
#define HID_USAGE_APP_BRK uint16_t (0xA5) /* Application Break (One Shot Control) */ |
| 156 |
#define HID_USAGE_APP_DBGBRK uint16_t (0xA6) /* Application Debugger Break (One Shot Control) */ |
| 157 |
#define HID_USAGE_SYS_SPKMUTE uint16_t (0xA7) /* System Speaker Mute (One Shot Control) */ |
| 158 |
#define HID_USAGE_SYS_HIBERN uint16_t (0xA8) /* System Hibernate (One Shot Control) */ |
| 159 |
/* A9-AF Reserved */ |
| 160 |
#define HID_USAGE_SYS_SIDPINV uint16_t (0xB0) /* System Display Invert (One Shot Control) */ |
| 161 |
#define HID_USAGE_SYS_DISPINT uint16_t (0xB1) /* System Display Internal (One Shot Control) */ |
| 162 |
#define HID_USAGE_SYS_DISPEXT uint16_t (0xB2) /* System Display External (One Shot Control) */ |
| 163 |
#define HID_USAGE_SYS_DISPBOTH uint16_t (0xB3) /* System Display Both (One Shot Control) */ |
| 164 |
#define HID_USAGE_SYS_DISPDUAL uint16_t (0xB4) /* System Display Dual (One Shot Control) */ |
| 165 |
#define HID_USAGE_SYS_DISPTGLIE uint16_t (0xB5) /* System Display Toggle Int/Ext (One Shot Control) */ |
| 166 |
#define HID_USAGE_SYS_DISP_SWAP uint16_t (0xB6) /* System Display Swap Primary/Secondary (One Shot Control) */ |
| 167 |
#define HID_USAGE_SYS_DIPS_LCDA uint16_t (0xB7) /* System Display LCD Autoscale (One Shot Control) */ |
| 168 |
/* B8-FFFF Reserved */ |
| 169 |
|
| 170 |
/** |
| 171 |
* @} |
| 172 |
*/ |
| 173 |
|
| 174 |
#endif /* _HID_USAGE_H_ */ |
| 175 |
|
| 176 |
/** |
| 177 |
* @} |
| 178 |
*/ |
| 179 |
|
| 180 |
/** |
| 181 |
* @} |
| 182 |
*/ |
| 183 |
|
| 184 |
/** |
| 185 |
* @} |
| 186 |
*/ |
| 187 |
|
| 188 |
/** |
| 189 |
* @} |
| 190 |
*/ |
| 191 |
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |