#[repr(transparent)]pub struct SeqCfg(pub u32);
Expand description
For configuration of the power sequencer Writes are ignored while POWMAN_STATE_CHANGING=1
Tuple Fields§
§0: u32
Implementations§
Source§impl SeqCfg
impl SeqCfg
Sourcepub const fn hw_pwrup_sram1(&self) -> bool
pub const fn hw_pwrup_sram1(&self) -> bool
Specifies the power state of SRAM1 when powering up swcore from a low power state (P1.xxx) to a high power state (P0.0xx). 0=power-up 1=no change
Sourcepub fn set_hw_pwrup_sram1(&mut self, val: bool)
pub fn set_hw_pwrup_sram1(&mut self, val: bool)
Specifies the power state of SRAM1 when powering up swcore from a low power state (P1.xxx) to a high power state (P0.0xx). 0=power-up 1=no change
Sourcepub const fn hw_pwrup_sram0(&self) -> bool
pub const fn hw_pwrup_sram0(&self) -> bool
Specifies the power state of SRAM0 when powering up swcore from a low power state (P1.xxx) to a high power state (P0.0xx). 0=power-up 1=no change
Sourcepub fn set_hw_pwrup_sram0(&mut self, val: bool)
pub fn set_hw_pwrup_sram0(&mut self, val: bool)
Specifies the power state of SRAM0 when powering up swcore from a low power state (P1.xxx) to a high power state (P0.0xx). 0=power-up 1=no change
Sourcepub const fn use_vreg_lp(&self) -> bool
pub const fn use_vreg_lp(&self) -> bool
Set to 0 to prevent automatic switching to vreg low power mode when switched-core is powered down This setting takes effect when the swcore is next powered down
Sourcepub fn set_use_vreg_lp(&mut self, val: bool)
pub fn set_use_vreg_lp(&mut self, val: bool)
Set to 0 to prevent automatic switching to vreg low power mode when switched-core is powered down This setting takes effect when the swcore is next powered down
Sourcepub const fn use_vreg_hp(&self) -> bool
pub const fn use_vreg_hp(&self) -> bool
Set to 0 to prevent automatic switching to vreg high power mode when switched-core is powered up This setting takes effect when the swcore is next powered up
Sourcepub fn set_use_vreg_hp(&mut self, val: bool)
pub fn set_use_vreg_hp(&mut self, val: bool)
Set to 0 to prevent automatic switching to vreg high power mode when switched-core is powered up This setting takes effect when the swcore is next powered up
Sourcepub const fn use_bod_lp(&self) -> bool
pub const fn use_bod_lp(&self) -> bool
Set to 0 to prevent automatic switching to bod low power mode when switched-core is powered down This setting takes effect when the swcore is next powered down
Sourcepub fn set_use_bod_lp(&mut self, val: bool)
pub fn set_use_bod_lp(&mut self, val: bool)
Set to 0 to prevent automatic switching to bod low power mode when switched-core is powered down This setting takes effect when the swcore is next powered down
Sourcepub const fn use_bod_hp(&self) -> bool
pub const fn use_bod_hp(&self) -> bool
Set to 0 to prevent automatic switching to bod high power mode when switched-core is powered up This setting takes effect when the swcore is next powered up
Sourcepub fn set_use_bod_hp(&mut self, val: bool)
pub fn set_use_bod_hp(&mut self, val: bool)
Set to 0 to prevent automatic switching to bod high power mode when switched-core is powered up This setting takes effect when the swcore is next powered up
Sourcepub const fn run_lposc_in_lp(&self) -> bool
pub const fn run_lposc_in_lp(&self) -> bool
Set to 0 to stop the low power osc when the switched-core is powered down, which is unwise if using it to clock the timer This setting takes effect when the swcore is next powered down
Sourcepub fn set_run_lposc_in_lp(&mut self, val: bool)
pub fn set_run_lposc_in_lp(&mut self, val: bool)
Set to 0 to stop the low power osc when the switched-core is powered down, which is unwise if using it to clock the timer This setting takes effect when the swcore is next powered down
Sourcepub const fn use_fast_powck(&self) -> bool
pub const fn use_fast_powck(&self) -> bool
selects the reference clock (clk_ref) as the source of the POWMAN clock when switched-core is powered. The POWMAN clock always switches to the slow clock (lposc) when switched-core is powered down because the fast clock stops running. 0 always run the POWMAN clock from the slow clock (lposc) 1 run the POWMAN clock from the fast clock when available This setting takes effect when a power up sequence is next run
Sourcepub fn set_use_fast_powck(&mut self, val: bool)
pub fn set_use_fast_powck(&mut self, val: bool)
selects the reference clock (clk_ref) as the source of the POWMAN clock when switched-core is powered. The POWMAN clock always switches to the slow clock (lposc) when switched-core is powered down because the fast clock stops running. 0 always run the POWMAN clock from the slow clock (lposc) 1 run the POWMAN clock from the fast clock when available This setting takes effect when a power up sequence is next run
Sourcepub const fn using_vreg_lp(&self) -> bool
pub const fn using_vreg_lp(&self) -> bool
Indicates the voltage regulator (VREG) mode 0 = VREG high power mode which is the default 1 = VREG low power mode
Sourcepub fn set_using_vreg_lp(&mut self, val: bool)
pub fn set_using_vreg_lp(&mut self, val: bool)
Indicates the voltage regulator (VREG) mode 0 = VREG high power mode which is the default 1 = VREG low power mode
Sourcepub const fn using_bod_lp(&self) -> bool
pub const fn using_bod_lp(&self) -> bool
Indicates the brown-out detector (BOD) mode 0 = BOD high power mode which is the default 1 = BOD low power mode
Sourcepub fn set_using_bod_lp(&mut self, val: bool)
pub fn set_using_bod_lp(&mut self, val: bool)
Indicates the brown-out detector (BOD) mode 0 = BOD high power mode which is the default 1 = BOD low power mode
Sourcepub const fn using_fast_powck(&self) -> bool
pub const fn using_fast_powck(&self) -> bool
0 indicates the POWMAN clock is running from the low power oscillator (32kHz) 1 indicates the POWMAN clock is running from the reference clock (2-50MHz)
Sourcepub fn set_using_fast_powck(&mut self, val: bool)
pub fn set_using_fast_powck(&mut self, val: bool)
0 indicates the POWMAN clock is running from the low power oscillator (32kHz) 1 indicates the POWMAN clock is running from the reference clock (2-50MHz)