pub struct Timer<TIMG: TimerGroup, INST: TimerInst> { /* fields omitted */ }
Expand description
Hardware timers
The timers can be programmed in a high level way via
start, wait,
cancel.
Lower level access is provided by the other functions.
impl<TIMG: TimerGroup> Timer<TIMG, Timer0>
Create new timer resources
This function will create 2 timers and 1 watchdog for a timer group.
It uses the clock_control_config for obtaining the clock configuration.
Note: time to clock tick conversions are done with the clock frequency when the
start function is called. The clock frequency is not locked.
Releases the timer resources. Requires to release all timers and watchdog belonging to
the same group at once.
Releases the timer resources. Requires to release all timers and watchdog belonging to
the same group at once.
impl<TIMG: TimerGroup, INST: TimerInst> Send for Timer<TIMG, INST>
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.