Struct hpm5361_pac::PCFG

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

PCFG

Implementations§

source§

impl PCFG

source

pub const PTR: *const RegisterBlock = {0xf4104000 as *const pcfg::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 bandgap(&self) -> &BANDGAP

0x00 - BANGGAP control

source

pub fn ldo1p1(&self) -> &LDO1P1

0x04 - 1V LDO config

source

pub fn ldo2p5(&self) -> &LDO2P5

0x08 - 2.5V LDO config

source

pub fn dcdc_mode(&self) -> &DCDC_MODE

0x10 - DCDC mode select

source

pub fn dcdc_lpmode(&self) -> &DCDC_LPMODE

0x14 - DCDC low power mode

source

pub fn dcdc_prot(&self) -> &DCDC_PROT

0x18 - DCDC protection

source

pub fn dcdc_current(&self) -> &DCDC_CURRENT

0x1c - DCDC current estimation

source

pub fn dcdc_advmode(&self) -> &DCDC_ADVMODE

0x20 - DCDC advance setting

source

pub fn dcdc_advparam(&self) -> &DCDC_ADVPARAM

0x24 - DCDC advance parameter

source

pub fn dcdc_misc(&self) -> &DCDC_MISC

0x28 - DCDC misc parameter

source

pub fn dcdc_debug(&self) -> &DCDC_DEBUG

0x2c - DCDC Debug

source

pub fn dcdc_start_time(&self) -> &DCDC_START_TIME

0x30 - DCDC ramp time

source

pub fn dcdc_resume_time(&self) -> &DCDC_RESUME_TIME

0x34 - DCDC resume time

source

pub fn power_trap(&self) -> &POWER_TRAP

0x40 - SOC power trap

source

pub fn wake_cause(&self) -> &WAKE_CAUSE

0x44 - Wake up source

source

pub fn wake_mask(&self) -> &WAKE_MASK

0x48 - Wake up mask

source

pub fn scg_ctrl(&self) -> &SCG_CTRL

0x4c - Clock gate control in PMIC

source

pub fn rc24m(&self) -> &RC24M

0x60 - RC 24M config

source

pub fn rc24m_track(&self) -> &RC24M_TRACK

0x64 - RC 24M track mode

source

pub fn track_target(&self) -> &TRACK_TARGET

0x68 - RC 24M track target

source

pub fn status(&self) -> &STATUS

0x6c - RC 24M track status

Trait Implementations§

source§

impl Debug for PCFG

source§

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

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

impl Deref for PCFG

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for PCFG

Auto Trait Implementations§

§

impl RefUnwindSafe for PCFG

§

impl !Sync for PCFG

§

impl Unpin for PCFG

§

impl UnwindSafe for PCFG

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.