1
0

hid_usage_simulation.h 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* This file is the part of the LUS32 project
  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_SUMUL_H_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /**\ingroup USB_HID
  21. * \addtogroup USB_HID_USAGES 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](http://www.usb.org/developers/hidpage/Hut1_12v2.pdf)
  25. * @{ */
  26. #define HID_PAGE_SIMULATION 0x02
  27. #define HID_SIMUL_FLIGHT 0x01
  28. #define HID_SIMUL_AUTOMOBILE 0x02
  29. #define HID_SIMUL_TANK 0x03
  30. #define HID_SIMUL_SPACESHIP 0x04
  31. #define HID_SIMUL_SUBMARINE 0x05
  32. #define HID_SIMUL_SAILING 0x06
  33. #define HID_SIMUL_MOTOCYCLE 0x07
  34. #define HID_SIMUL_SPORTS 0x08
  35. #define HID_SIMUL_AIRPLANE 0x09
  36. #define HID_SIMUL_HELICOPTER 0x0A
  37. #define HID_SIMUL_MAGIC_CARPET 0x0B
  38. #define HID_SIMUL_BICYCLE 0x0C
  39. #define HID_SIMUL_FLIGHT_CONTROL_STICK 0x20
  40. #define HID_SIMUL_FLIGHT_STICK 0x21
  41. #define HID_SIMUL_CYCLIC_CONTROL 0x22
  42. #define HID_SIMUL_CYCLIC_TRIM 0x23
  43. #define HID_SIMUL_FLIGHT_YOKE 0x24
  44. #define HID_SIMUL_TRACK_CONTROL 0x25
  45. #define HID_SIMUL_ALIERON 0xB0
  46. #define HID_SIMUL_ALIERIN_TRIM 0xB1
  47. #define HID_SIMUL_ANTI_TORQUE 0xB2
  48. #define HID_SIMUL_AUTOPILOT_ENABLE 0xB3
  49. #define HID_SIMUL_CHAFF_RELEASE 0xB4
  50. #define HID_SIMUL_COLLECTIVE_CONTROL 0xB5
  51. #define HID_SIMUL_DRIVE_BRAKE 0xB6
  52. #define HID_SIMUL_ELECTR_COUNTERMEAS 0xB7
  53. #define HID_SIMUL_ELEVATOR 0xB8
  54. #define HID_SIMUL_ELEVATOR_TRIM 0xB9
  55. #define HID_SIMUL_RUDDER 0xBA
  56. #define HID_SIMUL_THROTTLE 0xBB
  57. #define HID_SIMUL_FLIGHT_COMM 0xBC
  58. #define HID_SIMUL_FLARE_RELEASE 0xBD
  59. #define HID_SIMUL_LANDING_GEAR 0xBE
  60. #define HID_SIMUL_TOE_BRAKE 0xBF
  61. #define HID_SIMUL_TRIGGER 0xC0
  62. #define HID_SIMUL_WEAPONS_ARM 0xC1
  63. #define HID_SIMUL_WEAPONS_SELECT 0xC2
  64. #define HID_SIMUL_WING_FLAPS 0xC3
  65. #define HID_SIMUL_ACCELERATOR 0xC4
  66. #define HID_SIMUL_BRAKE 0xC5
  67. #define HID_SIMUL_CLUTCH 0xC6
  68. #define HID_SIMUL_SHIFTER 0xC7
  69. #define HID_SIMUL_STEERING 0xC8
  70. #define HID_SIMUL_TURRET_DIRECTION 0xC9
  71. #define HID_SIMUL_BARREL_ELEVATION 0xCA
  72. #define HID_SIMUL_DRIVE_PLANE 0xCB
  73. #define HID_SIMUL_BALLAST 0xCC
  74. #define HID_SIMUL_BICYCLE_CRANK 0xCD
  75. #define HID_SIMUL_HANDLE_BARS 0xCE
  76. #define HID_SIMUL_FRONT_BRAKE 0xCF
  77. #define HID_SIMUL_REAR_BRAKE 0xD0
  78. /** @} */
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82. #endif