diff options
author | Ramona Bolboaca <ramona.bolboaca@analog.com> | 2023-08-08 09:50:57 +0200 |
---|---|---|
committer | Jonathan Cameron <jonathan.cameron@huawei.com> | 2023-09-12 11:42:03 +0200 |
commit | 744f4990ee0519ebef21fa7db094240bbaf3d746 (patch) | |
tree | 8cee09f623590a3dbe0ccd56a8926239e83e2682 /include/uapi | |
parent | iio: dac: stm32-dac: Use correct header(s) instead of string_helpers.h (diff) | |
download | linux-744f4990ee0519ebef21fa7db094240bbaf3d746.tar.xz linux-744f4990ee0519ebef21fa7db094240bbaf3d746.zip |
iio: Add IIO_DELTA_ANGL channel type
The delta angle is defined as a piece-wise integration of angular
velocity data. The delta angle represents the amount of
angular displacement between two consecutive measurements and it
is measured in radians.
In order to track the total angular displacement during a desired
period of time, simply sum-up the delta angle samples acquired
during that time.
IIO currently does not offer a suitable channel type for this
type of measurements hence this patch adds it.
Signed-off-by: Ramona Bolboaca <ramona.bolboaca@analog.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20230808075059.645525-2-ramona.bolboaca@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/uapi')
-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 c79f2f046a0b..55666a17d311 100644 --- a/include/uapi/linux/iio/types.h +++ b/include/uapi/linux/iio/types.h @@ -47,6 +47,7 @@ enum iio_chan_type { IIO_POSITIONRELATIVE, IIO_PHASE, IIO_MASSCONCENTRATION, + IIO_DELTA_ANGL, }; enum iio_modifier { |