Skip to main content

TimerInterface

Trait TimerInterface 

Source
pub trait TimerInterface {
    // Required methods
    fn enable(&mut self);
    fn frequency(&self) -> u32;
    fn timer_value(&self) -> u32;
}
Expand description

Interface for accessing common timer registers.

Required Methods§

Source

fn enable(&mut self)

Enables timer

Source

fn frequency(&self) -> u32

Returns the frequency in Hz.

Source

fn timer_value(&self) -> u32

Returns the down-counter value.

Implementors§