Trait drone_cortexm::drv::timer::Timer [−][src]
Generic timer driver.
Associated Types
Loading content...Required methods
fn sleep(&mut self, duration: u32) -> TimerSleep<'_, Self::Stop>ⓘNotable traits for TimerSleep<'a, T>
impl<'a, T: TimerStop> Future for TimerSleep<'a, T> type Output = ();
[src]
Notable traits for TimerSleep<'a, T>
impl<'a, T: TimerStop> Future for TimerSleep<'a, T> type Output = ();
Returns a future that resolves when duration
time is elapsed.
fn interval(
&mut self,
duration: u32
) -> TimerInterval<'_, Self::Stop, Result<NonZeroUsize, TimerOverflow>>
[src]
&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>
[src]
&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: ThrToken> Timer for SysTick<I>
[src]
type Stop = Self
fn sleep(&mut self, duration: u32) -> TimerSleep<'_, Self>ⓘNotable traits for TimerSleep<'a, T>
impl<'a, T: TimerStop> Future for TimerSleep<'a, T> type Output = ();
[src]
Notable traits for TimerSleep<'a, T>
impl<'a, T: TimerStop> Future for TimerSleep<'a, T> type Output = ();
fn interval(
&mut self,
duration: u32
) -> TimerInterval<'_, Self, Result<NonZeroUsize, TimerOverflow>>
[src]
&mut self,
duration: u32
) -> TimerInterval<'_, Self, Result<NonZeroUsize, TimerOverflow>>
fn interval_skip(
&mut self,
duration: u32
) -> TimerInterval<'_, Self, NonZeroUsize>
[src]
&mut self,
duration: u32
) -> TimerInterval<'_, Self, NonZeroUsize>