pub struct PMU { /* private fields */ }
Expand description
PMU Peripheral
Implementations§
source§impl PMU
impl PMU
sourcepub const PTR: *const RegisterBlock = {0x600b0000 as *const pmu::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x600b0000 as *const pmu::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
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>§
sourcepub fn hp_active_dig_power(&self) -> &HP_ACTIVE_DIG_POWER
pub fn hp_active_dig_power(&self) -> &HP_ACTIVE_DIG_POWER
0x00 - need_des
sourcepub fn hp_active_icg_hp_func(&self) -> &HP_ACTIVE_ICG_HP_FUNC
pub fn hp_active_icg_hp_func(&self) -> &HP_ACTIVE_ICG_HP_FUNC
0x04 - need_des
sourcepub fn hp_active_icg_hp_apb(&self) -> &HP_ACTIVE_ICG_HP_APB
pub fn hp_active_icg_hp_apb(&self) -> &HP_ACTIVE_ICG_HP_APB
0x08 - need_des
sourcepub fn hp_active_icg_modem(&self) -> &HP_ACTIVE_ICG_MODEM
pub fn hp_active_icg_modem(&self) -> &HP_ACTIVE_ICG_MODEM
0x0c - need_des
sourcepub fn hp_active_hp_sys_cntl(&self) -> &HP_ACTIVE_HP_SYS_CNTL
pub fn hp_active_hp_sys_cntl(&self) -> &HP_ACTIVE_HP_SYS_CNTL
0x10 - need_des
sourcepub fn hp_active_hp_ck_power(&self) -> &HP_ACTIVE_HP_CK_POWER
pub fn hp_active_hp_ck_power(&self) -> &HP_ACTIVE_HP_CK_POWER
0x14 - need_des
sourcepub fn hp_active_bias(&self) -> &HP_ACTIVE_BIAS
pub fn hp_active_bias(&self) -> &HP_ACTIVE_BIAS
0x18 - need_des
sourcepub fn hp_active_backup(&self) -> &HP_ACTIVE_BACKUP
pub fn hp_active_backup(&self) -> &HP_ACTIVE_BACKUP
0x1c - need_des
sourcepub fn hp_active_backup_clk(&self) -> &HP_ACTIVE_BACKUP_CLK
pub fn hp_active_backup_clk(&self) -> &HP_ACTIVE_BACKUP_CLK
0x20 - need_des
sourcepub fn hp_active_sysclk(&self) -> &HP_ACTIVE_SYSCLK
pub fn hp_active_sysclk(&self) -> &HP_ACTIVE_SYSCLK
0x24 - need_des
sourcepub fn hp_active_hp_regulator0(&self) -> &HP_ACTIVE_HP_REGULATOR0
pub fn hp_active_hp_regulator0(&self) -> &HP_ACTIVE_HP_REGULATOR0
0x28 - need_des
sourcepub fn hp_active_hp_regulator1(&self) -> &HP_ACTIVE_HP_REGULATOR1
pub fn hp_active_hp_regulator1(&self) -> &HP_ACTIVE_HP_REGULATOR1
0x2c - need_des
sourcepub fn hp_active_xtal(&self) -> &HP_ACTIVE_XTAL
pub fn hp_active_xtal(&self) -> &HP_ACTIVE_XTAL
0x30 - need_des
sourcepub fn hp_modem_dig_power(&self) -> &HP_MODEM_DIG_POWER
pub fn hp_modem_dig_power(&self) -> &HP_MODEM_DIG_POWER
0x34 - need_des
sourcepub fn hp_modem_icg_hp_func(&self) -> &HP_MODEM_ICG_HP_FUNC
pub fn hp_modem_icg_hp_func(&self) -> &HP_MODEM_ICG_HP_FUNC
0x38 - need_des
sourcepub fn hp_modem_icg_hp_apb(&self) -> &HP_MODEM_ICG_HP_APB
pub fn hp_modem_icg_hp_apb(&self) -> &HP_MODEM_ICG_HP_APB
0x3c - need_des
sourcepub fn hp_modem_icg_modem(&self) -> &HP_MODEM_ICG_MODEM
pub fn hp_modem_icg_modem(&self) -> &HP_MODEM_ICG_MODEM
0x40 - need_des
sourcepub fn hp_modem_hp_sys_cntl(&self) -> &HP_MODEM_HP_SYS_CNTL
pub fn hp_modem_hp_sys_cntl(&self) -> &HP_MODEM_HP_SYS_CNTL
0x44 - need_des
sourcepub fn hp_modem_hp_ck_power(&self) -> &HP_MODEM_HP_CK_POWER
pub fn hp_modem_hp_ck_power(&self) -> &HP_MODEM_HP_CK_POWER
0x48 - need_des
sourcepub fn hp_modem_bias(&self) -> &HP_MODEM_BIAS
pub fn hp_modem_bias(&self) -> &HP_MODEM_BIAS
0x4c - need_des
sourcepub fn hp_modem_backup(&self) -> &HP_MODEM_BACKUP
pub fn hp_modem_backup(&self) -> &HP_MODEM_BACKUP
0x50 - need_des
sourcepub fn hp_modem_backup_clk(&self) -> &HP_MODEM_BACKUP_CLK
pub fn hp_modem_backup_clk(&self) -> &HP_MODEM_BACKUP_CLK
0x54 - need_des
sourcepub fn hp_modem_sysclk(&self) -> &HP_MODEM_SYSCLK
pub fn hp_modem_sysclk(&self) -> &HP_MODEM_SYSCLK
0x58 - need_des
sourcepub fn hp_modem_hp_regulator0(&self) -> &HP_MODEM_HP_REGULATOR0
pub fn hp_modem_hp_regulator0(&self) -> &HP_MODEM_HP_REGULATOR0
0x5c - need_des
sourcepub fn hp_modem_hp_regulator1(&self) -> &HP_MODEM_HP_REGULATOR1
pub fn hp_modem_hp_regulator1(&self) -> &HP_MODEM_HP_REGULATOR1
0x60 - need_des
sourcepub fn hp_modem_xtal(&self) -> &HP_MODEM_XTAL
pub fn hp_modem_xtal(&self) -> &HP_MODEM_XTAL
0x64 - need_des
sourcepub fn hp_sleep_dig_power(&self) -> &HP_SLEEP_DIG_POWER
pub fn hp_sleep_dig_power(&self) -> &HP_SLEEP_DIG_POWER
0x68 - need_des
sourcepub fn hp_sleep_icg_hp_func(&self) -> &HP_SLEEP_ICG_HP_FUNC
pub fn hp_sleep_icg_hp_func(&self) -> &HP_SLEEP_ICG_HP_FUNC
0x6c - need_des
sourcepub fn hp_sleep_icg_hp_apb(&self) -> &HP_SLEEP_ICG_HP_APB
pub fn hp_sleep_icg_hp_apb(&self) -> &HP_SLEEP_ICG_HP_APB
0x70 - need_des
sourcepub fn hp_sleep_icg_modem(&self) -> &HP_SLEEP_ICG_MODEM
pub fn hp_sleep_icg_modem(&self) -> &HP_SLEEP_ICG_MODEM
0x74 - need_des
sourcepub fn hp_sleep_hp_sys_cntl(&self) -> &HP_SLEEP_HP_SYS_CNTL
pub fn hp_sleep_hp_sys_cntl(&self) -> &HP_SLEEP_HP_SYS_CNTL
0x78 - need_des
sourcepub fn hp_sleep_hp_ck_power(&self) -> &HP_SLEEP_HP_CK_POWER
pub fn hp_sleep_hp_ck_power(&self) -> &HP_SLEEP_HP_CK_POWER
0x7c - need_des
sourcepub fn hp_sleep_bias(&self) -> &HP_SLEEP_BIAS
pub fn hp_sleep_bias(&self) -> &HP_SLEEP_BIAS
0x80 - need_des
sourcepub fn hp_sleep_backup(&self) -> &HP_SLEEP_BACKUP
pub fn hp_sleep_backup(&self) -> &HP_SLEEP_BACKUP
0x84 - need_des
sourcepub fn hp_sleep_backup_clk(&self) -> &HP_SLEEP_BACKUP_CLK
pub fn hp_sleep_backup_clk(&self) -> &HP_SLEEP_BACKUP_CLK
0x88 - need_des
sourcepub fn hp_sleep_sysclk(&self) -> &HP_SLEEP_SYSCLK
pub fn hp_sleep_sysclk(&self) -> &HP_SLEEP_SYSCLK
0x8c - need_des
sourcepub fn hp_sleep_hp_regulator0(&self) -> &HP_SLEEP_HP_REGULATOR0
pub fn hp_sleep_hp_regulator0(&self) -> &HP_SLEEP_HP_REGULATOR0
0x90 - need_des
sourcepub fn hp_sleep_hp_regulator1(&self) -> &HP_SLEEP_HP_REGULATOR1
pub fn hp_sleep_hp_regulator1(&self) -> &HP_SLEEP_HP_REGULATOR1
0x94 - need_des
sourcepub fn hp_sleep_xtal(&self) -> &HP_SLEEP_XTAL
pub fn hp_sleep_xtal(&self) -> &HP_SLEEP_XTAL
0x98 - need_des
sourcepub fn hp_sleep_lp_regulator0(&self) -> &HP_SLEEP_LP_REGULATOR0
pub fn hp_sleep_lp_regulator0(&self) -> &HP_SLEEP_LP_REGULATOR0
0x9c - need_des
sourcepub fn hp_sleep_lp_regulator1(&self) -> &HP_SLEEP_LP_REGULATOR1
pub fn hp_sleep_lp_regulator1(&self) -> &HP_SLEEP_LP_REGULATOR1
0xa0 - need_des
sourcepub fn hp_sleep_lp_dcdc_reserve(&self) -> &HP_SLEEP_LP_DCDC_RESERVE
pub fn hp_sleep_lp_dcdc_reserve(&self) -> &HP_SLEEP_LP_DCDC_RESERVE
0xa4 - need_des
sourcepub fn hp_sleep_lp_dig_power(&self) -> &HP_SLEEP_LP_DIG_POWER
pub fn hp_sleep_lp_dig_power(&self) -> &HP_SLEEP_LP_DIG_POWER
0xa8 - need_des
sourcepub fn hp_sleep_lp_ck_power(&self) -> &HP_SLEEP_LP_CK_POWER
pub fn hp_sleep_lp_ck_power(&self) -> &HP_SLEEP_LP_CK_POWER
0xac - need_des
sourcepub fn lp_sleep_lp_bias_reserve(&self) -> &LP_SLEEP_LP_BIAS_RESERVE
pub fn lp_sleep_lp_bias_reserve(&self) -> &LP_SLEEP_LP_BIAS_RESERVE
0xb0 - need_des
sourcepub fn lp_sleep_lp_regulator0(&self) -> &LP_SLEEP_LP_REGULATOR0
pub fn lp_sleep_lp_regulator0(&self) -> &LP_SLEEP_LP_REGULATOR0
0xb4 - need_des
sourcepub fn lp_sleep_lp_regulator1(&self) -> &LP_SLEEP_LP_REGULATOR1
pub fn lp_sleep_lp_regulator1(&self) -> &LP_SLEEP_LP_REGULATOR1
0xb8 - need_des
sourcepub fn lp_sleep_xtal(&self) -> &LP_SLEEP_XTAL
pub fn lp_sleep_xtal(&self) -> &LP_SLEEP_XTAL
0xbc - need_des
sourcepub fn lp_sleep_lp_dig_power(&self) -> &LP_SLEEP_LP_DIG_POWER
pub fn lp_sleep_lp_dig_power(&self) -> &LP_SLEEP_LP_DIG_POWER
0xc0 - need_des
sourcepub fn lp_sleep_lp_ck_power(&self) -> &LP_SLEEP_LP_CK_POWER
pub fn lp_sleep_lp_ck_power(&self) -> &LP_SLEEP_LP_CK_POWER
0xc4 - need_des
sourcepub fn lp_sleep_bias(&self) -> &LP_SLEEP_BIAS
pub fn lp_sleep_bias(&self) -> &LP_SLEEP_BIAS
0xc8 - need_des
sourcepub fn imm_hp_ck_power(&self) -> &IMM_HP_CK_POWER
pub fn imm_hp_ck_power(&self) -> &IMM_HP_CK_POWER
0xcc - need_des
sourcepub fn imm_sleep_sysclk(&self) -> &IMM_SLEEP_SYSCLK
pub fn imm_sleep_sysclk(&self) -> &IMM_SLEEP_SYSCLK
0xd0 - need_des
sourcepub fn imm_hp_func_icg(&self) -> &IMM_HP_FUNC_ICG
pub fn imm_hp_func_icg(&self) -> &IMM_HP_FUNC_ICG
0xd4 - need_des
sourcepub fn imm_hp_apb_icg(&self) -> &IMM_HP_APB_ICG
pub fn imm_hp_apb_icg(&self) -> &IMM_HP_APB_ICG
0xd8 - need_des
sourcepub fn imm_modem_icg(&self) -> &IMM_MODEM_ICG
pub fn imm_modem_icg(&self) -> &IMM_MODEM_ICG
0xdc - need_des
sourcepub fn imm_lp_icg(&self) -> &IMM_LP_ICG
pub fn imm_lp_icg(&self) -> &IMM_LP_ICG
0xe0 - need_des
sourcepub fn imm_pad_hold_all(&self) -> &IMM_PAD_HOLD_ALL
pub fn imm_pad_hold_all(&self) -> &IMM_PAD_HOLD_ALL
0xe4 - need_des
sourcepub fn imm_i2c_iso(&self) -> &IMM_I2C_ISO
pub fn imm_i2c_iso(&self) -> &IMM_I2C_ISO
0xe8 - need_des
sourcepub fn power_wait_timer0(&self) -> &POWER_WAIT_TIMER0
pub fn power_wait_timer0(&self) -> &POWER_WAIT_TIMER0
0xec - need_des
sourcepub fn power_wait_timer1(&self) -> &POWER_WAIT_TIMER1
pub fn power_wait_timer1(&self) -> &POWER_WAIT_TIMER1
0xf0 - need_des
sourcepub fn power_pd_top_cntl(&self) -> &POWER_PD_TOP_CNTL
pub fn power_pd_top_cntl(&self) -> &POWER_PD_TOP_CNTL
0xf4 - need_des
sourcepub fn power_pd_hpaon_cntl(&self) -> &POWER_PD_HPAON_CNTL
pub fn power_pd_hpaon_cntl(&self) -> &POWER_PD_HPAON_CNTL
0xf8 - need_des
sourcepub fn power_pd_hpcpu_cntl(&self) -> &POWER_PD_HPCPU_CNTL
pub fn power_pd_hpcpu_cntl(&self) -> &POWER_PD_HPCPU_CNTL
0xfc - need_des
sourcepub fn power_pd_hpperi_reserve(&self) -> &POWER_PD_HPPERI_RESERVE
pub fn power_pd_hpperi_reserve(&self) -> &POWER_PD_HPPERI_RESERVE
0x100 - need_des
sourcepub fn power_pd_hpwifi_cntl(&self) -> &POWER_PD_HPWIFI_CNTL
pub fn power_pd_hpwifi_cntl(&self) -> &POWER_PD_HPWIFI_CNTL
0x104 - need_des
sourcepub fn power_pd_lpperi_cntl(&self) -> &POWER_PD_LPPERI_CNTL
pub fn power_pd_lpperi_cntl(&self) -> &POWER_PD_LPPERI_CNTL
0x108 - need_des
sourcepub fn power_pd_mem_cntl(&self) -> &POWER_PD_MEM_CNTL
pub fn power_pd_mem_cntl(&self) -> &POWER_PD_MEM_CNTL
0x10c - need_des
sourcepub fn power_pd_mem_mask(&self) -> &POWER_PD_MEM_MASK
pub fn power_pd_mem_mask(&self) -> &POWER_PD_MEM_MASK
0x110 - need_des
sourcepub fn power_hp_pad(&self) -> &POWER_HP_PAD
pub fn power_hp_pad(&self) -> &POWER_HP_PAD
0x114 - need_des
sourcepub fn power_vdd_spi_cntl(&self) -> &POWER_VDD_SPI_CNTL
pub fn power_vdd_spi_cntl(&self) -> &POWER_VDD_SPI_CNTL
0x118 - need_des
sourcepub fn power_ck_wait_cntl(&self) -> &POWER_CK_WAIT_CNTL
pub fn power_ck_wait_cntl(&self) -> &POWER_CK_WAIT_CNTL
0x11c - need_des
sourcepub fn slp_wakeup_cntl0(&self) -> &SLP_WAKEUP_CNTL0
pub fn slp_wakeup_cntl0(&self) -> &SLP_WAKEUP_CNTL0
0x120 - need_des
sourcepub fn slp_wakeup_cntl1(&self) -> &SLP_WAKEUP_CNTL1
pub fn slp_wakeup_cntl1(&self) -> &SLP_WAKEUP_CNTL1
0x124 - need_des
sourcepub fn slp_wakeup_cntl2(&self) -> &SLP_WAKEUP_CNTL2
pub fn slp_wakeup_cntl2(&self) -> &SLP_WAKEUP_CNTL2
0x128 - need_des
sourcepub fn slp_wakeup_cntl3(&self) -> &SLP_WAKEUP_CNTL3
pub fn slp_wakeup_cntl3(&self) -> &SLP_WAKEUP_CNTL3
0x12c - need_des
sourcepub fn slp_wakeup_cntl4(&self) -> &SLP_WAKEUP_CNTL4
pub fn slp_wakeup_cntl4(&self) -> &SLP_WAKEUP_CNTL4
0x130 - need_des
sourcepub fn slp_wakeup_cntl5(&self) -> &SLP_WAKEUP_CNTL5
pub fn slp_wakeup_cntl5(&self) -> &SLP_WAKEUP_CNTL5
0x134 - need_des
sourcepub fn slp_wakeup_cntl6(&self) -> &SLP_WAKEUP_CNTL6
pub fn slp_wakeup_cntl6(&self) -> &SLP_WAKEUP_CNTL6
0x138 - need_des
sourcepub fn slp_wakeup_cntl7(&self) -> &SLP_WAKEUP_CNTL7
pub fn slp_wakeup_cntl7(&self) -> &SLP_WAKEUP_CNTL7
0x13c - need_des
sourcepub fn slp_wakeup_status0(&self) -> &SLP_WAKEUP_STATUS0
pub fn slp_wakeup_status0(&self) -> &SLP_WAKEUP_STATUS0
0x140 - need_des
sourcepub fn slp_wakeup_status1(&self) -> &SLP_WAKEUP_STATUS1
pub fn slp_wakeup_status1(&self) -> &SLP_WAKEUP_STATUS1
0x144 - need_des
sourcepub fn hp_ck_poweron(&self) -> &HP_CK_POWERON
pub fn hp_ck_poweron(&self) -> &HP_CK_POWERON
0x148 - need_des
sourcepub fn hp_ck_cntl(&self) -> &HP_CK_CNTL
pub fn hp_ck_cntl(&self) -> &HP_CK_CNTL
0x14c - need_des
sourcepub fn por_status(&self) -> &POR_STATUS
pub fn por_status(&self) -> &POR_STATUS
0x150 - need_des
sourcepub fn vddbat_cfg(&self) -> &VDDBAT_CFG
pub fn vddbat_cfg(&self) -> &VDDBAT_CFG
0x158 - need_des
sourcepub fn backup_cfg(&self) -> &BACKUP_CFG
pub fn backup_cfg(&self) -> &BACKUP_CFG
0x15c - need_des
sourcepub fn hp_int_ena(&self) -> &HP_INT_ENA
pub fn hp_int_ena(&self) -> &HP_INT_ENA
0x168 - need_des
sourcepub fn hp_int_clr(&self) -> &HP_INT_CLR
pub fn hp_int_clr(&self) -> &HP_INT_CLR
0x16c - need_des
sourcepub fn lp_int_raw(&self) -> &LP_INT_RAW
pub fn lp_int_raw(&self) -> &LP_INT_RAW
0x170 - need_des
sourcepub fn lp_int_ena(&self) -> &LP_INT_ENA
pub fn lp_int_ena(&self) -> &LP_INT_ENA
0x178 - need_des
sourcepub fn lp_int_clr(&self) -> &LP_INT_CLR
pub fn lp_int_clr(&self) -> &LP_INT_CLR
0x17c - need_des
sourcepub fn lp_cpu_pwr0(&self) -> &LP_CPU_PWR0
pub fn lp_cpu_pwr0(&self) -> &LP_CPU_PWR0
0x180 - need_des
sourcepub fn lp_cpu_pwr1(&self) -> &LP_CPU_PWR1
pub fn lp_cpu_pwr1(&self) -> &LP_CPU_PWR1
0x184 - need_des
sourcepub fn hp_lp_cpu_comm(&self) -> &HP_LP_CPU_COMM
pub fn hp_lp_cpu_comm(&self) -> &HP_LP_CPU_COMM
0x188 - need_des
sourcepub fn hp_regulator_cfg(&self) -> &HP_REGULATOR_CFG
pub fn hp_regulator_cfg(&self) -> &HP_REGULATOR_CFG
0x18c - need_des
sourcepub fn main_state(&self) -> &MAIN_STATE
pub fn main_state(&self) -> &MAIN_STATE
0x190 - need_des
sourcepub fn clk_state0(&self) -> &CLK_STATE0
pub fn clk_state0(&self) -> &CLK_STATE0
0x198 - need_des
sourcepub fn clk_state1(&self) -> &CLK_STATE1
pub fn clk_state1(&self) -> &CLK_STATE1
0x19c - need_des
sourcepub fn clk_state2(&self) -> &CLK_STATE2
pub fn clk_state2(&self) -> &CLK_STATE2
0x1a0 - need_des
sourcepub fn vdd_spi_status(&self) -> &VDD_SPI_STATUS
pub fn vdd_spi_status(&self) -> &VDD_SPI_STATUS
0x1a4 - need_des