pub struct LpCore<'d> { /* private fields */ }Expand description
Represents the Low Power (LP) core peripheral.
Implementations§
Source§impl<'d> LpCore<'d>
impl<'d> LpCore<'d>
Sourcepub fn new(lp_core: LP_CORE<'d>) -> Self
pub fn new(lp_core: LP_CORE<'d>) -> Self
Creates a new instance using LpCoreClockSource::RcFastClk.
Sourcepub fn new_with_clock(lp_core: LP_CORE<'d>, clk_src: LpCoreClockSource) -> Self
pub fn new_with_clock(lp_core: LP_CORE<'d>, clk_src: LpCoreClockSource) -> Self
Creates a new instance using the given clock.
Sourcepub fn run(&mut self, wakeup_src: LpCoreWakeupSource)
pub fn run(&mut self, wakeup_src: LpCoreWakeupSource)
Starts the LP core.
Sourcepub fn enable_wakeup(&mut self)
pub fn enable_wakeup(&mut self)
Lets the LP core wake the chip from sleep.
The request stays until Self::disable_wakeup is called. It stays through a sleep,
through a deep-sleep wake, and after a drop of this driver. While the chip is awake, it
does nothing.
Sourcepub fn disable_wakeup(&mut self)
pub fn disable_wakeup(&mut self)
Stops the LP core from waking the chip.
Auto Trait Implementations§
impl<'d> !UnwindSafe for LpCore<'d>
impl<'d> Freeze for LpCore<'d>
impl<'d> RefUnwindSafe for LpCore<'d>
impl<'d> Send for LpCore<'d>
impl<'d> Sync for LpCore<'d>
impl<'d> Unpin for LpCore<'d>
impl<'d> UnsafeUnpin for LpCore<'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