pub struct Alarm { /* private fields */ }
Available on crate feature
unstable
only.Expand description
An alarm unit
Implementations§
Trait Implementations§
Source§impl Peripheral for Alarm
impl Peripheral for Alarm
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 Timer for Alarm
impl Timer for Alarm
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