pub struct StopModeSramConfig {
pub sram1_page0: bool,
pub sram1_page1: bool,
pub sram1_page2: bool,
pub sram1_page3: bool,
pub sram2: bool,
pub sram1_pages567: bool,
pub icache_sram: bool,
pub otg_sram: bool,
pub pka_sram: bool,
}Expand description
SRAM page power-down configuration for Stop modes (Stop 0, Stop 1).
Each field controls whether a particular SRAM region is powered down (content lost) or retained when the MCU enters a Stop mode. Powering down unused SRAM pages reduces Stop-mode current consumption.
All pages default to retained (false), preserving backward compatibility.
Fields§
§sram1_page0: boolSRAM1 page 0 power-down in Stop modes.
sram1_page1: boolSRAM1 page 1 power-down in Stop modes.
sram1_page2: boolSRAM1 page 2 power-down in Stop modes.
sram1_page3: boolSRAM1 page 3 power-down in Stop modes.
sram2: boolSRAM2 power-down in Stop modes.
sram1_pages567: boolSRAM1 pages 5-7 (192KB) power-down in Stop modes. Only present on WBA6x variants with 256KB SRAM.
icache_sram: boolICACHE SRAM power-down in Stop modes.
otg_sram: boolOTG (USB) SRAM power-down in Stop modes.
pka_sram: boolPKA SRAM power-down in Stop modes.
Trait Implementations§
Source§impl Clone for StopModeSramConfig
impl Clone for StopModeSramConfig
Source§fn clone(&self) -> StopModeSramConfig
fn clone(&self) -> StopModeSramConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StopModeSramConfig
impl Default for StopModeSramConfig
impl Copy for StopModeSramConfig
Auto Trait Implementations§
impl Freeze for StopModeSramConfig
impl RefUnwindSafe for StopModeSramConfig
impl Send for StopModeSramConfig
impl Sync for StopModeSramConfig
impl Unpin for StopModeSramConfig
impl UnwindSafe for StopModeSramConfig
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