Struct mcxn947_pac::VBAT0

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

VBAT

Implementations§

source§

impl VBAT0

source

pub const PTR: *const RegisterBlock = {0x40059000 as *const vbat0::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 statusa(&self) -> &STATUSA

0x10 - Status A

source

pub fn statusb(&self) -> &STATUSB

0x14 - Status B

source

pub fn irqena(&self) -> &IRQENA

0x18 - Interrupt Enable A

source

pub fn irqenb(&self) -> &IRQENB

0x1c - Interrupt Enable B

source

pub fn wakena(&self) -> &WAKENA

0x20 - Wake-up Enable A

source

pub fn wakenb(&self) -> &WAKENB

0x24 - Wake-up Enable B

source

pub fn tampera(&self) -> &TAMPERA

0x28 - Tamper Enable A

source

pub fn tamperb(&self) -> &TAMPERB

0x2c - Tamper Enable B

source

pub fn locka(&self) -> &LOCKA

0x30 - Lock A

source

pub fn lockb(&self) -> &LOCKB

0x34 - Lock B

source

pub fn wakecfg(&self) -> &WAKECFG

0x38 - Wake-up Configuration

source

pub fn oscctla(&self) -> &OSCCTLA

0x100 - Oscillator Control A

source

pub fn oscctlb(&self) -> &OSCCTLB

0x104 - Oscillator Control B

source

pub fn osccfga(&self) -> &OSCCFGA

0x108 - Oscillator Configuration A

source

pub fn osccfgb(&self) -> &OSCCFGB

0x10c - Oscillator Configuration B

source

pub fn osclcka(&self) -> &OSCLCKA

0x118 - Oscillator Lock A

source

pub fn osclckb(&self) -> &OSCLCKB

0x11c - Oscillator Lock B

source

pub fn oscclke(&self) -> &OSCCLKE

0x120 - Oscillator Clock Enable

source

pub fn froctla(&self) -> &FROCTLA

0x200 - FRO16K Control A

source

pub fn froctlb(&self) -> &FROCTLB

0x204 - FRO16K Control B

source

pub fn frolcka(&self) -> &FROLCKA

0x218 - FRO16K Lock A

source

pub fn frolckb(&self) -> &FROLCKB

0x21c - FRO16K Lock B

source

pub fn froclke(&self) -> &FROCLKE

0x220 - FRO16K Clock Enable

source

pub fn ldoctla(&self) -> &LDOCTLA

0x300 - LDO_RAM Control A

source

pub fn ldoctlb(&self) -> &LDOCTLB

0x304 - LDO_RAM Control B

source

pub fn ldolcka(&self) -> &LDOLCKA

0x318 - LDO_RAM Lock A

source

pub fn ldolckb(&self) -> &LDOLCKB

0x31c - LDO_RAM Lock B

source

pub fn ldoramc(&self) -> &LDORAMC

0x320 - RAM Control

source

pub fn ldotimer0(&self) -> &LDOTIMER0

0x330 - Bandgap Timer 0

source

pub fn ldotimer1(&self) -> &LDOTIMER1

0x338 - Bandgap Timer 1

source

pub fn monctla(&self) -> &MONCTLA

0x400 - CLKMON Control A

source

pub fn monctlb(&self) -> &MONCTLB

0x404 - CLKMON Control B

source

pub fn moncfga(&self) -> &MONCFGA

0x408 - CLKMON Configuration A

source

pub fn moncfgb(&self) -> &MONCFGB

0x40c - CLKMON Configuration B

source

pub fn monlcka(&self) -> &MONLCKA

0x418 - CLKMON Lock A

source

pub fn monlckb(&self) -> &MONLCKB

0x41c - CLKMON Lock B

source

pub fn tamctla(&self) -> &TAMCTLA

0x500 - TAMPER Control A

source

pub fn tamctlb(&self) -> &TAMCTLB

0x504 - TAMPER Control B

source

pub fn tamlcka(&self) -> &TAMLCKA

0x518 - TAMPER Lock A

source

pub fn tamlckb(&self) -> &TAMLCKB

0x51c - TAMPER Lock B

source

pub fn swictla(&self) -> &SWICTLA

0x600 - Switch Control A

source

pub fn swictlb(&self) -> &SWICTLB

0x604 - Switch Control B

source

pub fn swilcka(&self) -> &SWILCKA

0x618 - Switch Lock A

source

pub fn swilckb(&self) -> &SWILCKB

0x61c - Switch Lock B

source

pub fn wakeup(&self, n: usize) -> &WAKEUP

0x700..0x710 - no description available

source

pub fn wakeup_iter(&self) -> impl Iterator<Item = &WAKEUP>

Iterator for array of: 0x700..0x710 - no description available

source

pub fn waklcka(&self) -> &WAKLCKA

0x7f8 - Wakeup Lock A

source

pub fn waklckb(&self) -> &WAKLCKB

0x7fc - Wakeup Lock B

Trait Implementations§

source§

impl Debug for VBAT0

source§

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

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

impl Deref for VBAT0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for VBAT0

Auto Trait Implementations§

§

impl RefUnwindSafe for VBAT0

§

impl !Sync for VBAT0

§

impl Unpin for VBAT0

§

impl UnwindSafe for VBAT0

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.