Enum stm32l0xx_hal::encoder::Mode
source · [−]pub enum Mode {
CountTi2,
CountTi1,
Qei,
}
Expand description
Encoder mode. See TIMx_SMCR.SMS
item in datasheet.
Variants
CountTi2
Encoder mode 1 - Counter counts up/down on TI2FP1 edge depending on TI1FP2 level.
CountTi1
Encoder mode 2 - Counter counts up/down on TI1FP2 edge depending on TI2FP1 level.
Qei
Encoder mode 3 (AKA quadrature mode) - Counter counts up/down on both TI1FP1 and TI2FP2 edges depending on the level of the other input.
Auto Trait Implementations
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more