pub struct Alarm<'d> { /* private fields */ }Expand description
An alarm unit
Implementations§
Source§impl Alarm<'_>
 
impl Alarm<'_>
Sourcepub unsafe fn clone_unchecked(&self) -> Self
 
pub unsafe fn clone_unchecked(&self) -> Self
Unsafely clone this peripheral reference.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Sourcepub fn reborrow(&mut self) -> Alarm<'_>
 
pub fn reborrow(&mut self) -> Alarm<'_>
Creates a new peripheral reference with a shorter lifetime.
Use this method if you would like to keep working with the peripheral after you dropped the driver that consumes this.
See Peripheral singleton section for more information.
Trait Implementations§
Source§impl Timer for Alarm<'_>
Available on crate feature unstable only. 
impl Timer for Alarm<'_>
Available on crate feature 
unstable only.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