pub struct Pmu { /* private fields */ }Expand description
Power Management Unit
Implementations§
source§impl Pmu
impl Pmu
sourcepub const PTR: *const RegisterBlock = {0xff310000 as *const pmu::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xff310000 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 pmu_wakeup_cfg0(&self) -> &PmuWakeupCfg0
pub fn pmu_wakeup_cfg0(&self) -> &PmuWakeupCfg0
0x00 - pmu wakeup configure register 0
sourcepub fn pmu_wakeup_cfg1(&self) -> &PmuWakeupCfg1
pub fn pmu_wakeup_cfg1(&self) -> &PmuWakeupCfg1
0x04 - pmu wakeup configure register 1
sourcepub fn pmu_wakeup_cfg2(&self) -> &PmuWakeupCfg2
pub fn pmu_wakeup_cfg2(&self) -> &PmuWakeupCfg2
0x08 - pmu wakeup configure register 2
sourcepub fn pmu_wakeup_cfg3(&self) -> &PmuWakeupCfg3
pub fn pmu_wakeup_cfg3(&self) -> &PmuWakeupCfg3
0x0c - pmu wakeup configure register 3
sourcepub fn pmu_wakeup_cfg4(&self) -> &PmuWakeupCfg4
pub fn pmu_wakeup_cfg4(&self) -> &PmuWakeupCfg4
0x10 - pmu wakeup configure register 4
sourcepub fn pmu_pwrdn_con(&self) -> &PmuPwrdnCon
pub fn pmu_pwrdn_con(&self) -> &PmuPwrdnCon
0x14 - pmu power down configure register
sourcepub fn pmu_pwrdn_st(&self) -> &PmuPwrdnSt
pub fn pmu_pwrdn_st(&self) -> &PmuPwrdnSt
0x18 - pmu power down status register
sourcepub fn pmu_pll_con(&self) -> &PmuPllCon
pub fn pmu_pll_con(&self) -> &PmuPllCon
0x1c - PLL low power control register
sourcepub fn pmu_pwrmode_con(&self) -> &PmuPwrmodeCon
pub fn pmu_pwrmode_con(&self) -> &PmuPwrmodeCon
0x20 - pmu power mode configure register of common resource
sourcepub fn pmu_sft_con(&self) -> &PmuSftCon
pub fn pmu_sft_con(&self) -> &PmuSftCon
0x24 - pmu software configure register
sourcepub fn pmu_int_con(&self) -> &PmuIntCon
pub fn pmu_int_con(&self) -> &PmuIntCon
0x28 - pmu interrupt configure register
sourcepub fn pmu_int_st(&self) -> &PmuIntSt
pub fn pmu_int_st(&self) -> &PmuIntSt
0x2c - pmu interrupt status register
sourcepub fn pmu_gpio0_pos_int_con(&self) -> &PmuGpio0PosIntCon
pub fn pmu_gpio0_pos_int_con(&self) -> &PmuGpio0PosIntCon
0x30 - pmu gpio0 posedge interrupt configure register
sourcepub fn pmu_gpio0_neg_int_con(&self) -> &PmuGpio0NegIntCon
pub fn pmu_gpio0_neg_int_con(&self) -> &PmuGpio0NegIntCon
0x34 - pmu gpio0 negedge interrupt configure register
sourcepub fn pmu_gpio1_pos_int_con(&self) -> &PmuGpio1PosIntCon
pub fn pmu_gpio1_pos_int_con(&self) -> &PmuGpio1PosIntCon
0x38 - pmu gpio1 posedge interrupt configure register
sourcepub fn pmu_gpio1_neg_int_con(&self) -> &PmuGpio1NegIntCon
pub fn pmu_gpio1_neg_int_con(&self) -> &PmuGpio1NegIntCon
0x3c - pmu gpio1 negedge interrupt configure register
sourcepub fn pmu_gpio0_pos_int_st(&self) -> &PmuGpio0PosIntSt
pub fn pmu_gpio0_pos_int_st(&self) -> &PmuGpio0PosIntSt
0x40 - pmu gpio0 posedge interrupt status register
sourcepub fn pmu_gpio0_neg_int_st(&self) -> &PmuGpio0NegIntSt
pub fn pmu_gpio0_neg_int_st(&self) -> &PmuGpio0NegIntSt
0x44 - pmu gpio0 negedge interrupt status register
sourcepub fn pmu_gpio1_pos_int_st(&self) -> &PmuGpio1PosIntSt
pub fn pmu_gpio1_pos_int_st(&self) -> &PmuGpio1PosIntSt
0x48 - pmu gpio1 posedge interrupt status register
sourcepub fn pmu_gpio1_neg_int_st(&self) -> &PmuGpio1NegIntSt
pub fn pmu_gpio1_neg_int_st(&self) -> &PmuGpio1NegIntSt
0x4c - pmu gpio1 negedge interrupt status register
sourcepub fn pmu_pwrdn_inten(&self) -> &PmuPwrdnInten
pub fn pmu_pwrdn_inten(&self) -> &PmuPwrdnInten
0x50 - pmu power down interrupt enable register
sourcepub fn pmu_pwrdn_status(&self) -> &PmuPwrdnStatus
pub fn pmu_pwrdn_status(&self) -> &PmuPwrdnStatus
0x54 - pmu power down interrupt status register
sourcepub fn pmu_wakeup_status(&self) -> &PmuWakeupStatus
pub fn pmu_wakeup_status(&self) -> &PmuWakeupStatus
0x58 - pmu interrupt wakeup status register
sourcepub fn pmu_bus_clr(&self) -> &PmuBusClr
pub fn pmu_bus_clr(&self) -> &PmuBusClr
0x5c - pmu bus clear register
sourcepub fn pmu_bus_idle_req(&self) -> &PmuBusIdleReq
pub fn pmu_bus_idle_req(&self) -> &PmuBusIdleReq
0x60 - pmu bus idle request register
sourcepub fn pmu_bus_idle_st(&self) -> &PmuBusIdleSt
pub fn pmu_bus_idle_st(&self) -> &PmuBusIdleSt
0x64 - pmu bus idle status register
sourcepub fn pmu_bus_idle_ack(&self) -> &PmuBusIdleAck
pub fn pmu_bus_idle_ack(&self) -> &PmuBusIdleAck
0x68 - pmu bus idle ack status register
sourcepub fn pmu_cci500_con(&self) -> &PmuCci500Con
pub fn pmu_cci500_con(&self) -> &PmuCci500Con
0x6c - CCI-500 low power control register
sourcepub fn pmu_adb400_con(&self) -> &PmuAdb400Con
pub fn pmu_adb400_con(&self) -> &PmuAdb400Con
0x70 - adb-400 low power control register
sourcepub fn pmu_adb400_st(&self) -> &PmuAdb400St
pub fn pmu_adb400_st(&self) -> &PmuAdb400St
0x74 - adb-400 low power status register
sourcepub fn pmu_power_st(&self) -> &PmuPowerSt
pub fn pmu_power_st(&self) -> &PmuPowerSt
0x78 - pmu power status register
sourcepub fn pmu_core_pwr_st(&self) -> &PmuCorePwrSt
pub fn pmu_core_pwr_st(&self) -> &PmuCorePwrSt
0x7c - pmu core power status register
sourcepub fn pmu_osc_cnt(&self) -> &PmuOscCnt
pub fn pmu_osc_cnt(&self) -> &PmuOscCnt
0x80 - pmu osc count register
sourcepub fn pmu_plllock_cnt(&self) -> &PmuPlllockCnt
pub fn pmu_plllock_cnt(&self) -> &PmuPlllockCnt
0x84 - pmu pll lock count register
sourcepub fn pmu_pllrst_cnt(&self) -> &PmuPllrstCnt
pub fn pmu_pllrst_cnt(&self) -> &PmuPllrstCnt
0x88 - pmu pll reset count register
sourcepub fn pmu_stable_cnt(&self) -> &PmuStableCnt
pub fn pmu_stable_cnt(&self) -> &PmuStableCnt
0x8c - pmu power stable count register
sourcepub fn pmu_ddrio_pwron_cnt(&self) -> &PmuDdrioPwronCnt
pub fn pmu_ddrio_pwron_cnt(&self) -> &PmuDdrioPwronCnt
0x90 - pmu ddrio power on count register
sourcepub fn pmu_wakeup_rst_clr_cnt(&self) -> &PmuWakeupRstClrCnt
pub fn pmu_wakeup_rst_clr_cnt(&self) -> &PmuWakeupRstClrCnt
0x94 - pmu wakeup reset clear count register
sourcepub fn pmu_ddr_sref_st(&self) -> &PmuDdrSrefSt
pub fn pmu_ddr_sref_st(&self) -> &PmuDdrSrefSt
0x98 - pmu ddr self refresh status register
sourcepub fn pmu_scu_l_pwrdn_cnt(&self) -> &PmuScuLPwrdnCnt
pub fn pmu_scu_l_pwrdn_cnt(&self) -> &PmuScuLPwrdnCnt
0x9c - pmu scu_l power down count register
sourcepub fn pmu_scu_l_pwrup_cnt(&self) -> &PmuScuLPwrupCnt
pub fn pmu_scu_l_pwrup_cnt(&self) -> &PmuScuLPwrupCnt
0xa0 - pmu scu_l power up count register
sourcepub fn pmu_scu_b_pwrdn_cnt(&self) -> &PmuScuBPwrdnCnt
pub fn pmu_scu_b_pwrdn_cnt(&self) -> &PmuScuBPwrdnCnt
0xa4 - pmu scu_b power down count register
sourcepub fn pmu_scu_b_pwrup_cnt(&self) -> &PmuScuBPwrupCnt
pub fn pmu_scu_b_pwrup_cnt(&self) -> &PmuScuBPwrupCnt
0xa8 - pmu scu_b power up count register
sourcepub fn pmu_gpu_pwrdn_cnt(&self) -> &PmuGpuPwrdnCnt
pub fn pmu_gpu_pwrdn_cnt(&self) -> &PmuGpuPwrdnCnt
0xac - pmu gpu power down count register
sourcepub fn pmu_gpu_pwrup_cnt(&self) -> &PmuGpuPwrupCnt
pub fn pmu_gpu_pwrup_cnt(&self) -> &PmuGpuPwrupCnt
0xb0 - pmu gpu power up count register
sourcepub fn pmu_center_pwrdn_cnt(&self) -> &PmuCenterPwrdnCnt
pub fn pmu_center_pwrdn_cnt(&self) -> &PmuCenterPwrdnCnt
0xb4 - pmu center power down count register
sourcepub fn pmu_center_pwrup_cnt(&self) -> &PmuCenterPwrupCnt
pub fn pmu_center_pwrup_cnt(&self) -> &PmuCenterPwrupCnt
0xb8 - pmu center power up count register
sourcepub fn pmu_timeout_cnt(&self) -> &PmuTimeoutCnt
pub fn pmu_timeout_cnt(&self) -> &PmuTimeoutCnt
0xbc - pmu timeout count register
sourcepub fn pmu_cpu0apm_con(&self) -> &PmuCpu0apmCon
pub fn pmu_cpu0apm_con(&self) -> &PmuCpu0apmCon
0xc0 - pmu cpu0 auto power down control register
sourcepub fn pmu_cpu1apm_con(&self) -> &PmuCpu1apmCon
pub fn pmu_cpu1apm_con(&self) -> &PmuCpu1apmCon
0xc4 - pmu cpu1 auto power down control register
sourcepub fn pmu_cpu2apm_con(&self) -> &PmuCpu2apmCon
pub fn pmu_cpu2apm_con(&self) -> &PmuCpu2apmCon
0xc8 - pmu cpu2 auto power down control register
sourcepub fn pmu_cpu3apm_con(&self) -> &PmuCpu3apmCon
pub fn pmu_cpu3apm_con(&self) -> &PmuCpu3apmCon
0xcc - pmu cpu3 auto power down control register
sourcepub fn pmu_cpu0bpm_con(&self) -> &PmuCpu0bpmCon
pub fn pmu_cpu0bpm_con(&self) -> &PmuCpu0bpmCon
0xd0 - pmu cluster_b cpu0 auto power down control register
sourcepub fn pmu_cpu1bpm_con(&self) -> &PmuCpu1bpmCon
pub fn pmu_cpu1bpm_con(&self) -> &PmuCpu1bpmCon
0xd4 - pmu cluster_b cpu0 auto power down control register
sourcepub fn pmu_noc_auto_ena(&self) -> &PmuNocAutoEna
pub fn pmu_noc_auto_ena(&self) -> &PmuNocAutoEna
0xd8 - NOC auto domain clock gating disable enable register
sourcepub fn pmu_pwrdn_con1(&self) -> &PmuPwrdnCon1
pub fn pmu_pwrdn_con1(&self) -> &PmuPwrdnCon1
0xdc - pmu power down configure register1
sourcepub fn pmu_sys_reg0(&self) -> &PmuSysReg0
pub fn pmu_sys_reg0(&self) -> &PmuSysReg0
0xf0 - pmu system register 0
sourcepub fn pmu_sys_reg1(&self) -> &PmuSysReg1
pub fn pmu_sys_reg1(&self) -> &PmuSysReg1
0xf4 - pmu system register 1
sourcepub fn pmu_sys_reg2(&self) -> &PmuSysReg2
pub fn pmu_sys_reg2(&self) -> &PmuSysReg2
0xf8 - pmu system register 2
sourcepub fn pmu_sys_reg3(&self) -> &PmuSysReg3
pub fn pmu_sys_reg3(&self) -> &PmuSysReg3
0xfc - pmu system register 3