Struct mcxn947_pac::SPC0
source · pub struct SPC0 { /* private fields */ }
Expand description
SPC
Implementations§
source§impl SPC0
impl SPC0
sourcepub const PTR: *const RegisterBlock = {0x40045000 as *const spc0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40045000 as *const spc0::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn pd_status_iter(&self) -> impl Iterator<Item = &PD_STATUS>
pub fn pd_status_iter(&self) -> impl Iterator<Item = &PD_STATUS>
Iterator for array of: 0x30..0x38 - SPC Power Domain Mode Status
sourcepub fn active_cfg(&self) -> &ACTIVE_CFG
pub fn active_cfg(&self) -> &ACTIVE_CFG
0x100 - Active Power Mode Configuration
sourcepub fn active_cfg1(&self) -> &ACTIVE_CFG1
pub fn active_cfg1(&self) -> &ACTIVE_CFG1
0x104 - Active Power Mode Configuration 1
sourcepub fn lpwkup_delay(&self) -> &LPWKUP_DELAY
pub fn lpwkup_delay(&self) -> &LPWKUP_DELAY
0x120 - Low Power Wake-Up Delay
sourcepub fn active_vdelay(&self) -> &ACTIVE_VDELAY
pub fn active_vdelay(&self) -> &ACTIVE_VDELAY
0x124 - Active Voltage Trim Delay
sourcepub fn vd_core_cfg(&self) -> &VD_CORE_CFG
pub fn vd_core_cfg(&self) -> &VD_CORE_CFG
0x134 - Core Voltage Detect Configuration
sourcepub fn vd_sys_cfg(&self) -> &VD_SYS_CFG
pub fn vd_sys_cfg(&self) -> &VD_SYS_CFG
0x138 - System Voltage Detect Configuration
sourcepub fn vdd_core_glitch_detect_sc(&self) -> &VDD_CORE_GLITCH_DETECT_SC
pub fn vdd_core_glitch_detect_sc(&self) -> &VDD_CORE_GLITCH_DETECT_SC
0x144 - VDD Core Glitch Detect Status Control
sourcepub fn coreldo_cfg(&self) -> &CORELDO_CFG
pub fn coreldo_cfg(&self) -> &CORELDO_CFG
0x300 - LDO_CORE Configuration
sourcepub fn sysldo_cfg(&self) -> &SYSLDO_CFG
pub fn sysldo_cfg(&self) -> &SYSLDO_CFG
0x400 - LDO_SYS Configuration
sourcepub fn dcdc_burst_cfg(&self) -> &DCDC_BURST_CFG
pub fn dcdc_burst_cfg(&self) -> &DCDC_BURST_CFG
0x504 - DCDC Burst Configuration