PMU

Struct PMU 

Source
pub struct PMU { /* private fields */ }
Expand description

Power management unit

Implementations§

Source§

impl PMU

Source

pub const PTR: *const RegisterBlock = {0x40000800 as *const pmu::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 lpow_md(&self) -> &LPOW_MD

0x00 - Low Power Mode Select Register

Source

pub fn lpmd_wken(&self) -> &LPMD_WKEN

0x04 - Low Power Wakeup Source Enable Register

Source

pub fn lpmd_wkst(&self) -> &LPMD_WKST

0x08 - Low Power Wakeup Source Status Register

Source

pub fn chip_rst_st(&self) -> &CHIP_RST_ST

0x0c - Chip Reset Status Register

Source

pub fn src_cfg(&self) -> &SRC_CFG

0x10 - Clock Source Configuration Register

Source

pub fn trim_pow0(&self) -> &TRIM_POW0

0x20 - POW0 Related Analog Modules TRIM register

Source

pub fn trim_pow1(&self) -> &TRIM_POW1

0x24 - POW1 Related Analog Modules TRIM register

Source

pub fn trim_pow2(&self) -> &TRIM_POW2

0x28 - POW2 Related Analog Modules TRIM register

Source

pub fn trim_pow3(&self) -> &TRIM_POW3

0x2c - POW3 Related Analog Modules TRIM register

Source

pub fn trim_rchf(&self) -> &TRIM_RCHF

0x30 - RCHF Clock Module TRIM Register

Source

pub fn trim_rclf(&self) -> &TRIM_RCLF

0x34 - RCLF Clock Module TRIM Register

Source

pub fn trim_opa(&self) -> &TRIM_OPA

0x38 - OPA Module TRIM Register

Source

pub fn trim_pll(&self) -> &TRIM_PLL

0x3c - PLL Module TRIM Register

Source

pub fn trim_lock(&self) -> &TRIM_LOCK

0x80 - TRIM Locks the registers

Source

pub fn data_bak0(&self) -> &DATA_BAK0

0x100 - Non-power-off domain data backup register0

Source

pub fn data_bak1(&self) -> &DATA_BAK1

0x104 - Non-power-off domain data backup register1

Source

pub fn data_bak2(&self) -> &DATA_BAK2

0x108 - Non-power-off domain data backup register2

Source

pub fn data_bak3(&self) -> &DATA_BAK3

0x10c - Non-power-off domain data backup register3

Trait Implementations§

Source§

impl Debug for PMU

Source§

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

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

impl Deref for PMU

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for PMU

Auto Trait Implementations§

§

impl Freeze for PMU

§

impl RefUnwindSafe for PMU

§

impl !Sync for PMU

§

impl Unpin for PMU

§

impl UnwindSafe for PMU

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.