embassy icon indicating copy to clipboard operation
embassy copied to clipboard

STM32: Option to set auto-reload for `Qei`

Open FeldrinH opened this issue 5 months ago • 1 comments

I am using embassy_stm32::timer::qei::Qei to read a quadrature encoder. I would like to set the auto-reload value to match the number of counts per revolution for my encoder, so I get automatic wraparound for every full rotation, but there seems to be no option for this and the auto-reload value is hard-coded to u16::MAX. Would it be possible to add an option to configure the auto-reload for Qei, maybe in the Config struct?

FeldrinH avatar Dec 08 '25 23:12 FeldrinH

prs welcome.

xoviat avatar Dec 10 '25 01:12 xoviat