pub struct UlpCore<'d> { /* private fields */ }Expand description
Structure representing the ULP (Ultra-Low Power) core.
Implementations§
Source§impl<'d> UlpCore<'d>
impl<'d> UlpCore<'d>
Sourcepub fn new(lp_core: ULP_RISCV_CORE<'d>) -> Self
pub fn new(lp_core: ULP_RISCV_CORE<'d>) -> Self
Creates a new instance of the UlpCore struct.
Sourcepub fn run(&mut self, wakeup_src: UlpCoreWakeupSource)
pub fn run(&mut self, wakeup_src: UlpCoreWakeupSource)
Runs the ULP core with the specified wakeup source.
Sourcepub fn enable_wakeup(&mut self, config: WakeupConfig)
pub fn enable_wakeup(&mut self, config: WakeupConfig)
Lets the ULP 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 ULP core from waking the chip.