mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 13:51:52 +00:00
iio: hid-sensors: Added Inclinometer 3D
Added usage id processing for Inclinometer 3D. This uses IIO interfaces for triggered buffer to present data to user mode.This uses HID sensor framework for registering callback events from the sensor hub. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
091a121b04
commit
098d3beccf
6 changed files with 459 additions and 0 deletions
|
@ -58,10 +58,14 @@
|
|||
#define HID_USAGE_SENSOR_ORIENT_DISTANCE_Y 0x20047B
|
||||
#define HID_USAGE_SENSOR_ORIENT_DISTANCE_Z 0x20047C
|
||||
#define HID_USAGE_SENSOR_ORIENT_DISTANCE_OUT_OF_RANGE 0x20047D
|
||||
|
||||
/* ORIENTATION: Inclinometer 3D: (200086) */
|
||||
#define HID_USAGE_SENSOR_INCLINOMETER_3D 0x200086
|
||||
#define HID_USAGE_SENSOR_ORIENT_TILT 0x20047E
|
||||
#define HID_USAGE_SENSOR_ORIENT_TILT_X 0x20047F
|
||||
#define HID_USAGE_SENSOR_ORIENT_TILT_Y 0x200480
|
||||
#define HID_USAGE_SENSOR_ORIENT_TILT_Z 0x200481
|
||||
|
||||
#define HID_USAGE_SENSOR_ORIENT_ROTATION_MATRIX 0x200482
|
||||
#define HID_USAGE_SENSOR_ORIENT_QUATERNION 0x200483
|
||||
#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX 0x200484
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue