Re: [PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-25 Thread Michael Welling
On Sat, Mar 25, 2017 at 06:26:05PM +, Jonathan Cameron wrote: > On 24/03/17 14:00, Benjamin Gaignard wrote: > > 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. > > > > T

Re: [PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-25 Thread Michael Welling
On Sat, Mar 25, 2017 at 06:26:05PM +, Jonathan Cameron wrote: > On 24/03/17 14:00, Benjamin Gaignard wrote: > > 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. > > > > T

Re: [PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-25 Thread Jonathan Cameron
On 24/03/17 14:00, Benjamin Gaignard wrote: > 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 quadrat

[PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-24 Thread Benjamin Gaignard
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