driver_interface::timer

Trait Driver

Source
pub trait Driver: DriverGeneric {
    // Required methods
    fn set_interval(&mut self, ticks: u64);
    fn current_ticks(&self) -> u64;
    fn tick_hz(&self) -> u64;
    fn set_enable(&mut self, enable: bool);
    fn set_irq_enable(&mut self, enable: bool);
    fn read_irq_status(&self) -> bool;
    fn irq_num(&self) -> u64;
}

Required Methods§

Source

fn set_interval(&mut self, ticks: u64)

Source

fn current_ticks(&self) -> u64

Source

fn tick_hz(&self) -> u64

Source

fn set_enable(&mut self, enable: bool)

Source

fn set_irq_enable(&mut self, enable: bool)

Source

fn read_irq_status(&self) -> bool

Source

fn irq_num(&self) -> u64

Implementors§