hid-sensor-ids.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * HID Sensors Driver
  3. * Copyright (c) 2012, Intel Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms and conditions of the GNU General Public License,
  7. * version 2, as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  17. *
  18. */
  19. #ifndef _HID_SENSORS_IDS_H
  20. #define _HID_SENSORS_IDS_H
  21. #define HID_MAX_PHY_DEVICES 0xFF
  22. /* Accel 3D (200073) */
  23. #define HID_USAGE_SENSOR_ACCEL_3D 0x200073
  24. #define HID_USAGE_SENSOR_ACCEL_X_AXIS 0x200453
  25. #define HID_USAGE_SENSOR_ACCEL_Y_AXIS 0x200454
  26. #define HID_USAGE_SENSOR_ACCEL_Z_AXIS 0x200455
  27. /* ALS (200041) */
  28. #define HID_USAGE_SENSOR_ALS 0x200041
  29. #define HID_USAGE_SENSOR_LIGHT_ILLUM 0x2004d1
  30. /* Gyro 3D: (200076) */
  31. #define HID_USAGE_SENSOR_GYRO_3D 0x200076
  32. #define HID_USAGE_SENSOR_ANGL_VELOCITY_X_AXIS 0x200457
  33. #define HID_USAGE_SENSOR_ANGL_VELOCITY_Y_AXIS 0x200458
  34. #define HID_USAGE_SENSOR_ANGL_VELOCITY_Z_AXIS 0x200459
  35. /*ORIENTATION: Compass 3D: (200083) */
  36. #define HID_USAGE_SENSOR_COMPASS_3D 0x200083
  37. #define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING 0x200471
  38. #define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_X 0x200472
  39. #define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_Y 0x200473
  40. #define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_Z 0x200474
  41. #define HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH 0x200475
  42. #define HID_USAGE_SENSOR_ORIENT_COMP_TRUE_NORTH 0x200476
  43. #define HID_USAGE_SENSOR_ORIENT_MAGN_NORTH 0x200477
  44. #define HID_USAGE_SENSOR_ORIENT_TRUE_NORTH 0x200478
  45. #define HID_USAGE_SENSOR_ORIENT_DISTANCE 0x200479
  46. #define HID_USAGE_SENSOR_ORIENT_DISTANCE_X 0x20047A
  47. #define HID_USAGE_SENSOR_ORIENT_DISTANCE_Y 0x20047B
  48. #define HID_USAGE_SENSOR_ORIENT_DISTANCE_Z 0x20047C
  49. #define HID_USAGE_SENSOR_ORIENT_DISTANCE_OUT_OF_RANGE 0x20047D
  50. #define HID_USAGE_SENSOR_ORIENT_TILT 0x20047E
  51. #define HID_USAGE_SENSOR_ORIENT_TILT_X 0x20047F
  52. #define HID_USAGE_SENSOR_ORIENT_TILT_Y 0x200480
  53. #define HID_USAGE_SENSOR_ORIENT_TILT_Z 0x200481
  54. #define HID_USAGE_SENSOR_ORIENT_ROTATION_MATRIX 0x200482
  55. #define HID_USAGE_SENSOR_ORIENT_QUATERNION 0x200483
  56. #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX 0x200484
  57. #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_X_AXIS 0x200485
  58. #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Y_AXIS 0x200486
  59. #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Z_AXIS 0x200487
  60. /* Units */
  61. #define HID_USAGE_SENSOR_UNITS_NOT_SPECIFIED 0x00
  62. #define HID_USAGE_SENSOR_UNITS_LUX 0x01
  63. #define HID_USAGE_SENSOR_UNITS_KELVIN 0x01000100
  64. #define HID_USAGE_SENSOR_UNITS_FAHRENHEIT 0x03000100
  65. #define HID_USAGE_SENSOR_UNITS_PASCAL 0xF1E1
  66. #define HID_USAGE_SENSOR_UNITS_NEWTON 0x11E1
  67. #define HID_USAGE_SENSOR_UNITS_METERS_PER_SECOND 0x11F0
  68. #define HID_USAGE_SENSOR_UNITS_METERS_PER_SEC_SQRD 0x11E0
  69. #define HID_USAGE_SENSOR_UNITS_FARAD 0xE14F2000
  70. #define HID_USAGE_SENSOR_UNITS_AMPERE 0x01001000
  71. #define HID_USAGE_SENSOR_UNITS_WATT 0x21d1
  72. #define HID_USAGE_SENSOR_UNITS_HENRY 0x21E1E000
  73. #define HID_USAGE_SENSOR_UNITS_OHM 0x21D1E000
  74. #define HID_USAGE_SENSOR_UNITS_VOLT 0x21D1F000
  75. #define HID_USAGE_SENSOR_UNITS_HERTZ 0x01F0
  76. #define HID_USAGE_SENSOR_UNITS_DEGREES_PER_SEC_SQRD 0x14E0
  77. #define HID_USAGE_SENSOR_UNITS_RADIANS 0x12
  78. #define HID_USAGE_SENSOR_UNITS_RADIANS_PER_SECOND 0x12F0
  79. #define HID_USAGE_SENSOR_UNITS_RADIANS_PER_SEC_SQRD 0x12E0
  80. #define HID_USAGE_SENSOR_UNITS_SECOND 0x0110
  81. #define HID_USAGE_SENSOR_UNITS_GAUSS 0x01E1F000
  82. #define HID_USAGE_SENSOR_UNITS_GRAM 0x0101
  83. #define HID_USAGE_SENSOR_UNITS_CENTIMETER 0x11
  84. #define HID_USAGE_SENSOR_UNITS_G 0x1A
  85. #define HID_USAGE_SENSOR_UNITS_MILLISECOND 0x19
  86. #define HID_USAGE_SENSOR_UNITS_PERCENT 0x17
  87. #define HID_USAGE_SENSOR_UNITS_DEGREES 0x14
  88. #define HID_USAGE_SENSOR_UNITS_DEGREES_PER_SECOND 0x15
  89. /* Common selectors */
  90. #define HID_USAGE_SENSOR_PROP_REPORT_INTERVAL 0x20030E
  91. #define HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS 0x20030F
  92. #define HID_USAGE_SENSOR_PROP_SENSITIVITY_RANGE_PCT 0x200310
  93. #define HID_USAGE_SENSOR_PROP_SENSITIVITY_REL_PCT 0x200311
  94. #define HID_USAGE_SENSOR_PROP_ACCURACY 0x200312
  95. #define HID_USAGE_SENSOR_PROP_RESOLUTION 0x200313
  96. #define HID_USAGE_SENSOR_PROP_RANGE_MAXIMUM 0x200314
  97. #define HID_USAGE_SENSOR_PROP_RANGE_MINIMUM 0x200315
  98. #define HID_USAGE_SENSOR_PROP_REPORT_STATE 0x200316
  99. #define HID_USAGE_SENSOR_PROY_POWER_STATE 0x200319
  100. #endif