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
The caller must ensure that only one instance of this type is used 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 to keep working with the peripheral after dropping 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)
Clears the timer’s interrupt.
Source§fn is_interrupt_set(&self) -> bool
fn is_interrupt_set(&self) -> bool
Returns whether the timer has triggered.
Source§fn peripheral_interrupt(&self) -> Interrupt
fn peripheral_interrupt(&self) -> Interrupt
Returns the interrupt source for the underlying timer.
Auto Trait Implementations§
impl<'d> !UnwindSafe for Alarm<'d>
impl<'d> Freeze for Alarm<'d>
impl<'d> RefUnwindSafe for Alarm<'d>
impl<'d> Send for Alarm<'d>
impl<'d> Sync for Alarm<'d>
impl<'d> Unpin for Alarm<'d>
impl<'d> UnsafeUnpin for Alarm<'d>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more