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

pub trait Instance: Sealed {
    pub const INTERRUPT: Interrupt;

    pub fn as_timer0(&self) -> &RegisterBlock;

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

Implemented by all TIMER* instances.

Associated Constants

pub const INTERRUPT: Interrupt[src]

This interrupt associated with this RTC instance.

Loading content...

Required methods

pub fn as_timer0(&self) -> &RegisterBlock[src]

Loading content...

Provided methods

pub fn timer_start<Time>(&self, cycles: Time) where
    Time: Into<u32>, 
[src]

pub fn timer_reset_event(&self)[src]

pub fn timer_cancel(&self)[src]

pub fn timer_running(&self) -> bool[src]

pub fn read_counter(&self) -> u32[src]

pub fn disable_interrupt(&self)[src]

pub fn enable_interrupt(&self)[src]

pub fn set_shorts_periodic(&self)[src]

pub fn set_shorts_oneshot(&self)[src]

pub fn set_periodic(&self)[src]

pub fn set_oneshot(&self)[src]

Loading content...

Implementors

Loading content...