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

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