#[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)
Trait Implementations§
impl Copy for SeqCfg
impl Eq for SeqCfg
impl StructuralPartialEq for SeqCfg
Auto Trait Implementations§
impl Freeze for SeqCfg
impl RefUnwindSafe for SeqCfg
impl Send for SeqCfg
impl Sync for SeqCfg
impl Unpin for SeqCfg
impl UnwindSafe for SeqCfg
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)