[−][src]Trait drone_cortex_m::drv::timer::Timer
Generic timer driver.
Associated Types
Loading content...Required methods
ⓘImportant traits for TimerSleep<'a, T>fn sleep(&mut self, duration: u32) -> TimerSleep<Self::Stop>
ⓘImportant traits for TimerSleep<'a, T>
Returns a future that resolves when duration
time is elapsed.
fn interval(
&mut self,
duration: u32
) -> TimerInterval<Self::Stop, Result<NonZeroUsize, TimerOverflow>>
&mut self,
duration: u32
) -> TimerInterval<Self::Stop, Result<NonZeroUsize, TimerOverflow>>
Returns a stream of pulses that are generated on each duration
interval. Fails on overflow.
fn interval_skip(
&mut self,
duration: u32
) -> TimerInterval<Self::Stop, NonZeroUsize>
&mut self,
duration: u32
) -> TimerInterval<Self::Stop, NonZeroUsize>
Returns a stream of pulses that are generated on each duration
interval. Overflows are ignored.
Implementors
impl<I: IntSysTick> Timer for SysTick<I>
[src]
type Stop = Self
ⓘImportant traits for TimerSleep<'a, T>fn sleep(&mut self, duration: u32) -> TimerSleep<Self>
[src]
ⓘImportant traits for TimerSleep<'a, T>
fn interval(
&mut self,
duration: u32
) -> TimerInterval<Self, Result<NonZeroUsize, TimerOverflow>>
[src]
&mut self,
duration: u32
) -> TimerInterval<Self, Result<NonZeroUsize, TimerOverflow>>