sysfs-bus-counter 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. What: /sys/bus/counter/devices/counterX/countY/count
  2. KernelVersion: 5.2
  3. Contact: [email protected]
  4. Description:
  5. Count data of Count Y represented as a string.
  6. What: /sys/bus/counter/devices/counterX/countY/capture
  7. KernelVersion: 6.1
  8. Contact: [email protected]
  9. Description:
  10. Historical capture of the Count Y count data.
  11. What: /sys/bus/counter/devices/counterX/countY/ceiling
  12. KernelVersion: 5.2
  13. Contact: [email protected]
  14. Description:
  15. Count value ceiling for Count Y. This is the upper limit for the
  16. respective counter.
  17. What: /sys/bus/counter/devices/counterX/countY/floor
  18. KernelVersion: 5.2
  19. Contact: [email protected]
  20. Description:
  21. Count value floor for Count Y. This is the lower limit for the
  22. respective counter.
  23. What: /sys/bus/counter/devices/counterX/countY/count_mode
  24. KernelVersion: 5.2
  25. Contact: [email protected]
  26. Description:
  27. Count mode for channel Y. The ceiling and floor values for
  28. Count Y are used by the count mode where required. The following
  29. count modes are available:
  30. normal:
  31. Counting is continuous in either direction.
  32. range limit:
  33. An upper or lower limit is set, mimicking limit switches
  34. in the mechanical counterpart. The upper limit is set to
  35. the Count Y ceiling value, while the lower limit is set
  36. to the Count Y floor value. The counter freezes at
  37. count = ceiling when counting up, and at count = floor
  38. when counting down. At either of these limits, the
  39. counting is resumed only when the count direction is
  40. reversed.
  41. non-recycle:
  42. The counter is disabled whenever a counter overflow or
  43. underflow takes place. The counter is re-enabled when a
  44. new count value is loaded to the counter via a preset
  45. operation or direct write.
  46. modulo-n:
  47. A count value boundary is set between the Count Y floor
  48. value and the Count Y ceiling value. The counter is
  49. reset to the Count Y floor value at count = ceiling when
  50. counting up, while the counter is set to the Count Y
  51. ceiling value at count = floor when counting down; the
  52. counter does not freeze at the boundary points, but
  53. counts continuously throughout.
  54. What: /sys/bus/counter/devices/counterX/countY/count_mode_available
  55. What: /sys/bus/counter/devices/counterX/countY/error_noise_available
  56. What: /sys/bus/counter/devices/counterX/countY/function_available
  57. What: /sys/bus/counter/devices/counterX/countY/prescaler_available
  58. What: /sys/bus/counter/devices/counterX/countY/signalZ_action_available
  59. KernelVersion: 5.2
  60. Contact: [email protected]
  61. Description:
  62. Discrete set of available values for the respective Count Y
  63. configuration are listed in this file. Values are delimited by
  64. newline characters.
  65. What: /sys/bus/counter/devices/counterX/countY/direction
  66. KernelVersion: 5.2
  67. Contact: [email protected]
  68. Description:
  69. Read-only attribute that indicates the count direction of Count
  70. Y. Two count directions are available: forward and backward.
  71. Some counter devices are able to determine the direction of
  72. their counting. For example, quadrature encoding counters can
  73. determine the direction of movement by evaluating the leading
  74. phase of the respective A and B quadrature encoding signals.
  75. This attribute exposes such count directions.
  76. What: /sys/bus/counter/devices/counterX/countY/enable
  77. KernelVersion: 5.2
  78. Contact: [email protected]
  79. Description:
  80. Whether channel Y counter is enabled. Valid attribute values are
  81. boolean.
  82. This attribute is intended to serve as a pause/unpause mechanism
  83. for Count Y. Suppose a counter device is used to count the total
  84. movement of a conveyor belt: this attribute allows an operator
  85. to temporarily pause the counter, service the conveyor belt,
  86. and then finally unpause the counter to continue where it had
  87. left off.
  88. What: /sys/bus/counter/devices/counterX/countY/error_noise
  89. KernelVersion: 5.2
  90. Contact: [email protected]
  91. Description:
  92. Read-only attribute that indicates whether excessive noise is
  93. present at the channel Y counter inputs.
  94. What: /sys/bus/counter/devices/counterX/countY/function
  95. KernelVersion: 5.2
  96. Contact: [email protected]
  97. Description:
  98. Count function mode of Count Y; count function evaluation is
  99. triggered by conditions specified by the Count Y signalZ_action
  100. attributes. The following count functions are available:
  101. increase:
  102. Accumulated count is incremented.
  103. decrease:
  104. Accumulated count is decremented.
  105. pulse-direction:
  106. Rising edges on signal A updates the respective count.
  107. The input level of signal B determines direction.
  108. quadrature x1 a:
  109. If direction is forward, rising edges on quadrature pair
  110. signal A updates the respective count; if the direction
  111. is backward, falling edges on quadrature pair signal A
  112. updates the respective count. Quadrature encoding
  113. determines the direction.
  114. quadrature x1 b:
  115. If direction is forward, rising edges on quadrature pair
  116. signal B updates the respective count; if the direction
  117. is backward, falling edges on quadrature pair signal B
  118. updates the respective count. Quadrature encoding
  119. determines the direction.
  120. quadrature x2 a:
  121. Any state transition on quadrature pair signal A updates
  122. the respective count. Quadrature encoding determines the
  123. direction.
  124. quadrature x2 b:
  125. Any state transition on quadrature pair signal B updates
  126. the respective count. Quadrature encoding determines the
  127. direction.
  128. quadrature x4:
  129. Any state transition on either quadrature pair signals
  130. updates the respective count. Quadrature encoding
  131. determines the direction.
  132. What: /sys/bus/counter/devices/counterX/countY/name
  133. KernelVersion: 5.2
  134. Contact: [email protected]
  135. Description:
  136. Read-only attribute that indicates the device-specific name of
  137. Count Y. If possible, this should match the name of the
  138. respective channel as it appears in the device datasheet.
  139. What: /sys/bus/counter/devices/counterX/countY/prescaler
  140. KernelVersion: 5.2
  141. Contact: [email protected]
  142. Description:
  143. Configure the prescaler value associated with Count Y.
  144. On the FlexTimer, the counter clock source passes through a
  145. prescaler (i.e. a counter). This acts like a clock
  146. divider.
  147. What: /sys/bus/counter/devices/counterX/countY/preset
  148. KernelVersion: 5.2
  149. Contact: [email protected]
  150. Description:
  151. If the counter device supports preset registers -- registers
  152. used to load counter channels to a set count upon device-defined
  153. preset operation trigger events -- the preset count for channel
  154. Y is provided by this attribute.
  155. What: /sys/bus/counter/devices/counterX/countY/preset_enable
  156. KernelVersion: 5.2
  157. Contact: [email protected]
  158. Description:
  159. Whether channel Y counter preset operation is enabled. Valid
  160. attribute values are boolean.
  161. What: /sys/bus/counter/devices/counterX/countY/signalZ_action
  162. KernelVersion: 5.2
  163. Contact: [email protected]
  164. Description:
  165. Action mode of Count Y for Signal Z. This attribute indicates
  166. the condition of Signal Z that triggers the count function
  167. evaluation for Count Y. The following action modes are
  168. available:
  169. none:
  170. Signal does not trigger the count function. In
  171. Pulse-Direction count function mode, this Signal is
  172. evaluated as Direction.
  173. rising edge:
  174. Low state transitions to high state.
  175. falling edge:
  176. High state transitions to low state.
  177. both edges:
  178. Any state transition.
  179. What: /sys/bus/counter/devices/counterX/countY/num_overflows
  180. KernelVersion: 6.1
  181. Contact: [email protected]
  182. Description:
  183. This attribute indicates the number of overflows of count Y.
  184. What: /sys/bus/counter/devices/counterX/countY/capture_component_id
  185. What: /sys/bus/counter/devices/counterX/countY/ceiling_component_id
  186. What: /sys/bus/counter/devices/counterX/countY/floor_component_id
  187. What: /sys/bus/counter/devices/counterX/countY/count_mode_component_id
  188. What: /sys/bus/counter/devices/counterX/countY/direction_component_id
  189. What: /sys/bus/counter/devices/counterX/countY/enable_component_id
  190. What: /sys/bus/counter/devices/counterX/countY/error_noise_component_id
  191. What: /sys/bus/counter/devices/counterX/countY/prescaler_component_id
  192. What: /sys/bus/counter/devices/counterX/countY/preset_component_id
  193. What: /sys/bus/counter/devices/counterX/countY/preset_enable_component_id
  194. What: /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id
  195. What: /sys/bus/counter/devices/counterX/countY/num_overflows_component_id
  196. What: /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id
  197. What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id
  198. What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id
  199. What: /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id
  200. What: /sys/bus/counter/devices/counterX/signalY/polarity_component_id
  201. What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id
  202. What: /sys/bus/counter/devices/counterX/signalY/frequency_component_id
  203. KernelVersion: 5.16
  204. Contact: [email protected]
  205. Description:
  206. Read-only attribute that indicates the component ID of the
  207. respective extension or Synapse.
  208. What: /sys/bus/counter/devices/counterX/countY/spike_filter_ns
  209. KernelVersion: 5.14
  210. Contact: [email protected]
  211. Description:
  212. If the counter device supports programmable spike filter this
  213. attribute indicates the value in nanoseconds where noise pulses
  214. shorter or equal to configured value are ignored. Value 0 means
  215. filter is disabled.
  216. What: /sys/bus/counter/devices/counterX/events_queue_size
  217. KernelVersion: 5.16
  218. Contact: [email protected]
  219. Description:
  220. Size of the Counter events queue in number of struct
  221. counter_event data structures. The number of elements will be
  222. rounded-up to a power of 2.
  223. What: /sys/bus/counter/devices/counterX/name
  224. KernelVersion: 5.2
  225. Contact: [email protected]
  226. Description:
  227. Read-only attribute that indicates the device-specific name of
  228. the Counter. This should match the name of the device as it
  229. appears in its respective datasheet.
  230. What: /sys/bus/counter/devices/counterX/num_counts
  231. KernelVersion: 5.2
  232. Contact: [email protected]
  233. Description:
  234. Read-only attribute that indicates the total number of Counts
  235. belonging to the Counter.
  236. What: /sys/bus/counter/devices/counterX/num_signals
  237. KernelVersion: 5.2
  238. Contact: [email protected]
  239. Description:
  240. Read-only attribute that indicates the total number of Signals
  241. belonging to the Counter.
  242. What: /sys/bus/counter/devices/counterX/signalY/cable_fault
  243. KernelVersion: 5.7
  244. Contact: [email protected]
  245. Description:
  246. Read-only attribute that indicates whether a differential
  247. encoder cable fault (not connected or loose wires) is detected
  248. for the respective channel of Signal Y. Valid attribute values
  249. are boolean. Detection must first be enabled via the
  250. corresponding cable_fault_enable attribute.
  251. What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable
  252. KernelVersion: 5.7
  253. Contact: [email protected]
  254. Description:
  255. Whether detection of differential encoder cable faults for the
  256. respective channel of Signal Y is enabled. Valid attribute
  257. values are boolean.
  258. What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler
  259. KernelVersion: 5.7
  260. Contact: [email protected]
  261. Description:
  262. Filter clock factor for input Signal Y. This prescaler value
  263. affects the inputs of both quadrature pair signals.
  264. What: /sys/bus/counter/devices/counterX/signalY/index_polarity
  265. KernelVersion: 5.2
  266. Contact: [email protected]
  267. Description:
  268. Active level of index input Signal Y; irrelevant in
  269. non-synchronous load mode.
  270. What: /sys/bus/counter/devices/counterX/signalY/index_polarity_available
  271. What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_available
  272. KernelVersion: 5.2
  273. Contact: [email protected]
  274. Description:
  275. Discrete set of available values for the respective Signal Y
  276. configuration are listed in this file.
  277. What: /sys/bus/counter/devices/counterX/signalY/polarity
  278. KernelVersion: 6.1
  279. Contact: [email protected]
  280. Description:
  281. Active level of Signal Y. The following polarity values are
  282. available:
  283. positive:
  284. Signal high state considered active level (rising edge).
  285. negative:
  286. Signal low state considered active level (falling edge).
  287. What: /sys/bus/counter/devices/counterX/signalY/name
  288. KernelVersion: 5.2
  289. Contact: [email protected]
  290. Description:
  291. Read-only attribute that indicates the device-specific name of
  292. Signal Y. If possible, this should match the name of the
  293. respective signal as it appears in the device datasheet.
  294. What: /sys/bus/counter/devices/counterX/signalY/signal
  295. KernelVersion: 5.2
  296. Contact: [email protected]
  297. Description:
  298. Signal level state of Signal Y. The following signal level
  299. states are available:
  300. low:
  301. Low level state.
  302. high:
  303. High level state.
  304. What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode
  305. KernelVersion: 5.2
  306. Contact: [email protected]
  307. Description:
  308. Configure the counter associated with Signal Y for
  309. non-synchronous or synchronous load mode. Synchronous load mode
  310. cannot be selected in non-quadrature (Pulse-Direction) clock
  311. mode.
  312. non-synchronous:
  313. A logic low level is the active level at this index
  314. input. The index function (as enabled via preset_enable)
  315. is performed directly on the active level of the index
  316. input.
  317. synchronous:
  318. Intended for interfacing with encoder Index output in
  319. quadrature clock mode. The active level is configured
  320. via index_polarity. The index function (as enabled via
  321. preset_enable) is performed synchronously with the
  322. quadrature clock on the active level of the index input.
  323. What: /sys/bus/counter/devices/counterX/signalY/frequency
  324. KernelVersion: 6.1
  325. Contact: [email protected]
  326. Description:
  327. Read-only attribute that indicates the signal Y frequency, in Hz.