File: sysfs-bus-iio-lptimer-stm32

package info (click to toggle)
linux 5.10.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,182,916 kB
  • sloc: ansic: 19,488,074; asm: 263,676; sh: 73,873; makefile: 44,685; perl: 34,640; python: 32,386; cpp: 6,070; yacc: 4,755; lex: 2,742; awk: 1,214; ruby: 25; sed: 5
file content (62 lines) | stat: -rw-r--r-- 2,314 bytes parent folder | download | duplicates (3)
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
What:		/sys/bus/iio/devices/iio:deviceX/in_count0_preset
KernelVersion:	4.13
Contact:	fabrice.gasnier@st.com
Description:
		Reading returns the current preset value. Writing sets the
		preset value. Encoder counts continuously from 0 to preset
		value, depending on direction (up/down).

What:		/sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
KernelVersion:	4.13
Contact:	fabrice.gasnier@st.com
Description:
		Reading returns the list possible quadrature modes.

What:		/sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
KernelVersion:	4.13
Contact:	fabrice.gasnier@st.com
Description:
		Configure the device counter quadrature modes:

		- non-quadrature:
			Encoder IN1 input servers as the count input (up
			direction).

		- quadrature:
			Encoder IN1 and IN2 inputs are mixed to get direction
			and count.

What:		/sys/bus/iio/devices/iio:deviceX/in_count_polarity_available
KernelVersion:	4.13
Contact:	fabrice.gasnier@st.com
Description:
		Reading returns the list possible active edges.

What:		/sys/bus/iio/devices/iio:deviceX/in_count0_polarity
KernelVersion:	4.13
Contact:	fabrice.gasnier@st.com
Description:
		Configure the device encoder/counter active edge:

		- rising-edge
		- falling-edge
		- both-edges

		In non-quadrature mode, device counts up on active edge.

		In quadrature mode, encoder counting scenarios are as follows:

		+---------+----------+--------------------+--------------------+
		| Active  | Level on |      IN1 signal    |     IN2 signal     |
		| edge    | opposite +----------+---------+----------+---------+
		|         | signal   |  Rising  | Falling |  Rising  | Falling |
		+---------+----------+----------+---------+----------+---------+
		| Rising  | High ->  |   Down   |    -    |   Up     |    -    |
		| edge    | Low  ->  |   Up     |    -    |   Down   |    -    |
		+---------+----------+----------+---------+----------+---------+
		| Falling | High ->  |    -     |   Up    |    -     |   Down  |
		| edge    | Low  ->  |    -     |   Down  |    -     |   Up    |
		+---------+----------+----------+---------+----------+---------+
		| Both    | High ->  |   Down   |   Up    |   Up     |   Down  |
		| edges   | Low  ->  |   Up     |   Down  |   Down   |   Up    |
		+---------+----------+----------+---------+----------+---------+