162306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/cascade_counts_enable 262306a36Sopenharmony_ciKernelVersion: 6.4 362306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci Indicates the cascading of Counts on Counter X. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci Valid attribute values are boolean. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/external_input_phase_clock_select 1062306a36Sopenharmony_ciKernelVersion: 6.4 1162306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 1262306a36Sopenharmony_ciDescription: 1362306a36Sopenharmony_ci Selects the external clock pin for phase counting mode of 1462306a36Sopenharmony_ci Counter X. 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci MTCLKA-MTCLKB: 1762306a36Sopenharmony_ci MTCLKA and MTCLKB pins are selected for the external 1862306a36Sopenharmony_ci phase clock. 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci MTCLKC-MTCLKD: 2162306a36Sopenharmony_ci MTCLKC and MTCLKD pins are selected for the external 2262306a36Sopenharmony_ci phase clock. 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/external_input_phase_clock_select_available 2562306a36Sopenharmony_ciKernelVersion: 6.4 2662306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 2762306a36Sopenharmony_ciDescription: 2862306a36Sopenharmony_ci Discrete set of available values for the respective device 2962306a36Sopenharmony_ci configuration are listed in this file. 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/count 3262306a36Sopenharmony_ciKernelVersion: 5.2 3362306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 3462306a36Sopenharmony_ciDescription: 3562306a36Sopenharmony_ci Count data of Count Y represented as a string. 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/capture 3862306a36Sopenharmony_ciKernelVersion: 6.1 3962306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 4062306a36Sopenharmony_ciDescription: 4162306a36Sopenharmony_ci Historical capture of the Count Y count data. 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/ceiling 4462306a36Sopenharmony_ciKernelVersion: 5.2 4562306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 4662306a36Sopenharmony_ciDescription: 4762306a36Sopenharmony_ci Count value ceiling for Count Y. This is the upper limit for the 4862306a36Sopenharmony_ci respective counter. 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/floor 5162306a36Sopenharmony_ciKernelVersion: 5.2 5262306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 5362306a36Sopenharmony_ciDescription: 5462306a36Sopenharmony_ci Count value floor for Count Y. This is the lower limit for the 5562306a36Sopenharmony_ci respective counter. 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/count_mode 5862306a36Sopenharmony_ciKernelVersion: 5.2 5962306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 6062306a36Sopenharmony_ciDescription: 6162306a36Sopenharmony_ci Count mode for channel Y. The ceiling and floor values for 6262306a36Sopenharmony_ci Count Y are used by the count mode where required. The following 6362306a36Sopenharmony_ci count modes are available: 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci normal: 6662306a36Sopenharmony_ci Counting is continuous in either direction. 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci range limit: 6962306a36Sopenharmony_ci An upper or lower limit is set, mimicking limit switches 7062306a36Sopenharmony_ci in the mechanical counterpart. The upper limit is set to 7162306a36Sopenharmony_ci the Count Y ceiling value, while the lower limit is set 7262306a36Sopenharmony_ci to the Count Y floor value. The counter freezes at 7362306a36Sopenharmony_ci count = ceiling when counting up, and at count = floor 7462306a36Sopenharmony_ci when counting down. At either of these limits, the 7562306a36Sopenharmony_ci counting is resumed only when the count direction is 7662306a36Sopenharmony_ci reversed. 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_ci non-recycle: 7962306a36Sopenharmony_ci The counter is disabled whenever a counter overflow or 8062306a36Sopenharmony_ci underflow takes place. The counter is re-enabled when a 8162306a36Sopenharmony_ci new count value is loaded to the counter via a preset 8262306a36Sopenharmony_ci operation or direct write. 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ci modulo-n: 8562306a36Sopenharmony_ci A count value boundary is set between the Count Y floor 8662306a36Sopenharmony_ci value and the Count Y ceiling value. The counter is 8762306a36Sopenharmony_ci reset to the Count Y floor value at count = ceiling when 8862306a36Sopenharmony_ci counting up, while the counter is set to the Count Y 8962306a36Sopenharmony_ci ceiling value at count = floor when counting down; the 9062306a36Sopenharmony_ci counter does not freeze at the boundary points, but 9162306a36Sopenharmony_ci counts continuously throughout. 9262306a36Sopenharmony_ci 9362306a36Sopenharmony_ci interrupt on terminal count: 9462306a36Sopenharmony_ci The output signal is initially low, and will remain low 9562306a36Sopenharmony_ci until the counter reaches zero. The output signal then 9662306a36Sopenharmony_ci goes high and remains high until a new preset value is 9762306a36Sopenharmony_ci set. 9862306a36Sopenharmony_ci 9962306a36Sopenharmony_ci hardware retriggerable one-shot: 10062306a36Sopenharmony_ci The output signal is initially high. The output signal 10162306a36Sopenharmony_ci will go low by a trigger input signal, and will remain 10262306a36Sopenharmony_ci low until the counter reaches zero. The output will then 10362306a36Sopenharmony_ci go high and remain high until the next trigger. A 10462306a36Sopenharmony_ci trigger results in loading the counter to the preset 10562306a36Sopenharmony_ci value and setting the output signal low, thus starting 10662306a36Sopenharmony_ci the one-shot pulse. 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ci rate generator: 10962306a36Sopenharmony_ci The output signal is initially high. When the counter 11062306a36Sopenharmony_ci has decremented to 1, the output signal goes low for one 11162306a36Sopenharmony_ci clock pulse. The output signal then goes high again, the 11262306a36Sopenharmony_ci counter is reloaded to the preset value, and the process 11362306a36Sopenharmony_ci repeats in a periodic manner as such. 11462306a36Sopenharmony_ci 11562306a36Sopenharmony_ci square wave mode: 11662306a36Sopenharmony_ci The output signal is initially high. 11762306a36Sopenharmony_ci 11862306a36Sopenharmony_ci If the initial count is even, the counter is decremented 11962306a36Sopenharmony_ci by two on succeeding clock pulses. When the count 12062306a36Sopenharmony_ci expires, the output signal changes value and the 12162306a36Sopenharmony_ci counter is reloaded to the preset value. The process 12262306a36Sopenharmony_ci repeats in periodic manner as such. 12362306a36Sopenharmony_ci 12462306a36Sopenharmony_ci If the initial count is odd, the initial count minus one 12562306a36Sopenharmony_ci (an even number) is loaded and then is decremented by 12662306a36Sopenharmony_ci two on succeeding clock pulses. One clock pulse after 12762306a36Sopenharmony_ci the count expires, the output signal goes low and the 12862306a36Sopenharmony_ci counter is reloaded to the preset value minus one. 12962306a36Sopenharmony_ci Succeeding clock pulses decrement the count by two. When 13062306a36Sopenharmony_ci the count expires, the output goes high again and the 13162306a36Sopenharmony_ci counter is reloaded to the preset value minus one. The 13262306a36Sopenharmony_ci process repeats in a periodic manner as such. 13362306a36Sopenharmony_ci 13462306a36Sopenharmony_ci software triggered strobe: 13562306a36Sopenharmony_ci The output signal is initially high. When the count 13662306a36Sopenharmony_ci expires, the output will go low for one clock pulse and 13762306a36Sopenharmony_ci then go high again. The counting sequence is "triggered" 13862306a36Sopenharmony_ci by setting the preset value. 13962306a36Sopenharmony_ci 14062306a36Sopenharmony_ci hardware triggered strobe: 14162306a36Sopenharmony_ci The output signal is initially high. Counting is started 14262306a36Sopenharmony_ci by a trigger input signal. When the count expires, the 14362306a36Sopenharmony_ci output signal will go low for one clock pulse and then 14462306a36Sopenharmony_ci go high again. A trigger results in loading the counter 14562306a36Sopenharmony_ci to the preset value. 14662306a36Sopenharmony_ci 14762306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/count_mode_available 14862306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/error_noise_available 14962306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/function_available 15062306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/prescaler_available 15162306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/signalZ_action_available 15262306a36Sopenharmony_ciKernelVersion: 5.2 15362306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 15462306a36Sopenharmony_ciDescription: 15562306a36Sopenharmony_ci Discrete set of available values for the respective Count Y 15662306a36Sopenharmony_ci configuration are listed in this file. Values are delimited by 15762306a36Sopenharmony_ci newline characters. 15862306a36Sopenharmony_ci 15962306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/direction 16062306a36Sopenharmony_ciKernelVersion: 5.2 16162306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 16262306a36Sopenharmony_ciDescription: 16362306a36Sopenharmony_ci Read-only attribute that indicates the count direction of Count 16462306a36Sopenharmony_ci Y. Two count directions are available: forward and backward. 16562306a36Sopenharmony_ci 16662306a36Sopenharmony_ci Some counter devices are able to determine the direction of 16762306a36Sopenharmony_ci their counting. For example, quadrature encoding counters can 16862306a36Sopenharmony_ci determine the direction of movement by evaluating the leading 16962306a36Sopenharmony_ci phase of the respective A and B quadrature encoding signals. 17062306a36Sopenharmony_ci This attribute exposes such count directions. 17162306a36Sopenharmony_ci 17262306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/enable 17362306a36Sopenharmony_ciKernelVersion: 5.2 17462306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 17562306a36Sopenharmony_ciDescription: 17662306a36Sopenharmony_ci Whether channel Y counter is enabled. Valid attribute values are 17762306a36Sopenharmony_ci boolean. 17862306a36Sopenharmony_ci 17962306a36Sopenharmony_ci This attribute is intended to serve as a pause/unpause mechanism 18062306a36Sopenharmony_ci for Count Y. Suppose a counter device is used to count the total 18162306a36Sopenharmony_ci movement of a conveyor belt: this attribute allows an operator 18262306a36Sopenharmony_ci to temporarily pause the counter, service the conveyor belt, 18362306a36Sopenharmony_ci and then finally unpause the counter to continue where it had 18462306a36Sopenharmony_ci left off. 18562306a36Sopenharmony_ci 18662306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/error_noise 18762306a36Sopenharmony_ciKernelVersion: 5.2 18862306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 18962306a36Sopenharmony_ciDescription: 19062306a36Sopenharmony_ci Read-only attribute that indicates whether excessive noise is 19162306a36Sopenharmony_ci present at the channel Y counter inputs. 19262306a36Sopenharmony_ci 19362306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/function 19462306a36Sopenharmony_ciKernelVersion: 5.2 19562306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 19662306a36Sopenharmony_ciDescription: 19762306a36Sopenharmony_ci Count function mode of Count Y; count function evaluation is 19862306a36Sopenharmony_ci triggered by conditions specified by the Count Y signalZ_action 19962306a36Sopenharmony_ci attributes. The following count functions are available: 20062306a36Sopenharmony_ci 20162306a36Sopenharmony_ci increase: 20262306a36Sopenharmony_ci Accumulated count is incremented. 20362306a36Sopenharmony_ci 20462306a36Sopenharmony_ci decrease: 20562306a36Sopenharmony_ci Accumulated count is decremented. 20662306a36Sopenharmony_ci 20762306a36Sopenharmony_ci pulse-direction: 20862306a36Sopenharmony_ci Rising edges on signal A updates the respective count. 20962306a36Sopenharmony_ci The input level of signal B determines direction. 21062306a36Sopenharmony_ci 21162306a36Sopenharmony_ci quadrature x1 a: 21262306a36Sopenharmony_ci If direction is forward, rising edges on quadrature pair 21362306a36Sopenharmony_ci signal A updates the respective count; if the direction 21462306a36Sopenharmony_ci is backward, falling edges on quadrature pair signal A 21562306a36Sopenharmony_ci updates the respective count. Quadrature encoding 21662306a36Sopenharmony_ci determines the direction. 21762306a36Sopenharmony_ci 21862306a36Sopenharmony_ci quadrature x1 b: 21962306a36Sopenharmony_ci If direction is forward, rising edges on quadrature pair 22062306a36Sopenharmony_ci signal B updates the respective count; if the direction 22162306a36Sopenharmony_ci is backward, falling edges on quadrature pair signal B 22262306a36Sopenharmony_ci updates the respective count. Quadrature encoding 22362306a36Sopenharmony_ci determines the direction. 22462306a36Sopenharmony_ci 22562306a36Sopenharmony_ci quadrature x2 a: 22662306a36Sopenharmony_ci Any state transition on quadrature pair signal A updates 22762306a36Sopenharmony_ci the respective count. Quadrature encoding determines the 22862306a36Sopenharmony_ci direction. 22962306a36Sopenharmony_ci 23062306a36Sopenharmony_ci quadrature x2 b: 23162306a36Sopenharmony_ci Any state transition on quadrature pair signal B updates 23262306a36Sopenharmony_ci the respective count. Quadrature encoding determines the 23362306a36Sopenharmony_ci direction. 23462306a36Sopenharmony_ci 23562306a36Sopenharmony_ci quadrature x4: 23662306a36Sopenharmony_ci Any state transition on either quadrature pair signals 23762306a36Sopenharmony_ci updates the respective count. Quadrature encoding 23862306a36Sopenharmony_ci determines the direction. 23962306a36Sopenharmony_ci 24062306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/name 24162306a36Sopenharmony_ciKernelVersion: 5.2 24262306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 24362306a36Sopenharmony_ciDescription: 24462306a36Sopenharmony_ci Read-only attribute that indicates the device-specific name of 24562306a36Sopenharmony_ci Count Y. If possible, this should match the name of the 24662306a36Sopenharmony_ci respective channel as it appears in the device datasheet. 24762306a36Sopenharmony_ci 24862306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/prescaler 24962306a36Sopenharmony_ciKernelVersion: 5.2 25062306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 25162306a36Sopenharmony_ciDescription: 25262306a36Sopenharmony_ci Configure the prescaler value associated with Count Y. 25362306a36Sopenharmony_ci On the FlexTimer, the counter clock source passes through a 25462306a36Sopenharmony_ci prescaler (i.e. a counter). This acts like a clock 25562306a36Sopenharmony_ci divider. 25662306a36Sopenharmony_ci 25762306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/preset 25862306a36Sopenharmony_ciKernelVersion: 5.2 25962306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 26062306a36Sopenharmony_ciDescription: 26162306a36Sopenharmony_ci If the counter device supports preset registers -- registers 26262306a36Sopenharmony_ci used to load counter channels to a set count upon device-defined 26362306a36Sopenharmony_ci preset operation trigger events -- the preset count for channel 26462306a36Sopenharmony_ci Y is provided by this attribute. 26562306a36Sopenharmony_ci 26662306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/preset_enable 26762306a36Sopenharmony_ciKernelVersion: 5.2 26862306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 26962306a36Sopenharmony_ciDescription: 27062306a36Sopenharmony_ci Whether channel Y counter preset operation is enabled. Valid 27162306a36Sopenharmony_ci attribute values are boolean. 27262306a36Sopenharmony_ci 27362306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/signalZ_action 27462306a36Sopenharmony_ciKernelVersion: 5.2 27562306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 27662306a36Sopenharmony_ciDescription: 27762306a36Sopenharmony_ci Action mode of Count Y for Signal Z. This attribute indicates 27862306a36Sopenharmony_ci the condition of Signal Z that triggers the count function 27962306a36Sopenharmony_ci evaluation for Count Y. The following action modes are 28062306a36Sopenharmony_ci available: 28162306a36Sopenharmony_ci 28262306a36Sopenharmony_ci none: 28362306a36Sopenharmony_ci Signal does not trigger the count function. In 28462306a36Sopenharmony_ci Pulse-Direction count function mode, this Signal is 28562306a36Sopenharmony_ci evaluated as Direction. 28662306a36Sopenharmony_ci 28762306a36Sopenharmony_ci rising edge: 28862306a36Sopenharmony_ci Low state transitions to high state. 28962306a36Sopenharmony_ci 29062306a36Sopenharmony_ci falling edge: 29162306a36Sopenharmony_ci High state transitions to low state. 29262306a36Sopenharmony_ci 29362306a36Sopenharmony_ci both edges: 29462306a36Sopenharmony_ci Any state transition. 29562306a36Sopenharmony_ci 29662306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/num_overflows 29762306a36Sopenharmony_ciKernelVersion: 6.1 29862306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 29962306a36Sopenharmony_ciDescription: 30062306a36Sopenharmony_ci This attribute indicates the number of overflows of count Y. 30162306a36Sopenharmony_ci 30262306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/cascade_counts_enable_component_id 30362306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/external_input_phase_clock_select_component_id 30462306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/capture_component_id 30562306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/ceiling_component_id 30662306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/floor_component_id 30762306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/count_mode_component_id 30862306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/direction_component_id 30962306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/enable_component_id 31062306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/error_noise_component_id 31162306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/prescaler_component_id 31262306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/preset_component_id 31362306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/preset_enable_component_id 31462306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id 31562306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/num_overflows_component_id 31662306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id 31762306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id 31862306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id 31962306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id 32062306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/polarity_component_id 32162306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id 32262306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/frequency_component_id 32362306a36Sopenharmony_ciKernelVersion: 5.16 32462306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 32562306a36Sopenharmony_ciDescription: 32662306a36Sopenharmony_ci Read-only attribute that indicates the component ID of the 32762306a36Sopenharmony_ci respective extension or Synapse. 32862306a36Sopenharmony_ci 32962306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/countY/spike_filter_ns 33062306a36Sopenharmony_ciKernelVersion: 5.14 33162306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 33262306a36Sopenharmony_ciDescription: 33362306a36Sopenharmony_ci If the counter device supports programmable spike filter this 33462306a36Sopenharmony_ci attribute indicates the value in nanoseconds where noise pulses 33562306a36Sopenharmony_ci shorter or equal to configured value are ignored. Value 0 means 33662306a36Sopenharmony_ci filter is disabled. 33762306a36Sopenharmony_ci 33862306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/events_queue_size 33962306a36Sopenharmony_ciKernelVersion: 5.16 34062306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 34162306a36Sopenharmony_ciDescription: 34262306a36Sopenharmony_ci Size of the Counter events queue in number of struct 34362306a36Sopenharmony_ci counter_event data structures. The number of elements will be 34462306a36Sopenharmony_ci rounded-up to a power of 2. 34562306a36Sopenharmony_ci 34662306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/name 34762306a36Sopenharmony_ciKernelVersion: 5.2 34862306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 34962306a36Sopenharmony_ciDescription: 35062306a36Sopenharmony_ci Read-only attribute that indicates the device-specific name of 35162306a36Sopenharmony_ci the Counter. This should match the name of the device as it 35262306a36Sopenharmony_ci appears in its respective datasheet. 35362306a36Sopenharmony_ci 35462306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/num_counts 35562306a36Sopenharmony_ciKernelVersion: 5.2 35662306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 35762306a36Sopenharmony_ciDescription: 35862306a36Sopenharmony_ci Read-only attribute that indicates the total number of Counts 35962306a36Sopenharmony_ci belonging to the Counter. 36062306a36Sopenharmony_ci 36162306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/num_signals 36262306a36Sopenharmony_ciKernelVersion: 5.2 36362306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 36462306a36Sopenharmony_ciDescription: 36562306a36Sopenharmony_ci Read-only attribute that indicates the total number of Signals 36662306a36Sopenharmony_ci belonging to the Counter. 36762306a36Sopenharmony_ci 36862306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/cable_fault 36962306a36Sopenharmony_ciKernelVersion: 5.7 37062306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 37162306a36Sopenharmony_ciDescription: 37262306a36Sopenharmony_ci Read-only attribute that indicates whether a differential 37362306a36Sopenharmony_ci encoder cable fault (not connected or loose wires) is detected 37462306a36Sopenharmony_ci for the respective channel of Signal Y. Valid attribute values 37562306a36Sopenharmony_ci are boolean. Detection must first be enabled via the 37662306a36Sopenharmony_ci corresponding cable_fault_enable attribute. 37762306a36Sopenharmony_ci 37862306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable 37962306a36Sopenharmony_ciKernelVersion: 5.7 38062306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 38162306a36Sopenharmony_ciDescription: 38262306a36Sopenharmony_ci Whether detection of differential encoder cable faults for the 38362306a36Sopenharmony_ci respective channel of Signal Y is enabled. Valid attribute 38462306a36Sopenharmony_ci values are boolean. 38562306a36Sopenharmony_ci 38662306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler 38762306a36Sopenharmony_ciKernelVersion: 5.7 38862306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 38962306a36Sopenharmony_ciDescription: 39062306a36Sopenharmony_ci Filter clock factor for input Signal Y. This prescaler value 39162306a36Sopenharmony_ci affects the inputs of both quadrature pair signals. 39262306a36Sopenharmony_ci 39362306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/index_polarity 39462306a36Sopenharmony_ciKernelVersion: 5.2 39562306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 39662306a36Sopenharmony_ciDescription: 39762306a36Sopenharmony_ci Active level of index input Signal Y; irrelevant in 39862306a36Sopenharmony_ci non-synchronous load mode. 39962306a36Sopenharmony_ci 40062306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/index_polarity_available 40162306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_available 40262306a36Sopenharmony_ciKernelVersion: 5.2 40362306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 40462306a36Sopenharmony_ciDescription: 40562306a36Sopenharmony_ci Discrete set of available values for the respective Signal Y 40662306a36Sopenharmony_ci configuration are listed in this file. 40762306a36Sopenharmony_ci 40862306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/polarity 40962306a36Sopenharmony_ciKernelVersion: 6.1 41062306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 41162306a36Sopenharmony_ciDescription: 41262306a36Sopenharmony_ci Active level of Signal Y. The following polarity values are 41362306a36Sopenharmony_ci available: 41462306a36Sopenharmony_ci 41562306a36Sopenharmony_ci positive: 41662306a36Sopenharmony_ci Signal high state considered active level (rising edge). 41762306a36Sopenharmony_ci 41862306a36Sopenharmony_ci negative: 41962306a36Sopenharmony_ci Signal low state considered active level (falling edge). 42062306a36Sopenharmony_ci 42162306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/name 42262306a36Sopenharmony_ciKernelVersion: 5.2 42362306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 42462306a36Sopenharmony_ciDescription: 42562306a36Sopenharmony_ci Read-only attribute that indicates the device-specific name of 42662306a36Sopenharmony_ci Signal Y. If possible, this should match the name of the 42762306a36Sopenharmony_ci respective signal as it appears in the device datasheet. 42862306a36Sopenharmony_ci 42962306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/signal 43062306a36Sopenharmony_ciKernelVersion: 5.2 43162306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 43262306a36Sopenharmony_ciDescription: 43362306a36Sopenharmony_ci Signal level state of Signal Y. The following signal level 43462306a36Sopenharmony_ci states are available: 43562306a36Sopenharmony_ci 43662306a36Sopenharmony_ci low: 43762306a36Sopenharmony_ci Low level state. 43862306a36Sopenharmony_ci 43962306a36Sopenharmony_ci high: 44062306a36Sopenharmony_ci High level state. 44162306a36Sopenharmony_ci 44262306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/synchronous_mode 44362306a36Sopenharmony_ciKernelVersion: 5.2 44462306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 44562306a36Sopenharmony_ciDescription: 44662306a36Sopenharmony_ci Configure the counter associated with Signal Y for 44762306a36Sopenharmony_ci non-synchronous or synchronous load mode. Synchronous load mode 44862306a36Sopenharmony_ci cannot be selected in non-quadrature (Pulse-Direction) clock 44962306a36Sopenharmony_ci mode. 45062306a36Sopenharmony_ci 45162306a36Sopenharmony_ci non-synchronous: 45262306a36Sopenharmony_ci A logic low level is the active level at this index 45362306a36Sopenharmony_ci input. The index function (as enabled via preset_enable) 45462306a36Sopenharmony_ci is performed directly on the active level of the index 45562306a36Sopenharmony_ci input. 45662306a36Sopenharmony_ci 45762306a36Sopenharmony_ci synchronous: 45862306a36Sopenharmony_ci Intended for interfacing with encoder Index output in 45962306a36Sopenharmony_ci quadrature clock mode. The active level is configured 46062306a36Sopenharmony_ci via index_polarity. The index function (as enabled via 46162306a36Sopenharmony_ci preset_enable) is performed synchronously with the 46262306a36Sopenharmony_ci quadrature clock on the active level of the index input. 46362306a36Sopenharmony_ci 46462306a36Sopenharmony_ciWhat: /sys/bus/counter/devices/counterX/signalY/frequency 46562306a36Sopenharmony_ciKernelVersion: 6.1 46662306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 46762306a36Sopenharmony_ciDescription: 46862306a36Sopenharmony_ci Read-only attribute that indicates the signal Y frequency, in Hz. 469