Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
5739001
Documentation
ABI
obsolete
removed
stable
testing
configfs-acpi
configfs-iio
configfs-most
configfs-rdma_cm
configfs-spear-pcie-gadget
configfs-stp-policy
configfs-stp-policy-p_sys-t
configfs-usb-gadget
configfs-usb-gadget-acm
configfs-usb-gadget-ecm
configfs-usb-gadget-eem
configfs-usb-gadget-ffs
configfs-usb-gadget-hid
configfs-usb-gadget-loopback
configfs-usb-gadget-mass-storage
configfs-usb-gadget-midi
configfs-usb-gadget-midi2
configfs-usb-gadget-ncm
configfs-usb-gadget-obex
configfs-usb-gadget-phonet
configfs-usb-gadget-printer
configfs-usb-gadget-rndis
configfs-usb-gadget-serial
configfs-usb-gadget-sourcesink
configfs-usb-gadget-subset
configfs-usb-gadget-tcm
configfs-usb-gadget-uac1
configfs-usb-gadget-uac1_legacy
configfs-usb-gadget-uac2
configfs-usb-gadget-uvc
debugfs-cec-error-inj
debugfs-cros-ec
debugfs-cxl
debugfs-dell-wmi-ddv
debugfs-driver-dcc
debugfs-driver-genwqe
debugfs-driver-habanalabs
debugfs-driver-qat
debugfs-ec
debugfs-hisi-hpre
debugfs-hisi-sec
debugfs-hisi-zip
debugfs-hyperv
debugfs-ideapad
debugfs-moxtet
debugfs-olpc
debugfs-pfo-nx-crypto
debugfs-pktcdvd
debugfs-scmi
debugfs-scmi-raw
debugfs-tpmi
debugfs-turris-mox-rwtm
debugfs-wilco-ec
dell-smbios-wmi
dev-kmsg
devlink-resource-mlxsw
evm
gpio-cdev
ima_policy
ppc-memtrace
procfs-attr-current
procfs-attr-exec
procfs-attr-prev
procfs-diskstats
procfs-smaps_rollup
pstore
rtc-cdev
securityfs-secrets-coco
sysfs-amd-pmc
sysfs-amd-pmf
sysfs-ata
sysfs-block-aoe
sysfs-block-bcache
sysfs-block-device
sysfs-block-dm
sysfs-block-loop
sysfs-block-rnbd
sysfs-block-rssd
sysfs-block-zram
sysfs-bus-acpi
sysfs-bus-amba
sysfs-bus-bcma
sysfs-bus-cdx
sysfs-bus-coreboot
sysfs-bus-coresight-devices-cti
sysfs-bus-coresight-devices-etb10
sysfs-bus-coresight-devices-etm3x
sysfs-bus-coresight-devices-etm4x
sysfs-bus-coresight-devices-funnel
sysfs-bus-coresight-devices-stm
sysfs-bus-coresight-devices-tmc
sysfs-bus-coresight-devices-tpdm
sysfs-bus-coresight-devices-trbe
sysfs-bus-coresight-devices-ultra_smb
sysfs-bus-counter
sysfs-bus-css
sysfs-bus-cxl
sysfs-bus-dfl
sysfs-bus-dfl-devices-emif
sysfs-bus-dfl-devices-n3000-nios
sysfs-bus-event_source-devices-caps
sysfs-bus-event_source-devices-dfl_fme
sysfs-bus-event_source-devices-dsa
sysfs-bus-event_source-devices-events
sysfs-bus-event_source-devices-format
sysfs-bus-event_source-devices-hv_24x7
sysfs-bus-event_source-devices-hv_gpci
sysfs-bus-event_source-devices-iommu
sysfs-bus-event_source-devices-uncore
sysfs-bus-fcoe
sysfs-bus-fsi
sysfs-bus-fsi-devices-sbefifo
sysfs-bus-fsl-mc
sysfs-bus-hsi
sysfs-bus-i2c-devices-bq32k
sysfs-bus-i2c-devices-fsa9480
sysfs-bus-i2c-devices-hm6352
sysfs-bus-i2c-devices-lm3533
sysfs-bus-i2c-devices-pca954x
sysfs-bus-i3c
sysfs-bus-iio
sysfs-bus-iio-accel-adxl372
sysfs-bus-iio-accel-bmc150
sysfs-bus-iio-adc-ad4130
sysfs-bus-iio-adc-ad7192
sysfs-bus-iio-adc-ad7280a
sysfs-bus-iio-adc-envelope-detector
sysfs-bus-iio-adc-hi8435
sysfs-bus-iio-adc-max11410
sysfs-bus-iio-adc-max9611
sysfs-bus-iio-adc-mt6360
sysfs-bus-iio-adc-stm32
sysfs-bus-iio-bno055
sysfs-bus-iio-cdc-ad7746
sysfs-bus-iio-chemical-sgp40
sysfs-bus-iio-chemical-sunrise-co2
sysfs-bus-iio-chemical-vz89x
sysfs-bus-iio-cros-ec
sysfs-bus-iio-dac-ad5766
sysfs-bus-iio-dac-dpot-dac
sysfs-bus-iio-dac-ltc2688
sysfs-bus-iio-dfsdm-adc-stm32
sysfs-bus-iio-distance-srf08
sysfs-bus-iio-dma-buffer
sysfs-bus-iio-filter-admv8818
sysfs-bus-iio-frequency-ad9523
sysfs-bus-iio-frequency-adf4350
sysfs-bus-iio-frequency-adf4371
sysfs-bus-iio-frequency-admv1013
sysfs-bus-iio-frequency-admv1014
sysfs-bus-iio-gyro-bmg160
sysfs-bus-iio-health-afe440x
sysfs-bus-iio-humidity
sysfs-bus-iio-impedance-analyzer-ad5933
sysfs-bus-iio-ina2xx-adc
sysfs-bus-iio-isl29501
sysfs-bus-iio-light-isl29018
sysfs-bus-iio-light-lm3533-als
sysfs-bus-iio-light-si1133
sysfs-bus-iio-light-tsl2583
sysfs-bus-iio-light-tsl2772
sysfs-bus-iio-magnetometer-hmc5843
sysfs-bus-iio-meas-spec
sysfs-bus-iio-mpu6050
sysfs-bus-iio-potentiometer-mcp4531
sysfs-bus-iio-proximity
sysfs-bus-iio-proximity-as3935
sysfs-bus-iio-sps30
sysfs-bus-iio-sx9310
sysfs-bus-iio-sx9324
sysfs-bus-iio-thermocouple
sysfs-bus-iio-timer-stm32
sysfs-bus-iio-trigger-sysfs
sysfs-bus-iio-vf610
sysfs-bus-intel_th-devices-gth
sysfs-bus-intel_th-devices-msc
sysfs-bus-intel_th-devices-pti
sysfs-bus-intel_th-output-devices
sysfs-bus-mcb
sysfs-bus-mdio
sysfs-bus-media
sysfs-bus-mei
sysfs-bus-mmc
sysfs-bus-most
sysfs-bus-moxtet-devices
sysfs-bus-nfit
sysfs-bus-nvdimm
sysfs-bus-optee-devices
sysfs-bus-papr-pmem
sysfs-bus-pci
sysfs-bus-pci-devices-aer_stats
sysfs-bus-pci-devices-catpt
sysfs-bus-pci-devices-cciss
sysfs-bus-pci-devices-pvpanic
sysfs-bus-pci-drivers-ehci_hcd
sysfs-bus-pci-drivers-janz-cmodio
sysfs-bus-pci-drivers-xhci_hcd
sysfs-bus-peci
sysfs-bus-platform
sysfs-bus-platform-devices-ampere-smpro
sysfs-bus-platform-devices-occ-hwmon
sysfs-bus-platform-onboard-usb-hub
sysfs-bus-rapidio
sysfs-bus-rbd
sysfs-bus-rpmsg
sysfs-bus-siox
sysfs-bus-soundwire-master
sysfs-bus-soundwire-slave
sysfs-bus-spi-devices-spi-nor
sysfs-bus-surface_aggregator-tabletsw
sysfs-bus-thunderbolt
sysfs-bus-typec
sysfs-bus-usb
sysfs-bus-usb-devices-usbsevseg
sysfs-bus-usb-lvstest
sysfs-bus-vdpa
sysfs-bus-vfio-mdev
sysfs-bus-vmbus
sysfs-c2port
sysfs-cfq-target-latency
sysfs-class
sysfs-class-backlight
sysfs-class-backlight-driver-lm3533
sysfs-class-backlight-lm3639
sysfs-class-bdi
sysfs-class-bsr
sysfs-class-chromeos
sysfs-class-chromeos-driver-cros-ec-lightbar
sysfs-class-chromeos-driver-cros-ec-vbc
sysfs-class-cxl
sysfs-class-devfreq
sysfs-class-devfreq-event
sysfs-class-devlink
sysfs-class-extcon
sysfs-class-fc
sysfs-class-fc_host
sysfs-class-fc_remote_ports
sysfs-class-firmware
sysfs-class-firmware-attributes
sysfs-class-fpga-bridge
sysfs-class-fpga-manager
sysfs-class-fpga-region
sysfs-class-gnss
sysfs-class-hwmon
sysfs-class-intel_pmt
sysfs-class-iommu
sysfs-class-iommu-amd-iommu
sysfs-class-iommu-intel-iommu
sysfs-class-lcd
sysfs-class-led
sysfs-class-led-driver-aw200xx
sysfs-class-led-driver-lm3533
sysfs-class-led-driver-turris-omnia
sysfs-class-led-flash
sysfs-class-led-multicolor
sysfs-class-led-trigger-netdev
sysfs-class-led-trigger-oneshot
sysfs-class-led-trigger-pattern
sysfs-class-led-trigger-tty
sysfs-class-led-trigger-usbport
sysfs-class-leds-gt683r
sysfs-class-mei
sysfs-class-mic
sysfs-class-mtd
sysfs-class-mux
sysfs-class-net
sysfs-class-net-cdc_ncm
sysfs-class-net-dsa
sysfs-class-net-grcan
sysfs-class-net-janz-ican3
sysfs-class-net-peak_usb
sysfs-class-net-phydev
sysfs-class-net-qmi
sysfs-class-net-queues
sysfs-class-net-statistics
sysfs-class-ocxl
sysfs-class-pktcdvd
sysfs-class-power
sysfs-class-power-ltc4162l
sysfs-class-power-mp2629
sysfs-class-power-rt9467
sysfs-class-power-rt9471
sysfs-class-power-surface
sysfs-class-power-twl4030
sysfs-class-power-wilco
sysfs-class-powercap
sysfs-class-pwm
sysfs-class-rapidio
sysfs-class-rc
sysfs-class-rc-nuvoton
sysfs-class-regulator
sysfs-class-remoteproc
sysfs-class-rnbd-client
sysfs-class-rnbd-server
sysfs-class-rtc
sysfs-class-rtc-rtc0-device-rtc_calibration
sysfs-class-rtrs-client
sysfs-class-rtrs-server
sysfs-class-scsi_host
sysfs-class-scsi_tape
sysfs-class-spi-eeprom
sysfs-class-stm
sysfs-class-stm_source
sysfs-class-switchtec
sysfs-class-thermal
sysfs-class-typec
sysfs-class-usb_power_delivery
sysfs-class-usb_role
sysfs-class-vduse
sysfs-class-wakeup
sysfs-class-watchdog
sysfs-class-zram
sysfs-dev
sysfs-devices
sysfs-devices-consumer
sysfs-devices-coredump
sysfs-devices-edac
sysfs-devices-firmware_node
sysfs-devices-hisi_ptt
sysfs-devices-lpss_ltr
sysfs-devices-mapping
sysfs-devices-memory
sysfs-devices-mmc
sysfs-devices-online
sysfs-devices-physical_location
sysfs-devices-platform-ACPI-TAD
sysfs-devices-platform-_UDC_-gadget
sysfs-devices-platform-docg3
sysfs-devices-platform-dock
sysfs-devices-platform-ipmi
sysfs-devices-platform-kunpeng_hccs
sysfs-devices-platform-sh_mobile_lcdc_fb
sysfs-devices-platform-soc-ipa
sysfs-devices-platform-stratix10-rsu
sysfs-devices-platform-trackpoint
sysfs-devices-power
sysfs-devices-power_resources_D0
sysfs-devices-power_resources_D1
sysfs-devices-power_resources_D2
sysfs-devices-power_resources_D3hot
sysfs-devices-power_resources_wakeup
sysfs-devices-power_state
sysfs-devices-real_power_state
sysfs-devices-removable
sysfs-devices-resource_in_use
sysfs-devices-soc
sysfs-devices-software_node
sysfs-devices-state_synced
sysfs-devices-sun
sysfs-devices-supplier
sysfs-devices-system-cpu
sysfs-devices-system-ibm-rtl
sysfs-devices-system-xen_cpu
sysfs-devices-vfio-dev
sysfs-devices-waiting_for_supplier
sysfs-devices-xenbus
sysfs-driver-altera-cvp
sysfs-driver-aspeed-uart-routing
sysfs-driver-bd9571mwv-regulator
sysfs-driver-ccp
sysfs-driver-chromeos-acpi
sysfs-driver-eud
sysfs-driver-fsi-master-gpio
sysfs-driver-ge-achc
sysfs-driver-genwqe
sysfs-driver-habanalabs
sysfs-driver-hid
sysfs-driver-hid-corsair
sysfs-driver-hid-lenovo
sysfs-driver-hid-logitech-hidpp
sysfs-driver-hid-logitech-lg4ff
sysfs-driver-hid-multitouch
sysfs-driver-hid-ntrig
sysfs-driver-hid-picolcd
sysfs-driver-hid-prodikeys
sysfs-driver-hid-roccat-kone
sysfs-driver-hid-srws1
sysfs-driver-hid-wiimote
sysfs-driver-input-axp-pek
sysfs-driver-input-cros-ec-keyb
sysfs-driver-input-exc3000
sysfs-driver-intc_sar
sysfs-driver-intel-i915-hwmon
sysfs-driver-intel-m10-bmc
sysfs-driver-intel-m10-bmc-sec-update
sysfs-driver-intel-rapid-start
sysfs-driver-intel_sdsi
sysfs-driver-jz4780-efuse
sysfs-driver-pciback
sysfs-driver-ppi
sysfs-driver-qat
sysfs-driver-samsung-laptop
sysfs-driver-st
sysfs-driver-tegra-fuse
sysfs-driver-toshiba_acpi
sysfs-driver-toshiba_haps
sysfs-driver-typec-displayport
sysfs-driver-uacce
sysfs-driver-ucsi-ccg
sysfs-driver-ufs
sysfs-driver-w1_ds28e17
sysfs-driver-w1_therm
sysfs-driver-wacom
sysfs-driver-xdata
sysfs-driver-xen-blkback
sysfs-driver-xen-blkfront
sysfs-driver-xilinx-tmr-manager
sysfs-driver-zynqmp-fpga
sysfs-firmware-acpi
sysfs-firmware-dmi-entries
sysfs-firmware-dmi-tables
sysfs-firmware-efi
sysfs-firmware-efi-esrt
sysfs-firmware-efi-runtime-map
sysfs-firmware-gsmi
sysfs-firmware-lefi-boardinfo
sysfs-firmware-log
sysfs-firmware-memmap
sysfs-firmware-ofw
sysfs-firmware-opal-powercap
sysfs-firmware-opal-psr
sysfs-firmware-opal-sensor-groups
sysfs-firmware-papr-energy-scale-info
sysfs-firmware-qemu_fw_cfg
sysfs-firmware-sgi_uv
sysfs-firmware-turris-mox-rwtm
sysfs-fs-erofs
sysfs-fs-ext4
sysfs-fs-f2fs
sysfs-fs-nilfs2
sysfs-fs-ubifs
sysfs-fs-xfs
sysfs-hypervisor-xen
sysfs-ibft
sysfs-kernel-address_bits
sysfs-kernel-boot_params
sysfs-kernel-btf
sysfs-kernel-cpu_byteorder
sysfs-kernel-dmabuf-buffers
sysfs-kernel-fadump
sysfs-kernel-fscaps
sysfs-kernel-iommu_groups
sysfs-kernel-irq
sysfs-kernel-livepatch
sysfs-kernel-mm
sysfs-kernel-mm-cma
sysfs-kernel-mm-damon
sysfs-kernel-mm-hugepages
sysfs-kernel-mm-ksm
sysfs-kernel-mm-memory-tiers
sysfs-kernel-mm-numa
sysfs-kernel-mm-swap
sysfs-kernel-oops_count
sysfs-kernel-reboot
sysfs-kernel-slab
sysfs-kernel-vmcoreinfo
sysfs-kernel-warn_count
sysfs-mce
sysfs-memory-page-offline
sysfs-module
sysfs-ocfs2
sysfs-platform-asus-laptop
sysfs-platform-asus-wmi
sysfs-platform-at91
sysfs-platform-brcmstb-gisb-arb
sysfs-platform-brcmstb-memc
sysfs-platform-chipidea-usb-otg
sysfs-platform-chipidea-usb2
sysfs-platform-dell-laptop
sysfs-platform-dell-privacy-wmi
sysfs-platform-dell-smbios
sysfs-platform-dell-wmi-ddv
sysfs-platform-dfl-fme
sysfs-platform-dfl-port
sysfs-platform-dptf
sysfs-platform-eeepc-laptop
sysfs-platform-hidma
sysfs-platform-hidma-mgmt
sysfs-platform-i2c-demux-pinctrl
sysfs-platform-ideapad-laptop
sysfs-platform-intel-ifs
sysfs-platform-intel-pmc
sysfs-platform-intel-wmi-sbl-fw-update
sysfs-platform-intel-wmi-thunderbolt
sysfs-platform-kim
sysfs-platform-lg-laptop
sysfs-platform-mellanox-bootctl
sysfs-platform-msi-laptop
sysfs-platform-phy-rcar-gen3-usb2
sysfs-platform-power-on-reason
sysfs-platform-renesas_usb3
sysfs-platform-sst-atom
sysfs-platform-tahvo-usb
sysfs-platform-ts5500
sysfs-platform-twl4030-usb
sysfs-platform-usbip-vudc
sysfs-platform-wilco-ec
sysfs-platform_profile
sysfs-power
sysfs-pps
sysfs-profiling
sysfs-ptp
sysfs-secvar
sysfs-timecard
sysfs-tty
sysfs-uevent
usb-charger-uevent
usb-uevent
README
PCI
RCU
accel
accounting
admin-guide
arch
block
bpf
cdrom
core-api
cpu-freq
crypto
dev-tools
devicetree
doc-guide
driver-api
fault-injection
fb
features
filesystems
firmware-guide
firmware_class
fpga
gpu
hid
hwmon
i2c
iio
images
infiniband
input
isdn
kbuild
kernel-hacking
leds
litmus-tests
livepatch
locking
maintainer
mhi
misc-devices
mm
netlabel
netlink
networking
nvdimm
nvme
pcmcia
peci
power
powerpc
process
riscv
rust
scheduler
scsi
security
sound
sphinx-static
sphinx
spi
staging
target
timers
tools
trace
translations
usb
userspace-api
virt
w1
watchdog
wmi
.gitignore
Changes
CodingStyle
Kconfig
Makefile
SubmittingPatches
atomic_bitops.txt
atomic_t.txt
conf.py
docutils.conf
dontdiff
index.rst
memory-barriers.txt
subsystem-apis.rst
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
io_uring
ipc
kernel
lib
mm
net
rust
samples
scripts
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Breadcrumbs
linux
/
Documentation
/
ABI
/
testing
/
sysfs-bus-counter
Copy path
Blame
Blame
Latest commit
History
History
468 lines (399 loc) · 16.9 KB
Breadcrumbs
linux
/
Documentation
/
ABI
/
testing
/
sysfs-bus-counter
Top
File metadata and controls
Code
Blame
468 lines (399 loc) · 16.9 KB
Raw
What: /sys/bus/counter/devices/counterX/cascade_counts_enable KernelVersion: 6.4 Contact: linux-iio@vger.kernel.org Description: Indicates the cascading of Counts on Counter X. Valid attribute values are boolean. What: /sys/bus/counter/devices/counterX/external_input_phase_clock_select KernelVersion: 6.4 Contact: linux-iio@vger.kernel.org Description: Selects the external clock pin for phase counting mode of Counter X. MTCLKA-MTCLKB: MTCLKA and MTCLKB pins are selected for the external phase clock. MTCLKC-MTCLKD: MTCLKC and MTCLKD pins are selected for the external phase clock. What: /sys/bus/counter/devices/counterX/external_input_phase_clock_select_available KernelVersion: 6.4 Contact: linux-iio@vger.kernel.org Description: Discrete set of available values for the respective device configuration are listed in this file. What: /sys/bus/counter/devices/counterX/countY/count KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Count data of Count Y represented as a string. What: /sys/bus/counter/devices/counterX/countY/capture KernelVersion: 6.1 Contact: linux-iio@vger.kernel.org Description: Historical capture of the Count Y count data. What: /sys/bus/counter/devices/counterX/countY/ceiling KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Count value ceiling for Count Y. This is the upper limit for the respective counter. What: /sys/bus/counter/devices/counterX/countY/floor KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Count value floor for Count Y. This is the lower limit for the respective counter. What: /sys/bus/counter/devices/counterX/countY/count_mode KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Count mode for channel Y. The ceiling and floor values for Count Y are used by the count mode where required. The following count modes are available: normal: Counting is continuous in either direction. range limit: An upper or lower limit is set, mimicking limit switches in the mechanical counterpart. The upper limit is set to the Count Y ceiling value, while the lower limit is set to the Count Y floor value. The counter freezes at count = ceiling when counting up, and at count = floor when counting down. At either of these limits, the counting is resumed only when the count direction is reversed. non-recycle: The counter is disabled whenever a counter overflow or underflow takes place. The counter is re-enabled when a new count value is loaded to the counter via a preset operation or direct write. modulo-n: A count value boundary is set between the Count Y floor value and the Count Y ceiling value. The counter is reset to the Count Y floor value at count = ceiling when counting up, while the counter is set to the Count Y ceiling value at count = floor when counting down; the counter does not freeze at the boundary points, but counts continuously throughout. interrupt on terminal count: The output signal is initially low, and will remain low until the counter reaches zero. The output signal then goes high and remains high until a new preset value is set. hardware retriggerable one-shot: The output signal is initially high. The output signal will go low by a trigger input signal, and will remain low until the counter reaches zero. The output will then go high and remain high until the next trigger. A trigger results in loading the counter to the preset value and setting the output signal low, thus starting the one-shot pulse. rate generator: The output signal is initially high. When the counter has decremented to 1, the output signal goes low for one clock pulse. The output signal then goes high again, the counter is reloaded to the preset value, and the process repeats in a periodic manner as such. square wave mode: The output signal is initially high. If the initial count is even, the counter is decremented by two on succeeding clock pulses. When the count expires, the output signal changes value and the counter is reloaded to the preset value. The process repeats in periodic manner as such. If the initial count is odd, the initial count minus one (an even number) is loaded and then is decremented by two on succeeding clock pulses. One clock pulse after the count expires, the output signal goes low and the counter is reloaded to the preset value minus one. Succeeding clock pulses decrement the count by two. When the count expires, the output goes high again and the counter is reloaded to the preset value minus one. The process repeats in a periodic manner as such. software triggered strobe: The output signal is initially high. When the count expires, the output will go low for one clock pulse and then go high again. The counting sequence is "triggered" by setting the preset value. hardware triggered strobe: The output signal is initially high. Counting is started by a trigger input signal. When the count expires, the output signal will go low for one clock pulse and then go high again. A trigger results in loading the counter to the preset value. What: /sys/bus/counter/devices/counterX/countY/count_mode_available What: /sys/bus/counter/devices/counterX/countY/error_noise_available What: /sys/bus/counter/devices/counterX/countY/function_available What: /sys/bus/counter/devices/counterX/countY/prescaler_available What: /sys/bus/counter/devices/counterX/countY/signalZ_action_available KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Discrete set of available values for the respective Count Y configuration are listed in this file. Values are delimited by newline characters. What: /sys/bus/counter/devices/counterX/countY/direction KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates the count direction of Count Y. Two count directions are available: forward and backward. Some counter devices are able to determine the direction of their counting. For example, quadrature encoding counters can determine the direction of movement by evaluating the leading phase of the respective A and B quadrature encoding signals. This attribute exposes such count directions. What: /sys/bus/counter/devices/counterX/countY/enable KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Whether channel Y counter is enabled. Valid attribute values are boolean. This attribute is intended to serve as a pause/unpause mechanism for Count Y. Suppose a counter device is used to count the total movement of a conveyor belt: this attribute allows an operator to temporarily pause the counter, service the conveyor belt, and then finally unpause the counter to continue where it had left off. What: /sys/bus/counter/devices/counterX/countY/error_noise KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates whether excessive noise is present at the channel Y counter inputs. What: /sys/bus/counter/devices/counterX/countY/function KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Count function mode of Count Y; count function evaluation is triggered by conditions specified by the Count Y signalZ_action attributes. The following count functions are available: increase: Accumulated count is incremented. decrease: Accumulated count is decremented. pulse-direction: Rising edges on signal A updates the respective count. The input level of signal B determines direction. quadrature x1 a: If direction is forward, rising edges on quadrature pair signal A updates the respective count; if the direction is backward, falling edges on quadrature pair signal A updates the respective count. Quadrature encoding determines the direction. quadrature x1 b: If direction is forward, rising edges on quadrature pair signal B updates the respective count; if the direction is backward, falling edges on quadrature pair signal B updates the respective count. Quadrature encoding determines the direction. quadrature x2 a: Any state transition on quadrature pair signal A updates the respective count. Quadrature encoding determines the direction. quadrature x2 b: Any state transition on quadrature pair signal B updates the respective count. Quadrature encoding determines the direction. quadrature x4: Any state transition on either quadrature pair signals updates the respective count. Quadrature encoding determines the direction. What: /sys/bus/counter/devices/counterX/countY/name KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates the device-specific name of Count Y. If possible, this should match the name of the respective channel as it appears in the device datasheet. What: /sys/bus/counter/devices/counterX/countY/prescaler KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Configure the prescaler value associated with Count Y. On the FlexTimer, the counter clock source passes through a prescaler (i.e. a counter). This acts like a clock divider. What: /sys/bus/counter/devices/counterX/countY/preset KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: If the counter device supports preset registers -- registers used to load counter channels to a set count upon device-defined preset operation trigger events -- the preset count for channel Y is provided by this attribute. What: /sys/bus/counter/devices/counterX/countY/preset_enable KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Whether channel Y counter preset operation is enabled. Valid attribute values are boolean. What: /sys/bus/counter/devices/counterX/countY/signalZ_action KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Action mode of Count Y for Signal Z. This attribute indicates the condition of Signal Z that triggers the count function evaluation for Count Y. The following action modes are available: none: Signal does not trigger the count function. In Pulse-Direction count function mode, this Signal is evaluated as Direction. rising edge: Low state transitions to high state. falling edge: High state transitions to low state. both edges: Any state transition. What: /sys/bus/counter/devices/counterX/countY/num_overflows KernelVersion: 6.1 Contact: linux-iio@vger.kernel.org Description: This attribute indicates the number of overflows of count Y. What: /sys/bus/counter/devices/counterX/cascade_counts_enable_component_id What: /sys/bus/counter/devices/counterX/external_input_phase_clock_select_component_id What: /sys/bus/counter/devices/counterX/countY/capture_component_id What: /sys/bus/counter/devices/counterX/countY/ceiling_component_id What: /sys/bus/counter/devices/counterX/countY/floor_component_id What: /sys/bus/counter/devices/counterX/countY/count_mode_component_id What: /sys/bus/counter/devices/counterX/countY/direction_component_id What: /sys/bus/counter/devices/counterX/countY/enable_component_id What: /sys/bus/counter/devices/counterX/countY/error_noise_component_id What: /sys/bus/counter/devices/counterX/countY/prescaler_component_id What: /sys/bus/counter/devices/counterX/countY/preset_component_id What: /sys/bus/counter/devices/counterX/countY/preset_enable_component_id What: /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id What: /sys/bus/counter/devices/counterX/countY/num_overflows_component_id What: /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id What: /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id What: /sys/bus/counter/devices/counterX/signalY/polarity_component_id What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id What: /sys/bus/counter/devices/counterX/signalY/frequency_component_id KernelVersion: 5.16 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates the component ID of the respective extension or Synapse. What: /sys/bus/counter/devices/counterX/countY/spike_filter_ns KernelVersion: 5.14 Contact: linux-iio@vger.kernel.org Description: If the counter device supports programmable spike filter this attribute indicates the value in nanoseconds where noise pulses shorter or equal to configured value are ignored. Value 0 means filter is disabled. What: /sys/bus/counter/devices/counterX/events_queue_size KernelVersion: 5.16 Contact: linux-iio@vger.kernel.org Description: Size of the Counter events queue in number of struct counter_event data structures. The number of elements will be rounded-up to a power of 2. What: /sys/bus/counter/devices/counterX/name KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates the device-specific name of the Counter. This should match the name of the device as it appears in its respective datasheet. What: /sys/bus/counter/devices/counterX/num_counts KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates the total number of Counts belonging to the Counter. What: /sys/bus/counter/devices/counterX/num_signals KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates the total number of Signals belonging to the Counter. What: /sys/bus/counter/devices/counterX/signalY/cable_fault KernelVersion: 5.7 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates whether a differential encoder cable fault (not connected or loose wires) is detected for the respective channel of Signal Y. Valid attribute values are boolean. Detection must first be enabled via the corresponding cable_fault_enable attribute. What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable KernelVersion: 5.7 Contact: linux-iio@vger.kernel.org Description: Whether detection of differential encoder cable faults for the respective channel of Signal Y is enabled. Valid attribute values are boolean. What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler KernelVersion: 5.7 Contact: linux-iio@vger.kernel.org Description: Filter clock factor for input Signal Y. This prescaler value affects the inputs of both quadrature pair signals. What: /sys/bus/counter/devices/counterX/signalY/index_polarity KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Active level of index input Signal Y; irrelevant in non-synchronous load mode. What: /sys/bus/counter/devices/counterX/signalY/index_polarity_available What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_available KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Discrete set of available values for the respective Signal Y configuration are listed in this file. What: /sys/bus/counter/devices/counterX/signalY/polarity KernelVersion: 6.1 Contact: linux-iio@vger.kernel.org Description: Active level of Signal Y. The following polarity values are available: positive: Signal high state considered active level (rising edge). negative: Signal low state considered active level (falling edge). What: /sys/bus/counter/devices/counterX/signalY/name KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates the device-specific name of Signal Y. If possible, this should match the name of the respective signal as it appears in the device datasheet. What: /sys/bus/counter/devices/counterX/signalY/signal KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Signal level state of Signal Y. The following signal level states are available: low: Low level state. high: High level state. What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode KernelVersion: 5.2 Contact: linux-iio@vger.kernel.org Description: Configure the counter associated with Signal Y for non-synchronous or synchronous load mode. Synchronous load mode cannot be selected in non-quadrature (Pulse-Direction) clock mode. non-synchronous: A logic low level is the active level at this index input. The index function (as enabled via preset_enable) is performed directly on the active level of the index input. synchronous: Intended for interfacing with encoder Index output in quadrature clock mode. The active level is configured via index_polarity. The index function (as enabled via preset_enable) is performed synchronously with the quadrature clock on the active level of the index input. What: /sys/bus/counter/devices/counterX/signalY/frequency KernelVersion: 6.1 Contact: linux-iio@vger.kernel.org Description: Read-only attribute that indicates the signal Y frequency, in Hz.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
You can’t perform that action at this time.