Struct rtic_monotonics::nrf::timer::Timer3Backend

source ·
pub struct Timer3Backend;
Expand description

Timer peripheral based TimerQueueBackend.

Implementations§

source§

impl Timer3Backend

source

pub fn _start(timer: TIMER3, prescaler: u8)

Starts the timer.

Do not use this function directly.

Use the prelude macros instead.

Trait Implementations§

source§

impl TimerQueueBackend for Timer3Backend

source§

type Ticks = u64

The type for ticks.
source§

fn now() -> Self::Ticks

Get the current time.
source§

fn on_interrupt()

Optional. Runs on interrupt before any timer queue handling.
source§

fn set_compare(instant: Self::Ticks)

Set the compare value of the timer interrupt. Read more
source§

fn clear_compare_flag()

Clear the compare interrupt flag.
source§

fn pend_interrupt()

Pend the timer’s interrupt.
source§

fn timer_queue() -> &'static TimerQueue<Timer3Backend>

Returns a reference to the underlying timer queue.
source§

fn enable_timer()

Optional. This is used to save power, this is called when the timer queue is not empty. Read more
source§

fn disable_timer()

Optional. This is used to save power, this is called when the timer queue is empty. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.