mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 13:21:45 +00:00
iio: accel: hid-sensor-accel-3d: Add timestamp
Added timestamp channel. With this change, each sample has a timestamp. This timestamp can be from the sensor hub when present or local kernel timestamp. HID sensors can send timestamp with input data using usage id HID_USAGE_SENSOR_TIME_TIMESTAMP. This timestamp value is converted to nano seconds before pushing this sample to the iio core. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
902c4b2446
commit
a96cd0f901
4 changed files with 60 additions and 13 deletions
|
@ -95,6 +95,7 @@
|
|||
#define HID_USAGE_SENSOR_TIME_HOUR 0x200525
|
||||
#define HID_USAGE_SENSOR_TIME_MINUTE 0x200526
|
||||
#define HID_USAGE_SENSOR_TIME_SECOND 0x200527
|
||||
#define HID_USAGE_SENSOR_TIME_TIMESTAMP 0x200529
|
||||
|
||||
/* Units */
|
||||
#define HID_USAGE_SENSOR_UNITS_NOT_SPECIFIED 0x00
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue