[][src]Trait nrf52840_hal::timer::Instance

pub trait Instance {
    const INTERRUPT: Interrupt;

    fn timer_start<Time>(&self, cycles: Time)
    where
        Time: Into<u32>
;
fn timer_reset_event(&self);
fn timer_cancel(&self);
fn timer_running(&self) -> bool;
fn read_counter(&self) -> u32;
fn disable_interrupt(&self);
fn enable_interrupt(&self);
fn set_shorts_periodic(&self);
fn set_shorts_oneshot(&self);
fn set_periodic(&self);
fn set_oneshot(&self); }

Implemented by all timer0::TIMER instances

Associated Constants

const INTERRUPT: Interrupt

This interrupt associated with this RTC instance

Loading content...

Required methods

fn timer_start<Time>(&self, cycles: Time) where
    Time: Into<u32>, 

fn timer_reset_event(&self)

fn timer_cancel(&self)

fn timer_running(&self) -> bool

fn read_counter(&self) -> u32

fn disable_interrupt(&self)

fn enable_interrupt(&self)

fn set_shorts_periodic(&self)

fn set_shorts_oneshot(&self)

fn set_periodic(&self)

fn set_oneshot(&self)

Loading content...

Implementors

impl Instance for TIMER0[src]

impl Instance for TIMER1[src]

impl Instance for TIMER2[src]

impl Instance for TIMER3[src]

impl Instance for TIMER4[src]

Loading content...