#[non_exhaustive]pub enum FlashSleep {
Never,
FlashDoze,
FlashDozeWithFlashWake,
}Expand description
Settings for gating power to on-chip flash
Applies to both “light” WFE sleep, as well as Deep Sleep. Requires that
§FlashDoze
Disables flash memory accesses and places flash memory in Low-Power state whenever the core clock is gated (CKMODE > 0) because of execution of WFI, WFE, or SLEEPONEXIT. Other bus masters that attempt to access the flash memory stalls until the core is no longer sleeping.
§FlashWake
Specifies that when this field becomes 1, an attempt to read the flash memory when it is in Low-Power state because of FLASHCR[FLASHDIS] or FLASHCR[FLASHDOZE], causes the flash memory to exit Low-Power state for the duration of the flash memory access.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Never
Don’t ever set the flash to sleep
FlashDoze
Set FlashDoze
This setting is only effective if CoreSleep has been configured with at least
the WfeGated option or deeper.
FlashDozeWithFlashWake
Set FlashDoze + FlashWake
This setting is only effective if CoreSleep has been configured with at least
the WfeGated option or deeper.
Trait Implementations§
Source§impl Clone for FlashSleep
impl Clone for FlashSleep
Source§fn clone(&self) -> FlashSleep
fn clone(&self) -> FlashSleep
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more