[][src]Trait esb::peripherals::EsbTimer

pub trait EsbTimer: Sealed {
    fn init(&mut self);
fn set_interrupt_retransmit(&mut self, micros: u16);
fn clear_interrupt_retransmit(&mut self);
fn is_retransmit_pending(&self) -> bool;
fn set_interrupt_ack(&mut self, micros: u16);
fn clear_interrupt_ack(&mut self);
fn is_ack_pending(&self) -> bool;
fn stop(&mut self); }

Trait implemented for the nRF timer peripherals.

Required methods

fn init(&mut self)

Initialize the timer with a 1MHz rate.

fn set_interrupt_retransmit(&mut self, micros: u16)

Configures the timer's interrupt used for the retransmit, to fire after a given time in micro seconds.

fn clear_interrupt_retransmit(&mut self)

Acknowledges the retransmit interrupt.

fn is_retransmit_pending(&self) -> bool

Returns whether the retransmit interrupt is currently pending.

fn set_interrupt_ack(&mut self, micros: u16)

Configures the timer's interrupt used for the acknowledge timeout, to fire after a given time in micro seconds.

fn clear_interrupt_ack(&mut self)

Acknowledges the ack timeout interrupt.

fn is_ack_pending(&self) -> bool

Returns whether the ack timeout interrupt is currently pending.

fn stop(&mut self)

Stops the timer.

Loading content...

Implementations on Foreign Types

impl EsbTimer for TIMER0[src]

impl EsbTimer for TIMER1[src]

impl EsbTimer for TIMER2[src]

Loading content...

Implementors

Loading content...