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
Showing the changes to include/uapi/linux/iio (1 of 3 files). Show all
Unified · Split
| @@ -40,6 +40,8 @@ enum iio_chan_type { · 39 unmodified lines | |||
| 40 | IIO_PH, | 40 | IIO_PH, |
| 41 | IIO_UVINDEX, | 41 | IIO_UVINDEX, |
| 42 | IIO_ELECTRICALCONDUCTIVITY, | 42 | IIO_ELECTRICALCONDUCTIVITY, |
| 43 | IIO_COUNT, | ||
| 44 | IIO_INDEX, | ||
| 43 | }; | 45 | }; |
| 44 | 46 | ||
| 45 | enum iio_modifier { | 47 | enum iio_modifier { |