Trait MonoTimerExt

Source
pub trait MonoTimerExt: Sized {
    // Required method
    fn monotonic<const FREQ: u32>(
        self,
        clocks: &Clocks,
    ) -> MonoTimer<Self, FREQ>;

    // Provided method
    fn monotonic_us(self, clocks: &Clocks) -> MonoTimer<Self, 1_000_000> { ... }
}

Required Methods§

Source

fn monotonic<const FREQ: u32>(self, clocks: &Clocks) -> MonoTimer<Self, FREQ>

Provided Methods§

Source

fn monotonic_us(self, clocks: &Clocks) -> MonoTimer<Self, 1_000_000>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<TIM> MonoTimerExt for TIM
where Self: Instance + General<Width = u32> + WithPwm,