Struct mcxn947_pac::SCG0

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

SCG

Implementations§

source§

impl SCG0

source

pub const PTR: *const RegisterBlock = {0x40044000 as *const scg0::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 Register

source

pub fn param(&self) -> &PARAM

0x04 - Parameter Register

source

pub fn trim_lock(&self) -> &TRIM_LOCK

0x08 - Trim Lock register

source

pub fn csr(&self) -> &CSR

0x10 - Clock Status Register

source

pub fn rccr(&self) -> &RCCR

0x14 - Run Clock Control Register

source

pub fn sosccsr(&self) -> &SOSCCSR

0x100 - SOSC Control Status Register

source

pub fn sosccfg(&self) -> &SOSCCFG

0x108 - SOSC Configuration Register

source

pub fn sirccsr(&self) -> &SIRCCSR

0x200 - SIRC Control Status Register

source

pub fn sirctcfg(&self) -> &SIRCTCFG

0x20c - SIRC Trim Configuration Register

source

pub fn sircstat(&self) -> &SIRCSTAT

0x218 - SIRC Auto-trimming Status Register

source

pub fn firccsr(&self) -> &FIRCCSR

0x300 - FIRC Control Status Register

source

pub fn firccfg(&self) -> &FIRCCFG

0x308 - FIRC Configuration Register

source

pub fn firctcfg(&self) -> &FIRCTCFG

0x30c - FIRC Trim Configuration Register

source

pub fn firctrim(&self) -> &FIRCTRIM

0x310 - FIRC Trim Register

source

pub fn fircstat(&self) -> &FIRCSTAT

0x318 - FIRC Auto-trimming Status Register

source

pub fn rosccsr(&self) -> &ROSCCSR

0x400 - ROSC Control Status Register

source

pub fn apllcsr(&self) -> &APLLCSR

0x500 - APLL Control Status Register

source

pub fn apllctrl(&self) -> &APLLCTRL

0x504 - APLL Control Register

source

pub fn apllstat(&self) -> &APLLSTAT

0x508 - APLL Status Register

source

pub fn apllndiv(&self) -> &APLLNDIV

0x50c - APLL N Divider Register

source

pub fn apllmdiv(&self) -> &APLLMDIV

0x510 - APLL M Divider Register

source

pub fn apllpdiv(&self) -> &APLLPDIV

0x514 - APLL P Divider Register

source

pub fn aplllock_cnfg(&self) -> &APLLLOCK_CNFG

0x518 - APLL LOCK Configuration Register

source

pub fn apllsscgstat(&self) -> &APLLSSCGSTAT

0x520 - APLL SSCG Status Register

source

pub fn apllsscg0(&self) -> &APLLSSCG0

0x524 - APLL Spread Spectrum Control 0 Register

source

pub fn apllsscg1(&self) -> &APLLSSCG1

0x528 - APLL Spread Spectrum Control 1 Register

source

pub fn apll_ovrd(&self) -> &APLL_OVRD

0x5f4 - APLL Override Register

source

pub fn spllcsr(&self) -> &SPLLCSR

0x600 - SPLL Control Status Register

source

pub fn spllctrl(&self) -> &SPLLCTRL

0x604 - SPLL Control Register

source

pub fn spllstat(&self) -> &SPLLSTAT

0x608 - SPLL Status Register

source

pub fn spllndiv(&self) -> &SPLLNDIV

0x60c - SPLL N Divider Register

source

pub fn spllmdiv(&self) -> &SPLLMDIV

0x610 - SPLL M Divider Register

source

pub fn spllpdiv(&self) -> &SPLLPDIV

0x614 - SPLL P Divider Register

source

pub fn splllock_cnfg(&self) -> &SPLLLOCK_CNFG

0x618 - SPLL LOCK Configuration Register

source

pub fn spllsscgstat(&self) -> &SPLLSSCGSTAT

0x620 - SPLL SSCG Status Register

source

pub fn spllsscg0(&self) -> &SPLLSSCG0

0x624 - SPLL Spread Spectrum Control 0 Register

source

pub fn spllsscg1(&self) -> &SPLLSSCG1

0x628 - SPLL Spread Spectrum Control 1 Register

source

pub fn spll_ovrd(&self) -> &SPLL_OVRD

0x6f4 - SPLL Override Register

source

pub fn upllcsr(&self) -> &UPLLCSR

0x700 - UPLL Control Status Register

source

pub fn ldocsr(&self) -> &LDOCSR

0x800 - LDO Control and Status Register

source

pub fn trocsr(&self) -> &TROCSR

0x900 - TRO Control Status Register

Trait Implementations§

source§

impl Debug for SCG0

source§

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

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

impl Deref for SCG0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for SCG0

Auto Trait Implementations§

§

impl RefUnwindSafe for SCG0

§

impl !Sync for SCG0

§

impl Unpin for SCG0

§

impl UnwindSafe for SCG0

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.