hid_usage_simulation.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /* This file is the part of the Lightweight USB device Stack for STM32 microcontrollers
  2. *
  3. * Copyright ©2016 Dmitry Filimonchuk <dmitrystu[at]gmail[dot]com>
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. * http://www.apache.org/licenses/LICENSE-2.0
  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. */
  15. #ifndef _USB_HID_USAGE_SIMUL_H_
  16. #define _USB_HID_USAGE_SIMUL_H_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /**\ingroup USB_HID
  21. * \addtogroup USB_HID_USAGES_SIMUL HID Usage Tables for Simulation
  22. * \brief Contains USB HID Usages definitions for Simulation Controls Page
  23. * \details This module based on
  24. * + [HID Usage Tables Version 1.12](https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf)
  25. * @{ */
  26. #define HID_PAGE_SIMULATION 0x02 /**<\brief Sumulation usage page.*/
  27. #define HID_SIMUL_SPORTS 0x08 /**<\brief CA Genetic sports simulation device.*/
  28. /**\name Flight Simulation Devices
  29. * @{ */
  30. #define HID_SIMUL_FLIGHT 0x01 /**<\brief CA Airplane simulation device.*/
  31. #define HID_SIMUL_SPACESHIP 0x04 /**<\brief CA Spaceship simulation device.*/
  32. #define HID_SIMUL_AIRPLANE 0x09 /**<\brief CA Airplane simulation device.*/
  33. #define HID_SIMUL_HELICOPTER 0x0A /**<\brief CA Helicopter simulation device.*/
  34. #define HID_SIMUL_ALIERON 0xB0 /**<\brief DV Aileron control.*/
  35. #define HID_SIMUL_ALIERIN_TRIM 0xB1 /**<\brief DV Aileron fine adjustment.*/
  36. #define HID_SIMUL_ANTI_TORQUE 0xB2 /**<\brief DV Rudder pedals.*/
  37. #define HID_SIMUL_AUTOPILOT_ENABLE 0xB3 /**<\brief OOC Autopilot switch.*/
  38. #define HID_SIMUL_CHAFF_RELEASE 0xB4 /**<\brief OCS Chaff Release control.*/
  39. #define HID_SIMUL_COLLECTIVE_CONTROL 0xB5 /**<\brief DV Vertical acceleration lift confrol.*/
  40. #define HID_SIMUL_CYCLIC_CONTROL 0x22 /**<\brief CP Helicopter cyclic control.*/
  41. #define HID_SIMUL_CYCLIC_TRIM 0x23 /**<\brief CP Cyclic fine adjustments.*/
  42. #define HID_SIMUL_DRIVE_BRAKE 0xB6 /**<\brief DV Air brake control.*/
  43. #define HID_SIMUL_ELECTR_COUNTERMEAS 0xB7 /**<\brief OOC Enables electronic countermeasures.*/
  44. #define HID_SIMUL_ELEVATOR 0xB8 /**<\brief DV Elevator control.*/
  45. #define HID_SIMUL_ELEVATOR_TRIM 0xB9 /**<\brief DV Elevator fine adjustment.*/
  46. #define HID_SIMUL_FLIGHT_COMM 0xBC /**<\brief OOC Flight Communications switch.*/
  47. #define HID_SIMUL_FLARE_RELEASE 0xBD /**<\brief OCS Flare release button.*/
  48. #define HID_SIMUL_FLIGHT_CONTROL_STICK 0x20 /**<\brief CA Pitch and Roll control.*/
  49. #define HID_SIMUL_FLIGHT_STICK 0x21 /**<\brief CA Pitch and Roll control for games.*/
  50. #define HID_SIMUL_LANDING_GEAR 0xBE /**<\brief OOC Landing gear control.*/
  51. #define HID_SIMUL_RUDDER 0xBA /**<\brief DV Rudder control.*/
  52. #define HID_SIMUL_TOE_BRAKE 0xBF /**<\brief DV Toe Brake control.*/
  53. #define HID_SIMUL_THROTTLE 0xBB /**<\brief DV Trottle control.*/
  54. #define HID_SIMUL_TRIGGER 0xC0 /**<\brief MC Firearm trigger control.*/
  55. #define HID_SIMUL_WEAPONS_ARM 0xC1 /**<\brief OOC Enables weapons system.*/
  56. #define HID_SIMUL_WEAPONS_SELECT 0xC2 /**<\brief OSC Select weapon.*/
  57. #define HID_SIMUL_WING_FLAPS 0xC3 /**<\brief DV wing flap control.*/
  58. #define HID_SIMUL_FLIGHT_YOKE 0x24 /**<\brief CA A Flight Yoke controls.*/
  59. /** @} */
  60. /**\name Automobile Simulation Devices
  61. * @{ */
  62. #define HID_SIMUL_AUTOMOBILE 0x02 /**<\brief CA Automobile or truck simulation device.*/
  63. #define HID_SIMUL_ACCELERATOR 0xC4 /**<\brief DV Accelerator control.*/
  64. #define HID_SIMUL_BRAKE 0xC5 /**<\brief DV Brake control.*/
  65. #define HID_SIMUL_CLUTCH 0xC6 /**<\brief DV Clutch control.*/
  66. #define HID_SIMUL_SHIFTER 0xC7 /**<\brief DV Shifting gears control.*/
  67. #define HID_SIMUL_STEERING 0xC8 /**<\brief DV Steering wheel control.*/
  68. /** @} */
  69. /**\name Tank Simulation Devices
  70. * @{ */
  71. #define HID_SIMUL_TANK 0x03 /**<\brief CA Treaded vehicle simulation device.*/
  72. #define HID_SIMUL_TRACK_CONTROL 0x25 /**<\brief CP Direction and velocity controls.*/
  73. #define HID_SIMUL_TURRET_DIRECTION 0xC9 /**<\brief DV Turret control right-left.*/
  74. #define HID_SIMUL_BARREL_ELEVATION 0xCA /**<\brief DV Gun elevation control.*/
  75. /** @} */
  76. /**\name Maritime Simulation Devices
  77. * @{ */
  78. #define HID_SIMUL_SUBMARINE 0x05 /**<\brief CA Submarine control.*/
  79. #define HID_SIMUL_SAILING 0x06 /**<\brief CA Sailing simulatiion control.*/
  80. #define HID_SIMUL_DIVE_PLANE 0xCB /**<\brief DV Dive plane control*/
  81. #define HID_SIMUL_BALLAST 0xCC /**<\brief DV Ballast control.*/
  82. /** @} */
  83. /**\name Two-wheeled Simulation Devices
  84. * @{ */
  85. #define HID_SIMUL_MOTOCYCLE 0x07 /**<\brief CA Motocycle simulation device.*/
  86. #define HID_SIMUL_BICYCLE 0x0C /**<\brief CA Bycicle simulation device*/
  87. #define HID_SIMUL_BICYCLE_CRANK 0xCD /**<\brief DV Bycicle crank control.*/
  88. #define HID_SIMUL_HANDLE_BARS 0xCE /**<\brief DV Steering control.*/
  89. #define HID_SIMUL_FRONT_BRAKE 0xCF /**<\brief DV Front brake control.*/
  90. #define HID_SIMUL_REAR_BRAKE 0xD0 /**<\brief DV Rear brake control.*/
  91. /** @} */
  92. /**\name Miscellaneous Simulation Devices
  93. * @{ */
  94. #define HID_SIMUL_MAGIC_CARPET 0x0B /**<\brief CA Magic carpet simulation device.*/
  95. /** @} */
  96. /** @} */
  97. #ifdef __cplusplus
  98. }
  99. #endif
  100. #endif