diff options
author | William Breathitt Gray <vilhelm.gray@gmail.com> | 2016-09-28 20:59:49 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-10-01 19:06:02 +0300 |
commit | 1a8f324aa1f2237caef1c6633734785bbdcffeed (patch) | |
tree | e207a5ba454dff12460ec7c65578269aacfba129 /include/uapi/linux/iio | |
parent | 9ecca12edde435efc6d08f7a1e877ba9929a6c93 (diff) | |
download | linux-1a8f324aa1f2237caef1c6633734785bbdcffeed.tar.xz |
iio: Implement counter channel type and info constants
Quadrature encoders, such as rotary encoders and linear encoders, are
devices which are capable of encoding the relative position and
direction of motion of a shaft. This patch introduces several IIO
constants for supporting quadrature encoder counter devices.
IIO_COUNT: Current count (main data provided by the counter device)
IIO_INDEX: Counter device index value
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/uapi/linux/iio')
-rw-r--r-- | include/uapi/linux/iio/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h index 22e5e589a274..e54d14a7f876 100644 --- a/include/uapi/linux/iio/types.h +++ b/include/uapi/linux/iio/types.h @@ -40,6 +40,8 @@ enum iio_chan_type { IIO_PH, IIO_UVINDEX, IIO_ELECTRICALCONDUCTIVITY, + IIO_COUNT, + IIO_INDEX, }; enum iio_modifier { |