Struct stm32l0xx_hal::encoder::Encoder
source · [−]pub struct Encoder<T, PINS> { /* private fields */ }
Implementations
sourceimpl<PINS> Encoder<TIM2, PINS> where
PINS: Pins<TIM2>,
impl<PINS> Encoder<TIM2, PINS> where
PINS: Pins<TIM2>,
sourcepub fn set_arr(&mut self, arr: u16)
pub fn set_arr(&mut self, arr: u16)
Set ARR (Auto Reload Register) value.
ARR may only be set when timer is enabled.
sourcepub fn listen_all(&mut self)
pub fn listen_all(&mut self)
Listen for over/underflow interrupts, as well as IO triggers.
sourceimpl<PINS> Encoder<TIM21, PINS> where
PINS: Pins<TIM21>,
impl<PINS> Encoder<TIM21, PINS> where
PINS: Pins<TIM21>,
sourcepub fn set_arr(&mut self, arr: u16)
pub fn set_arr(&mut self, arr: u16)
Set ARR (Auto Reload Register) value.
ARR may only be set when timer is enabled.
sourcepub fn listen_all(&mut self)
pub fn listen_all(&mut self)
Listen for over/underflow interrupts, as well as IO triggers.
Auto Trait Implementations
impl<T, PINS> RefUnwindSafe for Encoder<T, PINS> where
PINS: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, PINS> Send for Encoder<T, PINS> where
PINS: Send,
T: Send,
impl<T, PINS> Sync for Encoder<T, PINS> where
PINS: Sync,
T: Sync,
impl<T, PINS> Unpin for Encoder<T, PINS> where
PINS: Unpin,
T: Unpin,
impl<T, PINS> UnwindSafe for Encoder<T, PINS> where
PINS: UnwindSafe,
T: UnwindSafe,
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