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
Create 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
Create a new instance using the given clock
Sourcepub fn run(&mut self, wakeup_src: LpCoreWakeupSource)
pub fn run(&mut self, wakeup_src: LpCoreWakeupSource)
Start 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 you call Self::disable_wakeup. 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.