^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/iio/devices/iio:deviceX/in_count_count_mode_available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) What: /sys/bus/iio/devices/iio:deviceX/in_count_noise_error_available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) What: /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) What: /sys/bus/iio/devices/iio:deviceX/in_index_index_polarity_available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) What: /sys/bus/iio/devices/iio:deviceX/in_index_synchronous_mode_available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) KernelVersion: 4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) This interface is deprecated; please use the Counter subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Discrete set of available values for the respective counter
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) configuration are listed in this file.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) KernelVersion: 4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) This interface is deprecated; please use the Counter subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) Count mode for channel Y. Four count modes are available:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) normal, range limit, non-recycle, and modulo-n. The preset value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) for channel Y is used by the count mode where required.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Normal:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Counting is continuous in either direction.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) Range Limit:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) An upper or lower limit is set, mimicking limit switches
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) in the mechanical counterpart. The upper limit is set to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) the preset value, while the lower limit is set to 0. The
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) counter freezes at count = preset when counting up, and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) at count = 0 when counting down. At either of these
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) limits, the counting is resumed only when the count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) direction is reversed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) Non-recycle:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Counter is disabled whenever a 24-bit count overflow or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) underflow takes place. The counter is re-enabled when a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) new count value is loaded to the counter via a preset
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) operation or write to raw.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) Modulo-N:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) A count boundary is set between 0 and the preset value.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) The counter is reset to 0 at count = preset when
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) counting up, while the counter is set to the preset
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) value at count = 0 when counting down; the counter does
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) not freeze at the bundary points, but counts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) continuously throughout.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) What: /sys/bus/iio/devices/iio:deviceX/in_countY_noise_error
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) KernelVersion: 4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) This interface is deprecated; please use the Counter subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) Read-only attribute that indicates whether excessive noise is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) present at the channel Y count inputs in quadrature clock mode;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) irrelevant in non-quadrature clock mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) What: /sys/bus/iio/devices/iio:deviceX/in_countY_preset
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) KernelVersion: 4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) This interface is deprecated; please use the Counter subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) If the counter device supports preset registers, the preset
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) count for channel Y is provided by this attribute.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) What: /sys/bus/iio/devices/iio:deviceX/in_countY_quadrature_mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) KernelVersion: 4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) This interface is deprecated; please use the Counter subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) Configure channel Y counter for non-quadrature or quadrature
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) clock mode. Selecting non-quadrature clock mode will disable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) synchronous load mode. In quadrature clock mode, the channel Y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) scale attribute selects the encoder phase division (scale of 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) selects full-cycle, scale of 0.5 selects half-cycle, scale of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) 0.25 selects quarter-cycle) processed by the channel Y counter.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) Non-quadrature:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) The filter and decoder circuit are bypassed. Encoder A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) input serves as the count input and B as the UP/DOWN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) direction control input, with B = 1 selecting UP Count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) mode and B = 0 selecting Down Count mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) Quadrature:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) Encoder A and B inputs are digitally filtered and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) decoded for UP/DN clock.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) What: /sys/bus/iio/devices/iio:deviceX/in_countY_set_to_preset_on_index
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) KernelVersion: 4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) This interface is deprecated; please use the Counter subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) Whether to set channel Y counter with channel Y preset value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) when channel Y index input is active, or continuously count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) Valid attribute values are boolean.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) What: /sys/bus/iio/devices/iio:deviceX/in_indexY_index_polarity
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) KernelVersion: 4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) This interface is deprecated; please use the Counter subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) Active level of channel Y index input; irrelevant in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) non-synchronous load mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) What: /sys/bus/iio/devices/iio:deviceX/in_indexY_synchronous_mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) KernelVersion: 4.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) This interface is deprecated; please use the Counter subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) Configure channel Y counter for non-synchronous or synchronous
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) load mode. Synchronous load mode cannot be selected in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) non-quadrature clock mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) Non-synchronous:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) A logic low level is the active level at this index
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) input. The index function (as enabled via
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) set_to_preset_on_index) is performed directly on the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) active level of the index input.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) Synchronous:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) Intended for interfacing with encoder Index output in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) quadrature clock mode. The active level is configured
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) via index_polarity. The index function (as enabled via
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) set_to_preset_on_index) is performed synchronously with
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) the quadrature clock on the active level of the index
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) input.