pub struct Tim3Backend;
Expand description

Monotonic timer backend implementation.

Implementations§

source§

impl Tim3Backend

source

pub fn _start(tim_clock_hz: u32, timer_hz: u32)

Starts the timer.

Do not use this function directly.

Use the prelude macros instead.

Trait Implementations§

source§

impl TimerQueueBackend for Tim3Backend

§

type Ticks = u64

The type for ticks.
source§

fn now() -> Self::Ticks

Get the current time.
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 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
source§

fn on_interrupt()

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

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

Returns a reference to the underlying timer queue.

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>,

§

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>,

§

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.