Trait TimerHW

Source
pub trait TimerHW<S: TimerSpeed> {
    // Required methods
    fn freq_hw(&self) -> Option<Rate>;
    fn configure_hw(&self, divisor: u32);
    fn update_hw(&self);
}
Available on crate feature unstable only.
Expand description

Interface for HW configuration of timer

Required Methods§

Source

fn freq_hw(&self) -> Option<Rate>

Get the current source timer frequency from the HW

Source

fn configure_hw(&self, divisor: u32)

Configure the HW for the timer

Source

fn update_hw(&self)

Update the timer in HW

Implementors§

Source§

impl TimerHW<LowSpeed> for Timer<'_, LowSpeed>

Timer HW implementation for LowSpeed timers