embassy
embassy copied to clipboard
STM32: Option to set auto-reload for `Qei`
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?
prs welcome.