~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/ABI/testing/sysfs-bus-counter

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/ABI/testing/sysfs-bus-counter (Architecture ppc) and /Documentation/ABI/testing/sysfs-bus-counter (Architecture alpha)


  1 What:           /sys/bus/counter/devices/count      1 What:           /sys/bus/counter/devices/counterX/cascade_counts_enable
  2 KernelVersion:  6.4                                 2 KernelVersion:  6.4
  3 Contact:        linux-iio@vger.kernel.org           3 Contact:        linux-iio@vger.kernel.org
  4 Description:                                        4 Description:
  5                 Indicates the cascading of Cou      5                 Indicates the cascading of Counts on Counter X.
  6                                                     6 
  7                 Valid attribute values are boo      7                 Valid attribute values are boolean.
  8                                                     8 
  9 What:           /sys/bus/counter/devices/count      9 What:           /sys/bus/counter/devices/counterX/external_input_phase_clock_select
 10 KernelVersion:  6.4                                10 KernelVersion:  6.4
 11 Contact:        linux-iio@vger.kernel.org          11 Contact:        linux-iio@vger.kernel.org
 12 Description:                                       12 Description:
 13                 Selects the external clock pin     13                 Selects the external clock pin for phase counting mode of
 14                 Counter X.                         14                 Counter X.
 15                                                    15 
 16                 MTCLKA-MTCLKB:                     16                 MTCLKA-MTCLKB:
 17                         MTCLKA and MTCLKB pins     17                         MTCLKA and MTCLKB pins are selected for the external
 18                         phase clock.               18                         phase clock.
 19                                                    19 
 20                 MTCLKC-MTCLKD:                     20                 MTCLKC-MTCLKD:
 21                         MTCLKC and MTCLKD pins     21                         MTCLKC and MTCLKD pins are selected for the external
 22                         phase clock.               22                         phase clock.
 23                                                    23 
 24 What:           /sys/bus/counter/devices/count     24 What:           /sys/bus/counter/devices/counterX/external_input_phase_clock_select_available
 25 KernelVersion:  6.4                                25 KernelVersion:  6.4
 26 Contact:        linux-iio@vger.kernel.org          26 Contact:        linux-iio@vger.kernel.org
 27 Description:                                       27 Description:
 28                 Discrete set of available valu     28                 Discrete set of available values for the respective device
 29                 configuration are listed in th     29                 configuration are listed in this file.
 30                                                    30 
 31 What:           /sys/bus/counter/devices/count     31 What:           /sys/bus/counter/devices/counterX/countY/count
 32 KernelVersion:  5.2                                32 KernelVersion:  5.2
 33 Contact:        linux-iio@vger.kernel.org          33 Contact:        linux-iio@vger.kernel.org
 34 Description:                                       34 Description:
 35                 Count data of Count Y represen     35                 Count data of Count Y represented as a string.
 36                                                    36 
 37 What:           /sys/bus/counter/devices/count     37 What:           /sys/bus/counter/devices/counterX/countY/capture
 38 KernelVersion:  6.1                                38 KernelVersion:  6.1
 39 Contact:        linux-iio@vger.kernel.org          39 Contact:        linux-iio@vger.kernel.org
 40 Description:                                       40 Description:
 41                 Historical capture of the Coun     41                 Historical capture of the Count Y count data.
 42                                                    42 
 43 What:           /sys/bus/counter/devices/count     43 What:           /sys/bus/counter/devices/counterX/countY/ceiling
 44 KernelVersion:  5.2                                44 KernelVersion:  5.2
 45 Contact:        linux-iio@vger.kernel.org          45 Contact:        linux-iio@vger.kernel.org
 46 Description:                                       46 Description:
 47                 Count value ceiling for Count      47                 Count value ceiling for Count Y. This is the upper limit for the
 48                 respective counter.                48                 respective counter.
 49                                                    49 
 50 What:           /sys/bus/counter/devices/count     50 What:           /sys/bus/counter/devices/counterX/countY/floor
 51 KernelVersion:  5.2                                51 KernelVersion:  5.2
 52 Contact:        linux-iio@vger.kernel.org          52 Contact:        linux-iio@vger.kernel.org
 53 Description:                                       53 Description:
 54                 Count value floor for Count Y.     54                 Count value floor for Count Y. This is the lower limit for the
 55                 respective counter.                55                 respective counter.
 56                                                    56 
 57 What:           /sys/bus/counter/devices/count     57 What:           /sys/bus/counter/devices/counterX/countY/count_mode
 58 KernelVersion:  5.2                                58 KernelVersion:  5.2
 59 Contact:        linux-iio@vger.kernel.org          59 Contact:        linux-iio@vger.kernel.org
 60 Description:                                       60 Description:
 61                 Count mode for channel Y. The      61                 Count mode for channel Y. The ceiling and floor values for
 62                 Count Y are used by the count      62                 Count Y are used by the count mode where required. The following
 63                 count modes are available:         63                 count modes are available:
 64                                                    64 
 65                 normal:                            65                 normal:
 66                         Counting is continuous     66                         Counting is continuous in either direction.
 67                                                    67 
 68                 range limit:                       68                 range limit:
 69                         An upper or lower limi     69                         An upper or lower limit is set, mimicking limit switches
 70                         in the mechanical coun     70                         in the mechanical counterpart. The upper limit is set to
 71                         the Count Y ceiling va     71                         the Count Y ceiling value, while the lower limit is set
 72                         to the Count Y floor v     72                         to the Count Y floor value. The counter freezes at
 73                         count = ceiling when c     73                         count = ceiling when counting up, and at count = floor
 74                         when counting down. At     74                         when counting down. At either of these limits, the
 75                         counting is resumed on     75                         counting is resumed only when the count direction is
 76                         reversed.                  76                         reversed.
 77                                                    77 
 78                 non-recycle:                       78                 non-recycle:
 79                         The counter is disable     79                         The counter is disabled whenever a counter overflow or
 80                         underflow takes place.     80                         underflow takes place. The counter is re-enabled when a
 81                         new count value is loa     81                         new count value is loaded to the counter via a preset
 82                         operation or direct wr     82                         operation or direct write.
 83                                                    83 
 84                 modulo-n:                          84                 modulo-n:
 85                         A count value boundary     85                         A count value boundary is set between the Count Y floor
 86                         value and the Count Y      86                         value and the Count Y ceiling value. The counter is
 87                         reset to the Count Y f     87                         reset to the Count Y floor value at count = ceiling when
 88                         counting up, while the     88                         counting up, while the counter is set to the Count Y
 89                         ceiling value at count     89                         ceiling value at count = floor when counting down; the
 90                         counter does not freez     90                         counter does not freeze at the boundary points, but
 91                         counts continuously th     91                         counts continuously throughout.
 92                                                    92 
 93                 interrupt on terminal count:       93                 interrupt on terminal count:
 94                         The output signal is i     94                         The output signal is initially low, and will remain low
 95                         until the counter reac     95                         until the counter reaches zero. The output signal then
 96                         goes high and remains      96                         goes high and remains high until a new preset value is
 97                         set.                       97                         set.
 98                                                    98 
 99                 hardware retriggerable one-sho     99                 hardware retriggerable one-shot:
