Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | What: /sys/bus/iio/devices/triggerX/trigger_polarity |
| 2 | KernelVersion: 4.11 |
| 3 | Contact: fabrice.gasnier@st.com |
| 4 | Description: |
| 5 | The STM32 ADC can be configured to use external trigger sources |
| 6 | (e.g. timers, pwm or exti gpio). Then, it can be tuned to start |
| 7 | conversions on external trigger by either: |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 8 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 9 | - "rising-edge" |
| 10 | - "falling-edge" |
| 11 | - "both-edges". |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 12 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 13 | Reading returns current trigger polarity. |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 14 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 15 | Writing value before enabling conversions sets trigger polarity. |
| 16 | |
| 17 | What: /sys/bus/iio/devices/triggerX/trigger_polarity_available |
| 18 | KernelVersion: 4.11 |
| 19 | Contact: fabrice.gasnier@st.com |
| 20 | Description: |
| 21 | List all available trigger_polarity settings. |