pub struct Counter<TIM, const FREQ: u32> { /* fields omitted */ }
Expand description
Timer that waits given time
impl<TIM, const FREQ: u32> Counter<TIM, FREQ> where
TIM: General,
Starts listening for an event
Note, you will also have to enable the TIM2 interrupt in the NVIC to start
receiving events.
Clears interrupt associated with event
.
If the interrupt is not cleared, it will immediately retrigger after
the ISR has finished.
Stops listening for an event
Releases the TIM peripheral
Error returned when a countdown can’t be canceled.
The unit of time used by this timer
Non-blockingly “waits” until the count down finishes Read more
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.