pub struct Timer { /* private fields */ }
Available on crate feature
unstable
only.Expand description
A timer within a Timer Group.
Trait Implementations§
Source§impl Peripheral for Timer
impl Peripheral for Timer
Source§unsafe fn clone_unchecked(&self) -> Self::P
unsafe fn clone_unchecked(&self) -> Self::P
Unsafely clone (duplicate) a peripheral singleton. Read more
Source§fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
Convert a value into a
PeripheralRef
. Read moreSource§impl Tasks for Timer
impl Tasks for Timer
Source§fn alarm_start(&self) -> Task
fn alarm_start(&self) -> Task
ETM task to load the counter with the value stored when the last
now()
was calledSource§fn cnt_reload(&self) -> Task
fn cnt_reload(&self) -> Task
ETM task to stop the counter
Source§impl Timer for Timer
impl Timer for Timer
Source§fn clear_interrupt(&self)
fn clear_interrupt(&self)
Clear the timer’s interrupt.
Source§fn is_interrupt_set(&self) -> bool
fn is_interrupt_set(&self) -> bool
Has the timer triggered?
Source§fn peripheral_interrupt(&self) -> Interrupt
fn peripheral_interrupt(&self) -> Interrupt
Returns the interrupt source for the underlying timer