Struct mcxn947_pac::SPC0

source ·
pub struct SPC0 { /* private fields */ }
Expand description

SPC

Implementations§

source§

impl SPC0

source

pub const PTR: *const RegisterBlock = {0x40045000 as *const spc0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

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>§

source

pub fn verid(&self) -> &VERID

0x00 - Version ID

source

pub fn sc(&self) -> &SC

0x10 - Status Control

source

pub fn cntrl(&self) -> &CNTRL

0x14 - SPC Regulator Control

source

pub fn lpreq_cfg(&self) -> &LPREQ_CFG

0x1c - Low-Power Request Configuration

source

pub fn pd_status(&self, n: usize) -> &PD_STATUS

0x30..0x38 - SPC Power Domain Mode Status

source

pub fn pd_status_iter(&self) -> impl Iterator<Item = &PD_STATUS>

Iterator for array of: 0x30..0x38 - SPC Power Domain Mode Status

source

pub fn sramctl(&self) -> &SRAMCTL

0x40 - SRAM Control

source

pub fn active_cfg(&self) -> &ACTIVE_CFG

0x100 - Active Power Mode Configuration

source

pub fn active_cfg1(&self) -> &ACTIVE_CFG1

0x104 - Active Power Mode Configuration 1

source

pub fn lp_cfg(&self) -> &LP_CFG

0x108 - Low-Power Mode Configuration

source

pub fn lp_cfg1(&self) -> &LP_CFG1

0x10c - Low Power Mode Configuration 1

source

pub fn lpwkup_delay(&self) -> &LPWKUP_DELAY

0x120 - Low Power Wake-Up Delay

source

pub fn active_vdelay(&self) -> &ACTIVE_VDELAY

0x124 - Active Voltage Trim Delay

source

pub fn vd_stat(&self) -> &VD_STAT

0x130 - Voltage Detect Status

source

pub fn vd_core_cfg(&self) -> &VD_CORE_CFG

0x134 - Core Voltage Detect Configuration

source

pub fn vd_sys_cfg(&self) -> &VD_SYS_CFG

0x138 - System Voltage Detect Configuration

source

pub fn vd_io_cfg(&self) -> &VD_IO_CFG

0x13c - IO Voltage Detect Configuration

source

pub fn evd_cfg(&self) -> &EVD_CFG

0x140 - External Voltage Domain Configuration

source

pub fn vdd_core_glitch_detect_sc(&self) -> &VDD_CORE_GLITCH_DETECT_SC

0x144 - VDD Core Glitch Detect Status Control

source

pub fn coreldo_cfg(&self) -> &CORELDO_CFG

0x300 - LDO_CORE Configuration

source

pub fn sysldo_cfg(&self) -> &SYSLDO_CFG

0x400 - LDO_SYS Configuration

source

pub fn dcdc_cfg(&self) -> &DCDC_CFG

0x500 - DCDC Configuration

source

pub fn dcdc_burst_cfg(&self) -> &DCDC_BURST_CFG

0x504 - DCDC Burst Configuration

Trait Implementations§

source§

impl Debug for SPC0

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for SPC0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for SPC0

Auto Trait Implementations§

§

impl RefUnwindSafe for SPC0

§

impl !Sync for SPC0

§

impl Unpin for SPC0

§

impl UnwindSafe for SPC0

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> 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>,

§

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>,

§

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.