1 What: /sys/bus/iio/devices/triggerX/master_mode_available
3 Contact: benjamin.gaignard@st.com
5 Reading returns the list possible master modes which are:
6 - "reset" : The UG bit from the TIMx_EGR register is
7 used as trigger output (TRGO).
8 - "enable" : The Counter Enable signal CNT_EN is used
10 - "update" : The update event is selected as trigger output.
11 For instance a master timer can then be used
12 as a prescaler for a slave timer.
13 - "compare_pulse" : The trigger output send a positive pulse
14 when the CC1IF flag is to be set.
15 - "OC1REF" : OC1REF signal is used as trigger output.
16 - "OC2REF" : OC2REF signal is used as trigger output.
17 - "OC3REF" : OC3REF signal is used as trigger output.
18 - "OC4REF" : OC4REF signal is used as trigger output.
20 What: /sys/bus/iio/devices/triggerX/master_mode
22 Contact: benjamin.gaignard@st.com
24 Reading returns the current master modes.
25 Writing set the master mode
27 What: /sys/bus/iio/devices/triggerX/sampling_frequency
29 Contact: benjamin.gaignard@st.com
31 Reading returns the current sampling frequency.
32 Writing an value different of 0 set and start sampling.
33 Writing 0 stop sampling.
35 What: /sys/bus/iio/devices/iio:deviceX/in_count0_preset
37 Contact: benjamin.gaignard@st.com
39 Reading returns the current preset value.
40 Writing sets the preset value.
41 When counting up the counter starts from 0 and fires an
42 event when reach preset value.
43 When counting down the counter start from preset value
44 and fire event when reach 0.
46 What: /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
48 Contact: benjamin.gaignard@st.com
50 Reading returns the list possible quadrature modes.
52 What: /sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
54 Contact: benjamin.gaignard@st.com
56 Configure the device counter quadrature modes:
58 Encoder A input servers as the count input and B as
59 the UP/DOWN direction control input.
62 Encoder B input serves as the count input and A as
63 the UP/DOWN direction control input.
66 Encoder A and B inputs are mixed to get direction
67 and count with a scale of 0.25.
69 What: /sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available
71 Contact: benjamin.gaignard@st.com
73 Reading returns the list possible enable modes.
75 What: /sys/bus/iio/devices/iio:deviceX/in_count0_enable_mode
77 Contact: benjamin.gaignard@st.com
79 Configure the device counter enable modes, in all case
80 counting direction is set by in_count0_count_direction
81 attribute and the counter is clocked by the internal clock.
86 Counting is enabled when connected trigger signal
87 level is high else counting is disabled.
90 Counting is enabled on rising edge of the connected
91 trigger, and remains enabled for the duration of this