100                         The output signal is i    100                         The output signal is initially high. The output signal
101                         will go low by a trigg    101                         will go low by a trigger input signal, and will remain
102                         low until the counter     102                         low until the counter reaches zero. The output will then
103                         go high and remain hig    103                         go high and remain high until the next trigger. A
104                         trigger results in loa    104                         trigger results in loading the counter to the preset
105                         value and setting the     105                         value and setting the output signal low, thus starting
106                         the one-shot pulse.       106                         the one-shot pulse.
107                                                   107 
108                 rate generator:                   108                 rate generator:
109                         The output signal is i    109                         The output signal is initially high. When the counter
110                         has decremented to 1,     110                         has decremented to 1, the output signal goes low for one
111                         clock pulse. The outpu    111                         clock pulse. The output signal then goes high again, the
112                         counter is reloaded to    112                         counter is reloaded to the preset value, and the process
113                         repeats in a periodic     113                         repeats in a periodic manner as such.
114                                                   114 
115                 square wave mode:                 115                 square wave mode:
116                         The output signal is i    116                         The output signal is initially high.
117                                                   117 
118                         If the initial count i    118                         If the initial count is even, the counter is decremented
119                         by two on succeeding c    119                         by two on succeeding clock pulses. When the count
120                         expires, the output si    120                         expires, the output signal changes value and the
121                         counter is reloaded to    121                         counter is reloaded to the preset value. The process
122                         repeats in periodic ma    122                         repeats in periodic manner as such.
123                                                   123 
124                         If the initial count i    124                         If the initial count is odd, the initial count minus one
125                         (an even number) is lo    125                         (an even number) is loaded and then is decremented by
126                         two on succeeding cloc    126                         two on succeeding clock pulses. One clock pulse after
127                         the count expires, the    127                         the count expires, the output signal goes low and the
128                         counter is reloaded to    128                         counter is reloaded to the preset value minus one.
129                         Succeeding clock pulse    129                         Succeeding clock pulses decrement the count by two. When
130                         the count expires, the    130                         the count expires, the output goes high again and the
131                         counter is reloaded to    131                         counter is reloaded to the preset value minus one. The
132                         process repeats in a p    132                         process repeats in a periodic manner as such.
133                                                   133 
134                 software triggered strobe:        134                 software triggered strobe:
135                         The output signal is i    135                         The output signal is initially high. When the count
136                         expires, the output wi    136                         expires, the output will go low for one clock pulse and
137                         then go high again. Th    137                         then go high again. The counting sequence is "triggered"
138                         by setting the preset     138                         by setting the preset value.
139                                                   139 
140                 hardware triggered strobe:        140                 hardware triggered strobe:
141                         The output signal is i    141                         The output signal is initially high. Counting is started
142                         by a trigger input sig    142                         by a trigger input signal. When the count expires, the
143                         output signal will go     143                         output signal will go low for one clock pulse and then
144                         go high again. A trigg    144                         go high again. A trigger results in loading the counter
145                         to the preset value.      145                         to the preset value.
146                                                   146 
147 What:           /sys/bus/counter/devices/count    147 What:           /sys/bus/counter/devices/counterX/countY/count_mode_available
148 What:           /sys/bus/counter/devices/count    148 What:           /sys/bus/counter/devices/counterX/countY/error_noise_available
149 What:           /sys/bus/counter/devices/count    149 What:           /sys/bus/counter/devices/counterX/countY/function_available
150 What:           /sys/bus/counter/devices/count    150 What:           /sys/bus/counter/devices/counterX/countY/prescaler_available
151 What:           /sys/bus/counter/devices/count    151 What:           /sys/bus/counter/devices/counterX/countY/signalZ_action_available
152 KernelVersion:  5.2                               152 KernelVersion:  5.2
153 Contact:        linux-iio@vger.kernel.org         153 Contact:        linux-iio@vger.kernel.org
154 Description:                                      154 Description:
155                 Discrete set of available valu    155                 Discrete set of available values for the respective Count Y
156                 configuration are listed in th    156                 configuration are listed in this file. Values are delimited by
157                 newline characters.               157                 newline characters.
158                                                   158 
159 What:           /sys/bus/counter/devices/count    159 What:           /sys/bus/counter/devices/counterX/countY/direction
160 KernelVersion:  5.2                               160 KernelVersion:  5.2
161 Contact:        linux-iio@vger.kernel.org         161 Contact:        linux-iio@vger.kernel.org
162 Description:                                      162 Description:
163                 Read-only attribute that indic    163                 Read-only attribute that indicates the count direction of Count
164                 Y. Two count directions are av    164                 Y. Two count directions are available: forward and backward.
165                                                   165 
166                 Some counter devices are able     166                 Some counter devices are able to determine the direction of
167                 their counting. For example, q    167                 their counting. For example, quadrature encoding counters can
168                 determine the direction of mov    168                 determine the direction of movement by evaluating the leading
169                 phase of the respective A and     169                 phase of the respective A and B quadrature encoding signals.
170                 This attribute exposes such co    170                 This attribute exposes such count directions.
171                                                   171 
172 What:           /sys/bus/counter/devices/count    172 What:           /sys/bus/counter/devices/counterX/countY/enable
173 KernelVersion:  5.2                               173 KernelVersion:  5.2
174 Contact:        linux-iio@vger.kernel.org         174 Contact:        linux-iio@vger.kernel.org
175 Description:                                      175 Description:
176                 Whether channel Y counter is e    176                 Whether channel Y counter is enabled. Valid attribute values are
177                 boolean.                          177                 boolean.
178                                                   178 
179                 This attribute is intended to     179                 This attribute is intended to serve as a pause/unpause mechanism
180                 for Count Y. Suppose a counter    180                 for Count Y. Suppose a counter device is used to count the total
181                 movement of a conveyor belt: t    181                 movement of a conveyor belt: this attribute allows an operator
182                 to temporarily pause the count    182                 to temporarily pause the counter, service the conveyor belt,
183                 and then finally unpause the c    183                 and then finally unpause the counter to continue where it had
184                 left off.                         184                 left off.
185                                                   185 
186 What:           /sys/bus/counter/devices/count    186 What:           /sys/bus/counter/devices/counterX/countY/error_noise
187 KernelVersion:  5.2                               187 KernelVersion:  5.2
188 Contact:        linux-iio@vger.kernel.org         188 Contact:        linux-iio@vger.kernel.org
189 Description:                                      189 Description:
190                 Read-only attribute that indic    190                 Read-only attribute that indicates whether excessive noise is
191                 present at the channel Y count    191                 present at the channel Y counter inputs.
192                                                   192 
193 What:           /sys/bus/counter/devices/count    193 What:           /sys/bus/counter/devices/counterX/countY/function
194 KernelVersion:  5.2                               194 KernelVersion:  5.2
195 Contact:        linux-iio@vger.kernel.org         195 Contact:        linux-iio@vger.kernel.org
196 Description:                                      196 Description:
197                 Count function mode of Count Y    197                 Count function mode of Count Y; count function evaluation is
198                 triggered by conditions specif    198                 triggered by conditions specified by the Count Y signalZ_action
199                 attributes. The following coun    199                 attributes. The following count functions are available:
200                                                   200 
201                 increase:                         201                 increase:
202                         Accumulated count is i    202                         Accumulated count is incremented.
203                                                   203 
204                 decrease:                         204                 decrease:
205                         Accumulated count is d    205                         Accumulated count is decremented.
206                                                   206 
207                 pulse-direction:                  207                 pulse-direction:
208                         Rising edges on signal    208                         Rising edges on signal A updates the respective count.
209                         The input level of sig    209                         The input level of signal B determines direction.
210                                                   210 
211                 quadrature x1 a:                  211                 quadrature x1 a:
212                         If direction is forwar    212                         If direction is forward, rising edges on quadrature pair
213                         signal A updates the r    213                         signal A updates the respective count; if the direction
214                         is backward, falling e    214                         is backward, falling edges on quadrature pair signal A
215                         updates the respective    215                         updates the respective count. Quadrature encoding
216                         determines the directi    216                         determines the direction.
217                                                   217 
218                 quadrature x1 b:                  218                 quadrature x1 b:
219                         If direction is forwar    219                         If direction is forward, rising edges on quadrature pair
220                         signal B updates the r    220                         signal B updates the respective count; if the direction
221                         is backward, falling e    221                         is backward, falling edges on quadrature pair signal B
222                         updates the respective    222                         updates the respective count. Quadrature encoding
223                         determines the directi    223                         determines the direction.
224                                                   224 
225                 quadrature x2 a:                  225                 quadrature x2 a:
226                         Any state transition o    226                         Any state transition on quadrature pair signal A updates
227                         the respective count.     227                         the respective count. Quadrature encoding determines the
228                         direction.                228                         direction.
229                                                   229 
230                 quadrature x2 b:                  230                 quadrature x2 b:
231                         Any state transition o    231                         Any state transition on quadrature pair signal B updates
232                         the respective count.     232                         the respective count. Quadrature encoding determines the
233                         direction.                233                         direction.
234                                                   234 
235                 quadrature x4:                    235                 quadrature x4:
236                         Any state transition o    236                         Any state transition on either quadrature pair signals
237                         updates the respective    237                         updates the respective count. Quadrature encoding
238                         determines the directi    238                         determines the direction.
239                                                   239 
240 What:           /sys/bus/counter/devices/count    240 What:           /sys/bus/counter/devices/counterX/countY/name
241 KernelVersion:  5.2                               241 KernelVersion:  5.2
242 Contact:        linux-iio@vger.kernel.org         242 Contact:        linux-iio@vger.kernel.org
243 Description:                                      243 Description:
244                 Read-only attribute that indic    244                 Read-only attribute that indicates the device-specific name of
245                 Count Y. If possible, this sho    245                 Count Y. If possible, this should match the name of the
246                 respective channel as it appea    246                 respective channel as it appears in the device datasheet.
247                                                   247 
248 What:           /sys/bus/counter/devices/count    248 What:           /sys/bus/counter/devices/counterX/countY/prescaler
249 KernelVersion:  5.2                               249 KernelVersion:  5.2
250 Contact:        linux-iio@vger.kernel.org         250 Contact:        linux-iio@vger.kernel.org
251 Description:                                      251 Description:
252                 Configure the prescaler value     252                 Configure the prescaler value associated with Count Y.
253                 On the FlexTimer, the counter     253                 On the FlexTimer, the counter clock source passes through a
254                 prescaler (i.e. a counter). Th    254                 prescaler (i.e. a counter). This acts like a clock
255                 divider.                          255                 divider.
256                                                   256 
257 What:           /sys/bus/counter/devices/count    257 What:           /sys/bus/counter/devices/counterX/countY/preset
258 KernelVersion:  5.2                               258 KernelVersion:  5.2
259 Contact:        linux-iio@vger.kernel.org         259 Contact:        linux-iio@vger.kernel.org
260 Description:                                      260 Description:
261                 If the counter device supports    261                 If the counter device supports preset registers -- registers
262                 used to load counter channels     262                 used to load counter channels to a set count upon device-defined
263                 preset operation trigger event    263                 preset operation trigger events -- the preset count for channel
264                 Y is provided by this attribut    264                 Y is provided by this attribute.
265                                                   265 
266 What:           /sys/bus/counter/devices/count    266 What:           /sys/bus/counter/devices/counterX/countY/preset_enable
267 KernelVersion:  5.2                               267 KernelVersion:  5.2
268 Contact:        linux-iio@vger.kernel.org         268 Contact:        linux-iio@vger.kernel.org
269 Description:                                      269 Description:
270                 Whether channel Y counter pres    270                 Whether channel Y counter preset operation is enabled. Valid
271                 attribute values are boolean.     271                 attribute values are boolean.
272                                                   272 
273 What:           /sys/bus/counter/devices/count    273 What:           /sys/bus/counter/devices/counterX/countY/signalZ_action
274 KernelVersion:  5.2                               274 KernelVersion:  5.2
275 Contact:        linux-iio@vger.kernel.org         275 Contact:        linux-iio@vger.kernel.org
276 Description:                                      276 Description:
277                 Action mode of Count Y for Sig    277                 Action mode of Count Y for Signal Z. This attribute indicates
278                 the condition of Signal Z that    278                 the condition of Signal Z that triggers the count function
279                 evaluation for Count Y. The fo    279                 evaluation for Count Y. The following action modes are
280                 available:                        280                 available:
281                                                   281 
282                 none:                             282                 none:
283                         Signal does not trigge    283                         Signal does not trigger the count function. In
284                         Pulse-Direction count     284                         Pulse-Direction count function mode, this Signal is
285                         evaluated as Direction    285                         evaluated as Direction.
286                                                   286 
287                 rising edge:                      287                 rising edge:
288                         Low state transitions     288                         Low state transitions to high state.
289                                                   289 
290                 falling edge:                     290                 falling edge:
291                         High state transitions    291                         High state transitions to low state.
292                                                   292 
293                 both edges:                       293                 both edges:
294                         Any state transition.     294                         Any state transition.
295                                                   295 
296 What:           /sys/bus/counter/devices/count    296 What:           /sys/bus/counter/devices/counterX/countY/num_overflows
297 KernelVersion:  6.1                               297 KernelVersion:  6.1
298 Contact:        linux-iio@vger.kernel.org         298 Contact:        linux-iio@vger.kernel.org
299 Description:                                      299 Description:
300                 This attribute indicates the n    300                 This attribute indicates the number of overflows of count Y.
301                                                   301 
302 What:           /sys/bus/counter/devices/count    302 What:           /sys/bus/counter/devices/counterX/cascade_counts_enable_component_id
303 What:           /sys/bus/counter/devices/count    303 What:           /sys/bus/counter/devices/counterX/external_input_phase_clock_select_component_id
304 What:           /sys/bus/counter/devices/count    304 What:           /sys/bus/counter/devices/counterX/countY/capture_component_id
305 What:           /sys/bus/counter/devices/count    305 What:           /sys/bus/counter/devices/counterX/countY/ceiling_component_id
306 What:           /sys/bus/counter/devices/count    306 What:           /sys/bus/counter/devices/counterX/countY/floor_component_id
307 What:           /sys/bus/counter/devices/count    307 What:           /sys/bus/counter/devices/counterX/countY/count_mode_component_id
308 What:           /sys/bus/counter/devices/count    308 What:           /sys/bus/counter/devices/counterX/countY/direction_component_id
309 What:           /sys/bus/counter/devices/count    309 What:           /sys/bus/counter/devices/counterX/countY/enable_component_id
310 What:           /sys/bus/counter/devices/count    310 What:           /sys/bus/counter/devices/counterX/countY/error_noise_component_id
311 What:           /sys/bus/counter/devices/count    311 What:           /sys/bus/counter/devices/counterX/countY/prescaler_component_id
312 What:           /sys/bus/counter/devices/count    312 What:           /sys/bus/counter/devices/counterX/countY/preset_component_id
313 What:           /sys/bus/counter/devices/count    313 What:           /sys/bus/counter/devices/counterX/countY/preset_enable_component_id
314 What:           /sys/bus/counter/devices/count    314 What:           /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id
315 What:           /sys/bus/counter/devices/count    315 What:           /sys/bus/counter/devices/counterX/countY/num_overflows_component_id
316 What:           /sys/bus/counter/devices/count    316 What:           /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id
317 What:           /sys/bus/counter/devices/count    317 What:           /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id
318 What:           /sys/bus/counter/devices/count    318 What:           /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id
319 What:           /sys/bus/counter/devices/count    319 What:           /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id
320 What:           /sys/bus/counter/devices/count    320 What:           /sys/bus/counter/devices/counterX/signalY/polarity_component_id
321 What:           /sys/bus/counter/devices/count    321 What:           /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id
322 What:           /sys/bus/counter/devices/count    322 What:           /sys/bus/counter/devices/counterX/signalY/frequency_component_id
323 KernelVersion:  5.16                              323 KernelVersion:  5.16
324 Contact:        linux-iio@vger.kernel.org         324 Contact:        linux-iio@vger.kernel.org
325 Description:                                      325 Description:
326                 Read-only attribute that indic    326                 Read-only attribute that indicates the component ID of the
327                 respective extension or Synaps    327                 respective extension or Synapse.
328                                                   328 
329 What:           /sys/bus/counter/devices/count    329 What:           /sys/bus/counter/devices/counterX/countY/spike_filter_ns
330 KernelVersion:  5.14                              330 KernelVersion:  5.14
331 Contact:        linux-iio@vger.kernel.org         331 Contact:        linux-iio@vger.kernel.org
332 Description:                                      332 Description:
333                 If the counter device supports    333                 If the counter device supports programmable spike filter this
334                 attribute indicates the value     334                 attribute indicates the value in nanoseconds where noise pulses
335                 shorter or equal to configured    335                 shorter or equal to configured value are ignored. Value 0 means
336                 filter is disabled.               336                 filter is disabled.
337                                                   337 
338 What:           /sys/bus/counter/devices/count    338 What:           /sys/bus/counter/devices/counterX/events_queue_size
339 KernelVersion:  5.16                              339 KernelVersion:  5.16
340 Contact:        linux-iio@vger.kernel.org         340 Contact:        linux-iio@vger.kernel.org
341 Description:                                      341 Description:
342                 Size of the Counter events que    342                 Size of the Counter events queue in number of struct
343                 counter_event data structures.    343                 counter_event data structures. The number of elements will be
344                 rounded-up to a power of 2.       344                 rounded-up to a power of 2.
345                                                   345 
346 What:           /sys/bus/counter/devices/count    346 What:           /sys/bus/counter/devices/counterX/name
347 KernelVersion:  5.2                               347 KernelVersion:  5.2
348 Contact:        linux-iio@vger.kernel.org         348 Contact:        linux-iio@vger.kernel.org
349 Description:                                      349 Description:
350                 Read-only attribute that indic    350                 Read-only attribute that indicates the device-specific name of
351                 the Counter. This should match    351                 the Counter. This should match the name of the device as it
352                 appears in its respective data    352                 appears in its respective datasheet.
353                                                   353 
354 What:           /sys/bus/counter/devices/count    354 What:           /sys/bus/counter/devices/counterX/num_counts
355 KernelVersion:  5.2                               355 KernelVersion:  5.2
356 Contact:        linux-iio@vger.kernel.org         356 Contact:        linux-iio@vger.kernel.org
357 Description:                                      357 Description:
358                 Read-only attribute that indic    358                 Read-only attribute that indicates the total number of Counts
359                 belonging to the Counter.         359                 belonging to the Counter.
360                                                   360 
361 What:           /sys/bus/counter/devices/count    361 What:           /sys/bus/counter/devices/counterX/num_signals
362 KernelVersion:  5.2                               362 KernelVersion:  5.2
363 Contact:        linux-iio@vger.kernel.org         363 Contact:        linux-iio@vger.kernel.org
364 Description:                                      364 Description:
365                 Read-only attribute that indic    365                 Read-only attribute that indicates the total number of Signals
366                 belonging to the Counter.         366                 belonging to the Counter.
367                                                   367 
368 What:           /sys/bus/counter/devices/count    368 What:           /sys/bus/counter/devices/counterX/signalY/cable_fault
369 KernelVersion:  5.7                               369 KernelVersion:  5.7
370 Contact:        linux-iio@vger.kernel.org         370 Contact:        linux-iio@vger.kernel.org
371 Description:                                      371 Description:
372                 Read-only attribute that indic    372                 Read-only attribute that indicates whether a differential
373                 encoder cable fault (not conne    373                 encoder cable fault (not connected or loose wires) is detected
374                 for the respective channel of     374                 for the respective channel of Signal Y. Valid attribute values
375                 are boolean. Detection must fi    375                 are boolean. Detection must first be enabled via the
376                 corresponding cable_fault_enab    376                 corresponding cable_fault_enable attribute.
377                                                   377 
378 What:           /sys/bus/counter/devices/count    378 What:           /sys/bus/counter/devices/counterX/signalY/cable_fault_enable
379 KernelVersion:  5.7                               379 KernelVersion:  5.7
380 Contact:        linux-iio@vger.kernel.org         380 Contact:        linux-iio@vger.kernel.org
381 Description:                                      381 Description:
382                 Whether detection of different    382                 Whether detection of differential encoder cable faults for the
383                 respective channel of Signal Y    383                 respective channel of Signal Y is enabled. Valid attribute
384                 values are boolean.               384                 values are boolean.
385                                                   385 
386 What:           /sys/bus/counter/devices/count    386 What:           /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler
387 KernelVersion:  5.7                               387 KernelVersion:  5.7
388 Contact:        linux-iio@vger.kernel.org         388 Contact:        linux-iio@vger.kernel.org
389 Description:                                      389 Description:
390                 Filter clock factor for input     390                 Filter clock factor for input Signal Y. This prescaler value
391                 affects the inputs of both qua    391                 affects the inputs of both quadrature pair signals.
392                                                   392 
393 What:           /sys/bus/counter/devices/count    393 What:           /sys/bus/counter/devices/counterX/signalY/index_polarity
394 KernelVersion:  5.2                               394 KernelVersion:  5.2
395 Contact:        linux-iio@vger.kernel.org         395 Contact:        linux-iio@vger.kernel.org
396 Description:                                      396 Description:
397                 Active level of index input Si    397                 Active level of index input Signal Y; irrelevant in
398                 non-synchronous load mode.        398                 non-synchronous load mode.
399                                                   399 
400 What:           /sys/bus/counter/devices/count    400 What:           /sys/bus/counter/devices/counterX/signalY/index_polarity_available
401 What:           /sys/bus/counter/devices/count    401 What:           /sys/bus/counter/devices/counterX/signalY/synchronous_mode_available
402 KernelVersion:  5.2                               402 KernelVersion:  5.2
403 Contact:        linux-iio@vger.kernel.org         403 Contact:        linux-iio@vger.kernel.org
404 Description:                                      404 Description:
405                 Discrete set of available valu    405                 Discrete set of available values for the respective Signal Y
406                 configuration are listed in th    406                 configuration are listed in this file.
407                                                   407 
408 What:           /sys/bus/counter/devices/count    408 What:           /sys/bus/counter/devices/counterX/signalY/polarity
409 KernelVersion:  6.1                               409 KernelVersion:  6.1
410 Contact:        linux-iio@vger.kernel.org         410 Contact:        linux-iio@vger.kernel.org
411 Description:                                      411 Description:
412                 Active level of Signal Y. The     412                 Active level of Signal Y. The following polarity values are
413                 available:                        413                 available:
414                                                   414 
415                 positive:                         415                 positive:
416                         Signal high state cons    416                         Signal high state considered active level (rising edge).
417                                                   417 
418                 negative:                         418                 negative:
419                         Signal low state consi    419                         Signal low state considered active level (falling edge).
420                                                   420 
421 What:           /sys/bus/counter/devices/count    421 What:           /sys/bus/counter/devices/counterX/signalY/name
422 KernelVersion:  5.2                               422 KernelVersion:  5.2
423 Contact:        linux-iio@vger.kernel.org         423 Contact:        linux-iio@vger.kernel.org
424 Description:                                      424 Description:
425                 Read-only attribute that indic    425                 Read-only attribute that indicates the device-specific name of
426                 Signal Y. If possible, this sh    426                 Signal Y. If possible, this should match the name of the
427                 respective signal as it appear    427                 respective signal as it appears in the device datasheet.
428                                                   428 
429 What:           /sys/bus/counter/devices/count    429 What:           /sys/bus/counter/devices/counterX/signalY/signal
430 KernelVersion:  5.2                               430 KernelVersion:  5.2
431 Contact:        linux-iio@vger.kernel.org         431 Contact:        linux-iio@vger.kernel.org
432 Description:                                      432 Description:
433                 Signal level state of Signal Y    433                 Signal level state of Signal Y. The following signal level
434                 states are available:             434                 states are available:
435                                                   435 
436                 low:                              436                 low:
437                         Low level state.          437                         Low level state.
438                                                   438 
439                 high:                             439                 high:
440                         High level state.         440                         High level state.
441                                                   441 
442 What:           /sys/bus/counter/devices/count    442 What:           /sys/bus/counter/devices/counterX/signalY/synchronous_mode
443 KernelVersion:  5.2                               443 KernelVersion:  5.2
444 Contact:        linux-iio@vger.kernel.org         444 Contact:        linux-iio@vger.kernel.org
445 Description:                                      445 Description:
446                 Configure the counter associat    446                 Configure the counter associated with Signal Y for
447                 non-synchronous or synchronous    447                 non-synchronous or synchronous load mode. Synchronous load mode
448                 cannot be selected in non-quad    448                 cannot be selected in non-quadrature (Pulse-Direction) clock
449                 mode.                             449                 mode.
450                                                   450 
451                 non-synchronous:                  451                 non-synchronous:
452                         A logic low level is t    452                         A logic low level is the active level at this index
453                         input. The index funct    453                         input. The index function (as enabled via preset_enable)
454                         is performed directly     454                         is performed directly on the active level of the index
455                         input.                    455                         input.
456                                                   456 
457                 synchronous:                      457                 synchronous:
458                         Intended for interfaci    458                         Intended for interfacing with encoder Index output in
459                         quadrature clock mode.    459                         quadrature clock mode. The active level is configured
460                         via index_polarity. Th    460                         via index_polarity. The index function (as enabled via
461                         preset_enable) is perf    461                         preset_enable) is performed synchronously with the
462                         quadrature clock on th    462                         quadrature clock on the active level of the index input.
463                                                   463 
464 What:           /sys/bus/counter/devices/count    464 What:           /sys/bus/counter/devices/counterX/signalY/frequency
465 KernelVersion:  6.1                               465 KernelVersion:  6.1
466 Contact:        linux-iio@vger.kernel.org         466 Contact:        linux-iio@vger.kernel.org
467 Description:                                      467 Description:
468                 Read-only attribute that indic    468                 Read-only attribute that indicates the signal Y frequency, in Hz.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php