pub struct Counter<TIM, const FREQ: u32>(/* private fields */);
Expand description
Periodic non-blocking timer that implements embedded_hal_02::timer::CountDown
Implementations§
Methods from Deref<Target = FTimer<T, FREQ>>§
pub fn set_master_mode(&mut self, mode: TIM::Mms)
Trait Implementations§
source§impl<TIM: Instance, const FREQ: u32> Timer<FREQ> for Counter<TIM, FREQ>
impl<TIM: Instance, const FREQ: u32> Timer<FREQ> for Counter<TIM, FREQ>
source§fn now(&mut self) -> TimerInstantU32<FREQ>
fn now(&mut self) -> TimerInstantU32<FREQ>
Return current time
Instant
source§fn start(&mut self, duration: TimerDurationU32<FREQ>) -> Result<(), Self::Error>
fn start(&mut self, duration: TimerDurationU32<FREQ>) -> Result<(), Self::Error>
Start timer with a
duration
impl<TIM: Instance, const FREQ: u32> Periodic for Counter<TIM, FREQ>
Auto Trait Implementations§
impl<TIM, const FREQ: u32> Freeze for Counter<TIM, FREQ>where
TIM: Freeze,
impl<TIM, const FREQ: u32> RefUnwindSafe for Counter<TIM, FREQ>where
TIM: RefUnwindSafe,
impl<TIM, const FREQ: u32> Send for Counter<TIM, FREQ>where
TIM: Send,
impl<TIM, const FREQ: u32> Sync for Counter<TIM, FREQ>where
TIM: Sync,
impl<TIM, const FREQ: u32> Unpin for Counter<TIM, FREQ>where
TIM: Unpin,
impl<TIM, const FREQ: u32> UnwindSafe for Counter<TIM, FREQ>where
TIM: 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