Hi there,
I'm trying to use QeiManager like so:
use stm32f1xx_hal::{
[...]
qei::{Qei, QeiOptions},
[...]
};
// Wrapper around quadrature encoder interface so it becomes i64
// in stead of u32; The qei from the HAL is overloaded by this
// name and the QeiManager is added to the arsenal/not sure why
// naming is chosen like that.
use qei::QeiManager;
type SomePin = PB6>;
type OtherPin = PB7>;
type Qei4 = Qei;
type QeiManager4 = QeiManager;
Is this a reasonable approach?
It took me some time to understand that the two qei's refer to something different. Why is is not like "use qeimanager::QeiManager" or something else that avoids that confusion?