summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>2017-04-04 09:47:51 +0200
committerJonathan Cameron <jic23@kernel.org>2017-04-14 15:08:31 +0100
commit4adec7da0536a345d901d7ba55b6c93a14eeeaff (patch)
treef8eb05106b3e15c05e3241569aceebacf629bedc /lib
parent510c01063085b5dc7788d9953f9bf58e16b631e8 (diff)
downloadlinux-4adec7da0536a345d901d7ba55b6c93a14eeeaff.tar.bz2
iio: stm32 trigger: Add quadrature encoder device
One of the features of STM32 trigger hardware block is a quadrature encoder that can counts up/down depending of the levels and edges of the selected external pins. This patch allow to read/write the counter, get it direction, set/get quadrature modes and get scale factor. When counting up preset value is the limit of the counter. When counting down the counter start from preset value down to 0. This preset value could be set/get by using /sys/bus/iio/devices/iio:deviceX/in_count0_preset attribute. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Reviewed-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions