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>
This commit is contained in:
parent
9ecca12edd
commit
1a8f324aa1
3 changed files with 22 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ enum iio_chan_type {
|
|||
IIO_PH,
|
||||
IIO_UVINDEX,
|
||||
IIO_ELECTRICALCONDUCTIVITY,
|
||||
IIO_COUNT,
|
||||
IIO_INDEX,
|
||||
};
|
||||
|
||||
enum iio_modifier {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue