pub struct Encoder<T, PINS> { /* private fields */ }
Implementations§
Source§impl<PINS> Encoder<TIM2, PINS>
impl<PINS> Encoder<TIM2, PINS>
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.
Source§impl<PINS> Encoder<TIM21, PINS>
impl<PINS> Encoder<TIM21, PINS>
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> Freeze for Encoder<T, PINS>where
T: Freeze,
impl<T, PINS> RefUnwindSafe for Encoder<T, PINS>where
T: RefUnwindSafe,
PINS: RefUnwindSafe,
impl<T, PINS> Send for Encoder<T, PINS>
impl<T, PINS> Sync for Encoder<T, PINS>
impl<T, PINS> Unpin for Encoder<T, PINS>
impl<T, PINS> UnwindSafe for Encoder<T, PINS>where
T: UnwindSafe,
PINS: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more