PMU

Struct PMU 

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

PMU Peripheral

Implementations§

Source§

impl PMU

Source

pub const PTR: *const RegisterBlock = {0x50115000 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 hp_active_dig_power(&self) -> &HP_ACTIVE_DIG_POWER

0x00 - need_des

Source

pub fn hp_active_icg_hp_func(&self) -> &HP_ACTIVE_ICG_HP_FUNC

0x04 - need_des

Source

pub fn hp_active_icg_hp_apb(&self) -> &HP_ACTIVE_ICG_HP_APB

0x08 - need_des

Source

pub fn hp_active_icg_modem(&self) -> &HP_ACTIVE_ICG_MODEM

0x0c - need_des

Source

pub fn hp_active_hp_sys_cntl(&self) -> &HP_ACTIVE_HP_SYS_CNTL

0x10 - need_des

Source

pub fn hp_active_hp_ck_power(&self) -> &HP_ACTIVE_HP_CK_POWER

0x14 - need_des

Source

pub fn hp_active_bias(&self) -> &HP_ACTIVE_BIAS

0x18 - need_des

Source

pub fn hp_active_backup(&self) -> &HP_ACTIVE_BACKUP

0x1c - need_des

Source

pub fn hp_active_backup_clk(&self) -> &HP_ACTIVE_BACKUP_CLK

0x20 - need_des

Source

pub fn hp_active_sysclk(&self) -> &HP_ACTIVE_SYSCLK

0x24 - need_des

Source

pub fn hp_active_hp_regulator0(&self) -> &HP_ACTIVE_HP_REGULATOR0

0x28 - need_des

Source

pub fn hp_active_hp_regulator1(&self) -> &HP_ACTIVE_HP_REGULATOR1

0x2c - need_des

Source

pub fn hp_active_xtal(&self) -> &HP_ACTIVE_XTAL

0x30 - need_des

Source

pub fn hp_modem_dig_power(&self) -> &HP_MODEM_DIG_POWER

0x34 - need_des

Source

pub fn hp_modem_icg_hp_func(&self) -> &HP_MODEM_ICG_HP_FUNC

0x38 - need_des

Source

pub fn hp_modem_icg_hp_apb(&self) -> &HP_MODEM_ICG_HP_APB

0x3c - need_des

Source

pub fn hp_modem_icg_modem(&self) -> &HP_MODEM_ICG_MODEM

0x40 - need_des

Source

pub fn hp_modem_hp_sys_cntl(&self) -> &HP_MODEM_HP_SYS_CNTL

0x44 - need_des

Source

pub fn hp_modem_hp_ck_power(&self) -> &HP_MODEM_HP_CK_POWER

0x48 - need_des

Source

pub fn hp_modem_bias(&self) -> &HP_MODEM_BIAS

0x4c - need_des

Source

pub fn hp_modem_backup(&self) -> &HP_MODEM_BACKUP

0x50 - need_des

Source

pub fn hp_modem_backup_clk(&self) -> &HP_MODEM_BACKUP_CLK

0x54 - need_des

Source

pub fn hp_modem_sysclk(&self) -> &HP_MODEM_SYSCLK

0x58 - need_des

Source

pub fn hp_modem_hp_regulator0(&self) -> &HP_MODEM_HP_REGULATOR0

0x5c - need_des

Source

pub fn hp_modem_hp_regulator1(&self) -> &HP_MODEM_HP_REGULATOR1

0x60 - need_des

Source

pub fn hp_modem_xtal(&self) -> &HP_MODEM_XTAL

0x64 - need_des

Source

pub fn hp_sleep_dig_power(&self) -> &HP_SLEEP_DIG_POWER

0x68 - need_des

Source

pub fn hp_sleep_icg_hp_func(&self) -> &HP_SLEEP_ICG_HP_FUNC

0x6c - need_des

Source

pub fn hp_sleep_icg_hp_apb(&self) -> &HP_SLEEP_ICG_HP_APB

0x70 - need_des

Source

pub fn hp_sleep_icg_modem(&self) -> &HP_SLEEP_ICG_MODEM

0x74 - need_des

Source

pub fn hp_sleep_hp_sys_cntl(&self) -> &HP_SLEEP_HP_SYS_CNTL

0x78 - need_des

Source

pub fn hp_sleep_hp_ck_power(&self) -> &HP_SLEEP_HP_CK_POWER

0x7c - need_des

Source

pub fn hp_sleep_bias(&self) -> &HP_SLEEP_BIAS

0x80 - need_des

Source

pub fn hp_sleep_backup(&self) -> &HP_SLEEP_BACKUP

0x84 - need_des

Source

pub fn hp_sleep_backup_clk(&self) -> &HP_SLEEP_BACKUP_CLK

0x88 - need_des

Source

pub fn hp_sleep_sysclk(&self) -> &HP_SLEEP_SYSCLK

0x8c - need_des

Source

pub fn hp_sleep_hp_regulator0(&self) -> &HP_SLEEP_HP_REGULATOR0

0x90 - need_des

Source

pub fn hp_sleep_hp_regulator1(&self) -> &HP_SLEEP_HP_REGULATOR1

0x94 - need_des

Source

pub fn hp_sleep_xtal(&self) -> &HP_SLEEP_XTAL

0x98 - need_des

Source

pub fn hp_sleep_lp_regulator0(&self) -> &HP_SLEEP_LP_REGULATOR0

0x9c - need_des

Source

pub fn hp_sleep_lp_regulator1(&self) -> &HP_SLEEP_LP_REGULATOR1

0xa0 - need_des

Source

pub fn hp_sleep_lp_dcdc_reserve(&self) -> &HP_SLEEP_LP_DCDC_RESERVE

0xa4 - need_des

Source

pub fn hp_sleep_lp_dig_power(&self) -> &HP_SLEEP_LP_DIG_POWER

0xa8 - need_des

Source

pub fn hp_sleep_lp_ck_power(&self) -> &HP_SLEEP_LP_CK_POWER

0xac - need_des

Source

pub fn lp_sleep_lp_bias_reserve(&self) -> &LP_SLEEP_LP_BIAS_RESERVE

0xb0 - need_des

Source

pub fn lp_sleep_lp_regulator0(&self) -> &LP_SLEEP_LP_REGULATOR0

0xb4 - need_des

Source

pub fn lp_sleep_lp_regulator1(&self) -> &LP_SLEEP_LP_REGULATOR1

0xb8 - need_des

Source

pub fn lp_sleep_xtal(&self) -> &LP_SLEEP_XTAL

0xbc - need_des

Source

pub fn lp_sleep_lp_dig_power(&self) -> &LP_SLEEP_LP_DIG_POWER

0xc0 - need_des

Source

pub fn lp_sleep_lp_ck_power(&self) -> &LP_SLEEP_LP_CK_POWER

0xc4 - need_des

Source

pub fn lp_sleep_bias(&self) -> &LP_SLEEP_BIAS

0xc8 - need_des

Source

pub fn imm_hp_ck_power(&self) -> &IMM_HP_CK_POWER

0xcc - need_des

Source

pub fn imm_sleep_sysclk(&self) -> &IMM_SLEEP_SYSCLK

0xd0 - need_des

Source

pub fn imm_hp_func_icg(&self) -> &IMM_HP_FUNC_ICG

0xd4 - need_des

Source

pub fn imm_hp_apb_icg(&self) -> &IMM_HP_APB_ICG

0xd8 - need_des

Source

pub fn imm_modem_icg(&self) -> &IMM_MODEM_ICG

0xdc - need_des

Source

pub fn imm_lp_icg(&self) -> &IMM_LP_ICG

0xe0 - need_des

Source

pub fn imm_pad_hold_all(&self) -> &IMM_PAD_HOLD_ALL

0xe4 - need_des

Source

pub fn imm_i2c_iso(&self) -> &IMM_I2C_ISO

0xe8 - need_des

Source

pub fn power_wait_timer0(&self) -> &POWER_WAIT_TIMER0

0xec - need_des

Source

pub fn power_wait_timer1(&self) -> &POWER_WAIT_TIMER1

0xf0 - need_des

Source

pub fn power_pd_top_cntl(&self) -> &POWER_PD_TOP_CNTL

0xf4 - need_des

Source

pub fn power_pd_cnnt_cntl(&self) -> &POWER_PD_CNNT_CNTL

0xf8 - need_des

Source

pub fn power_pd_hpmem_cntl(&self) -> &POWER_PD_HPMEM_CNTL

0xfc - need_des

Source

pub fn power_pd_top_mask(&self) -> &POWER_PD_TOP_MASK

0x100 - need_des

Source

pub fn power_pd_cnnt_mask(&self) -> &POWER_PD_CNNT_MASK

0x104 - need_des

Source

pub fn power_pd_hpmem_mask(&self) -> &POWER_PD_HPMEM_MASK

0x108 - need_des

Source

pub fn power_dcdc_switch(&self) -> &POWER_DCDC_SWITCH

0x10c - need_des

Source

pub fn power_pd_lpperi_cntl(&self) -> &POWER_PD_LPPERI_CNTL

0x110 - need_des

Source

pub fn power_pd_lpperi_mask(&self) -> &POWER_PD_LPPERI_MASK

0x114 - need_des

Source

pub fn power_hp_pad(&self) -> &POWER_HP_PAD

0x118 - need_des

Source

pub fn power_ck_wait_cntl(&self) -> &POWER_CK_WAIT_CNTL

0x11c - need_des

Source

pub fn slp_wakeup_cntl0(&self) -> &SLP_WAKEUP_CNTL0

0x120 - need_des

Source

pub fn slp_wakeup_cntl1(&self) -> &SLP_WAKEUP_CNTL1

0x124 - need_des

Source

pub fn slp_wakeup_cntl2(&self) -> &SLP_WAKEUP_CNTL2

0x128 - need_des

Source

pub fn slp_wakeup_cntl3(&self) -> &SLP_WAKEUP_CNTL3

0x12c - need_des

Source

pub fn slp_wakeup_cntl4(&self) -> &SLP_WAKEUP_CNTL4

0x130 - need_des

Source

pub fn slp_wakeup_cntl5(&self) -> &SLP_WAKEUP_CNTL5

0x134 - need_des

Source

pub fn slp_wakeup_cntl6(&self) -> &SLP_WAKEUP_CNTL6

0x138 - need_des

Source

pub fn slp_wakeup_cntl7(&self) -> &SLP_WAKEUP_CNTL7

0x13c - need_des

Source

pub fn slp_wakeup_cntl8(&self) -> &SLP_WAKEUP_CNTL8

0x140 - need_des

Source

pub fn slp_wakeup_status0(&self) -> &SLP_WAKEUP_STATUS0

0x144 - need_des

Source

pub fn slp_wakeup_status1(&self) -> &SLP_WAKEUP_STATUS1

0x148 - need_des

Source

pub fn slp_wakeup_status2(&self) -> &SLP_WAKEUP_STATUS2

0x14c - need_des

Source

pub fn hp_ck_poweron(&self) -> &HP_CK_POWERON

0x150 - need_des

Source

pub fn hp_ck_cntl(&self) -> &HP_CK_CNTL

0x154 - need_des

Source

pub fn por_status(&self) -> &POR_STATUS

0x158 - need_des

Source

pub fn rf_pwc(&self) -> &RF_PWC

0x15c - need_des

Source

pub fn backup_cfg(&self) -> &BACKUP_CFG

0x160 - need_des

Source

pub fn int_raw(&self) -> &INT_RAW

0x164 - need_des

Source

pub fn int_st(&self) -> &INT_ST

0x168 - need_des

Source

pub fn int_ena(&self) -> &INT_ENA

0x16c - need_des

Source

pub fn int_clr(&self) -> &INT_CLR

0x170 - need_des

Source

pub fn lp_int_raw(&self) -> &LP_INT_RAW

0x174 - need_des

Source

pub fn lp_int_st(&self) -> &LP_INT_ST

0x178 - need_des

Source

pub fn lp_int_ena(&self) -> &LP_INT_ENA

0x17c - need_des

Source

pub fn lp_int_clr(&self) -> &LP_INT_CLR

0x180 - need_des

Source

pub fn lp_cpu_pwr0(&self) -> &LP_CPU_PWR0

0x184 - need_des

Source

pub fn lp_cpu_pwr1(&self) -> &LP_CPU_PWR1

0x188 - need_des

Source

pub fn lp_cpu_pwr2(&self) -> &LP_CPU_PWR2

0x18c - need_des

Source

pub fn lp_cpu_pwr3(&self) -> &LP_CPU_PWR3

0x190 - need_des

Source

pub fn lp_cpu_pwr4(&self) -> &LP_CPU_PWR4

0x194 - need_des

Source

pub fn lp_cpu_pwr5(&self) -> &LP_CPU_PWR5

0x198 - need_des

Source

pub fn hp_lp_cpu_comm(&self) -> &HP_LP_CPU_COMM

0x19c - need_des

Source

pub fn hp_regulator_cfg(&self) -> &HP_REGULATOR_CFG

0x1a0 - need_des

Source

pub fn main_state(&self) -> &MAIN_STATE

0x1a4 - need_des

Source

pub fn pwr_state(&self) -> &PWR_STATE

0x1a8 - need_des

Source

pub fn clk_state0(&self) -> &CLK_STATE0

0x1ac - need_des

Source

pub fn clk_state1(&self) -> &CLK_STATE1

0x1b0 - need_des

Source

pub fn clk_state2(&self) -> &CLK_STATE2

0x1b4 - need_des

Source

pub fn ext_ldo_p0_0p1a(&self) -> &EXT_LDO_P0_0P1A

0x1b8 - need_des

Source

pub fn ext_ldo_p0_0p1a_ana(&self) -> &EXT_LDO_P0_0P1A_ANA

0x1bc - need_des

Source

pub fn ext_ldo_p0_0p2a(&self) -> &EXT_LDO_P0_0P2A

0x1c0 - need_des

Source

pub fn ext_ldo_p0_0p2a_ana(&self) -> &EXT_LDO_P0_0P2A_ANA

0x1c4 - need_des

Source

pub fn ext_ldo_p0_0p3a(&self) -> &EXT_LDO_P0_0P3A

0x1c8 - need_des

Source

pub fn ext_ldo_p0_0p3a_ana(&self) -> &EXT_LDO_P0_0P3A_ANA

0x1cc - need_des

Source

pub fn ext_ldo_p1_0p1a(&self) -> &EXT_LDO_P1_0P1A

0x1d0 - need_des

Source

pub fn ext_ldo_p1_0p1a_ana(&self) -> &EXT_LDO_P1_0P1A_ANA

0x1d4 - need_des

Source

pub fn ext_ldo_p1_0p2a(&self) -> &EXT_LDO_P1_0P2A

0x1d8 - need_des

Source

pub fn ext_ldo_p1_0p2a_ana(&self) -> &EXT_LDO_P1_0P2A_ANA

0x1dc - need_des

Source

pub fn ext_ldo_p1_0p3a(&self) -> &EXT_LDO_P1_0P3A

0x1e0 - need_des

Source

pub fn ext_ldo_p1_0p3a_ana(&self) -> &EXT_LDO_P1_0P3A_ANA

0x1e4 - need_des

Source

pub fn ext_wakeup_lv(&self) -> &EXT_WAKEUP_LV

0x1e8 - need_des

Source

pub fn ext_wakeup_sel(&self) -> &EXT_WAKEUP_SEL

0x1ec - need_des

Source

pub fn ext_wakeup_st(&self) -> &EXT_WAKEUP_ST

0x1f0 - need_des

Source

pub fn ext_wakeup_cntl(&self) -> &EXT_WAKEUP_CNTL

0x1f4 - need_des

Source

pub fn sdio_wakeup_cntl(&self) -> &SDIO_WAKEUP_CNTL

0x1f8 - need_des

Source

pub fn xtal_slp(&self) -> &XTAL_SLP

0x1fc - need_des

Source

pub fn cpu_sw_stall(&self) -> &CPU_SW_STALL

0x200 - need_des

Source

pub fn dcm_ctrl(&self) -> &DCM_CTRL

0x204 - need_des

Source

pub fn dcm_wait_delay(&self) -> &DCM_WAIT_DELAY

0x208 - need_des

Source

pub fn vddbat_cfg(&self) -> &VDDBAT_CFG

0x20c - need_des

Source

pub fn touch_pwr_cntl(&self) -> &TOUCH_PWR_CNTL

0x210 - need_des

Source

pub fn rdn_eco(&self) -> &RDN_ECO

0x214 - need_des

Source

pub fn date(&self) -> &DATE

0x3fc - need_des

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.