Trait mnemos_d1_core::timer::Timer

source ·
pub trait Timer: TimerSealed {
    // Provided methods
    fn set_source(&mut self, variant: TimerSource) { ... }
    fn set_prescaler(&mut self, variant: TimerPrescaler) { ... }
    fn set_mode(&mut self, variant: TimerMode) { ... }
    fn stop(&mut self) { ... }
    fn start_counter(&mut self, interval: u32) { ... }
    fn current_value(&self) -> u32 { ... }
    fn get_and_clear_interrupt(&self) -> bool { ... }
    fn set_interrupt_en(&self, enabled: bool) { ... }
}

Provided Methods§

source

fn set_source(&mut self, variant: TimerSource)

source

fn set_prescaler(&mut self, variant: TimerPrescaler)

source

fn set_mode(&mut self, variant: TimerMode)

source

fn stop(&mut self)

source

fn start_counter(&mut self, interval: u32)

source

fn current_value(&self) -> u32

source

fn get_and_clear_interrupt(&self) -> bool

source

fn set_interrupt_en(&self, enabled: bool)

Implementors§