Struct esp32h2::PMU

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

PMU Peripheral

Implementations§

source§

impl PMU

source

pub const PTR: *const RegisterBlock = {0x600b0000 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_hpaon_cntl(&self) -> &POWER_PD_HPAON_CNTL

0xf8 - need_des

source

pub fn power_pd_hpcpu_cntl(&self) -> &POWER_PD_HPCPU_CNTL

0xfc - need_des

source

pub fn power_pd_hpperi_reserve(&self) -> &POWER_PD_HPPERI_RESERVE

0x100 - need_des

source

pub fn power_pd_hpwifi_cntl(&self) -> &POWER_PD_HPWIFI_CNTL

0x104 - need_des

source

pub fn power_pd_lpperi_cntl(&self) -> &POWER_PD_LPPERI_CNTL

0x108 - need_des

source

pub fn power_pd_mem_cntl(&self) -> &POWER_PD_MEM_CNTL

0x10c - need_des

source

pub fn power_pd_mem_mask(&self) -> &POWER_PD_MEM_MASK

0x110 - need_des

source

pub fn power_hp_pad(&self) -> &POWER_HP_PAD

0x114 - need_des

source

pub fn power_vdd_spi_cntl(&self) -> &POWER_VDD_SPI_CNTL

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_status0(&self) -> &SLP_WAKEUP_STATUS0

0x140 - need_des

source

pub fn slp_wakeup_status1(&self) -> &SLP_WAKEUP_STATUS1

0x144 - need_des

source

pub fn hp_ck_poweron(&self) -> &HP_CK_POWERON

0x148 - need_des

source

pub fn hp_ck_cntl(&self) -> &HP_CK_CNTL

0x14c - need_des

source

pub fn por_status(&self) -> &POR_STATUS

0x150 - need_des

source

pub fn rf_pwc(&self) -> &RF_PWC

0x154 - need_des

source

pub fn vddbat_cfg(&self) -> &VDDBAT_CFG

0x158 - need_des

source

pub fn backup_cfg(&self) -> &BACKUP_CFG

0x15c - need_des

source

pub fn int_raw(&self) -> &INT_RAW

0x160 - need_des

source

pub fn hp_int_st(&self) -> &HP_INT_ST

0x164 - need_des

source

pub fn hp_int_ena(&self) -> &HP_INT_ENA

0x168 - need_des

source

pub fn hp_int_clr(&self) -> &HP_INT_CLR

0x16c - need_des

source

pub fn lp_int_raw(&self) -> &LP_INT_RAW

0x170 - need_des

source

pub fn lp_int_st(&self) -> &LP_INT_ST

0x174 - need_des

source

pub fn lp_int_ena(&self) -> &LP_INT_ENA

0x178 - need_des

source

pub fn lp_int_clr(&self) -> &LP_INT_CLR

0x17c - need_des

source

pub fn lp_cpu_pwr0(&self) -> &LP_CPU_PWR0

0x180 - need_des

source

pub fn lp_cpu_pwr1(&self) -> &LP_CPU_PWR1

0x184 - need_des

source

pub fn hp_lp_cpu_comm(&self) -> &HP_LP_CPU_COMM

0x188 - need_des

source

pub fn hp_regulator_cfg(&self) -> &HP_REGULATOR_CFG

0x18c - need_des

source

pub fn main_state(&self) -> &MAIN_STATE

0x190 - need_des

source

pub fn pwr_state(&self) -> &PWR_STATE

0x194 - need_des

source

pub fn clk_state0(&self) -> &CLK_STATE0

0x198 - need_des

source

pub fn clk_state1(&self) -> &CLK_STATE1

0x19c - need_des

source

pub fn clk_state2(&self) -> &CLK_STATE2

0x1a0 - need_des

source

pub fn vdd_spi_status(&self) -> &VDD_SPI_STATUS

0x1a4 - 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

§

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 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<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.