rp-pac

Crates

git

Versions

rp235x

Flavors

Struct rp_pac::powman::regs::SeqCfg

source ·
#[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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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)

source

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§

source§

impl Clone for SeqCfg

source§

fn clone(&self) -> SeqCfg

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for SeqCfg

source§

fn default() -> SeqCfg

Returns the “default value” for a type. Read more
source§

impl PartialEq for SeqCfg

source§

fn eq(&self, other: &SeqCfg) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for SeqCfg

source§

impl Eq for SeqCfg

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.