diff options
| author | Cosmin Tanislav <[email protected]> | 2022-02-14 09:38:06 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-02-21 19:33:05 +0000 |
| commit | a1a5cfe70cd29a59a9a85290dfe95ed1c8df1193 (patch) | |
| tree | a30d310aca35538ebd062844006851c7cf48dc3c /include/uapi/linux | |
| parent | b38da7feefb4c8080753eb5bf4e4db5eba0e119b (diff) | |
iio: introduce mag_referenced
Some accelerometers that support activity and inactivity
events also support a referenced mode, in which the
gravitational acceleration is taken as a point of
reference before comparing the acceleration to the
specified activity and inactivity magnitude.
For example, in the case of the ADXL367, for activity
detection, the formula is:
abs(acceleration - reference) > magnitude
Add a new event type that makes this behavior clear.
Signed-off-by: Cosmin Tanislav <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/iio/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h index 48c13147c0a8..472cead10d8d 100644 --- a/include/uapi/linux/iio/types.h +++ b/include/uapi/linux/iio/types.h @@ -104,6 +104,7 @@ enum iio_event_type { IIO_EV_TYPE_THRESH_ADAPTIVE, IIO_EV_TYPE_MAG_ADAPTIVE, IIO_EV_TYPE_CHANGE, + IIO_EV_TYPE_MAG_REFERENCED, }; enum iio_event_direction { |