sysfs-bus-iio-counter-104-quad-8 5.0 KB

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