hid_usage_sport.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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_SPORT_H_
  16. #define _USB_HID_USAGE_SPORT_H_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /**\ingroup USB_HID
  21. * \addtogroup USB_HID_USAGES_SPORT HID Usage Tables for Sport
  22. * \brief Contains USB HID Usages definitions for Sport 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_SPORT 0x04
  27. #define HID_SPORT_BASEBALL_BAT 0x01
  28. #define HID_SPORT_GOLF_CLUB 0x02
  29. #define HID_SPORT_ROWING_MACHINE 0x03
  30. #define HID_SPORT_TREADMILL 0x04
  31. #define HID_SPORT_OAR 0x30
  32. #define HID_SPORT_SLOPE 0x31
  33. #define HID_SPORT_RATE 0x32
  34. #define HID_SPORT_STICK_SPEED 0x33
  35. #define HID_SPORT_STICK_FACE_ANGLE 0x34
  36. #define HID_SPORT_STICK_HEEL_TOE 0x35
  37. #define HID_SPORT_STICK_FOLLOW_THROUGH 0x36
  38. #define HID_SPORT_STICK_TEMPO 0x37
  39. #define HID_SPORT_STICK_TYPE 0x38
  40. #define HID_SPORT_STICK_HEIGHT 0x39
  41. #define HID_SPORT_PUTTER 0x50
  42. #define HID_SPORT_1_IRON 0x51
  43. #define HID_SPORT_2_IRON 0x52
  44. #define HID_SPORT_3_IRON 0x53
  45. #define HID_SPORT_4_IRON 0x54
  46. #define HID_SPORT_5_IRON 0x55
  47. #define HID_SPORT_6_IRON 0x56
  48. #define HID_SPORT_7_IRON 0x57
  49. #define HID_SPORT_8_IRON 0x58
  50. #define HID_SPORT_9_IRON 0x59
  51. #define HID_SPORT_10_IRON 0x5A
  52. #define HID_SPORT_11_IRON 0x5B
  53. #define HID_SPORT_SAND_WEDGE 0x5C
  54. #define HID_SPORT_LOFT_WEDGE 0x5D
  55. #define HID_SPORT_POWER_WEDGE 0x5E
  56. #define HID_SPORT_1_WOOD 0x5F
  57. #define HID_SPORT_3_WOOD 0x60
  58. #define HID_SPORT_5_WOOD 0x61
  59. #define HID_SPORT_7_WOOD 0x62
  60. #define HID_SPORT_9_WOOD 0x63
  61. /** @} */
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif