History

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

William Breathitt Gray committed 10 years ago

Commit 1a8f3241 parent 9ecca123 files · +22 −0Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/iio/types.h+2−0
@@ -40,6 +40,8 @@ enum iio_chan_type { · 39 unmodified lines
4040 IIO_PH,
4141 IIO_UVINDEX,
4242 IIO_ELECTRICALCONDUCTIVITY,
43+ IIO_COUNT,
44+ IIO_INDEX,
4345 };
4446
4547 enum iio_modifier {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t