18c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/triggerX/trigger_polarity 28c2ecf20Sopenharmony_ciKernelVersion: 4.11 38c2ecf20Sopenharmony_ciContact: fabrice.gasnier@st.com 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci The STM32 ADC can be configured to use external trigger sources 68c2ecf20Sopenharmony_ci (e.g. timers, pwm or exti gpio). Then, it can be tuned to start 78c2ecf20Sopenharmony_ci conversions on external trigger by either: 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci - "rising-edge" 108c2ecf20Sopenharmony_ci - "falling-edge" 118c2ecf20Sopenharmony_ci - "both-edges". 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci Reading returns current trigger polarity. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci Writing value before enabling conversions sets trigger polarity. 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/triggerX/trigger_polarity_available 188c2ecf20Sopenharmony_ciKernelVersion: 4.11 198c2ecf20Sopenharmony_ciContact: fabrice.gasnier@st.com 208c2ecf20Sopenharmony_ciDescription: 218c2ecf20Sopenharmony_ci List all available trigger_polarity settings. 22