pub struct CounterHz<TIM>(_);
Expand description
Hardware timers
Implementations
Methods from Deref<Target = Timer<T>>
pub fn configure(&mut self, clocks: &Clocks)
pub fn configure_external(&mut self, clocks: &Clocks)
pub fn configure(&mut self, clocks: &Clocks)
sourcepub fn listen(&mut self, event: Event)
pub fn listen(&mut self, event: Event)
Starts listening for an event
Note, you will also have to enable the TIM2 interrupt in the NVIC to start receiving events.
sourcepub fn clear_interrupt(&mut self, event: Event)
pub fn clear_interrupt(&mut self, event: Event)
Clears interrupt associated with event
.
If the interrupt is not cleared, it will immediately retrigger after the ISR has finished.
pub fn set_master_mode(&mut self, mode: TIM::Mms)
Trait Implementations
impl<TIM> Periodic for CounterHz<TIM>
Auto Trait Implementations
impl<TIM> RefUnwindSafe for CounterHz<TIM> where
TIM: RefUnwindSafe,
impl<TIM> Send for CounterHz<TIM> where
TIM: Send,
impl<TIM> Sync for CounterHz<TIM> where
TIM: Sync,
impl<TIM> Unpin for CounterHz<TIM> where
TIM: Unpin,
impl<TIM> UnwindSafe for CounterHz<TIM> where
TIM: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more