Struct rk3399_rs::Pmu

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

Power Management Unit

Implementations§

source§

impl Pmu

source

pub const PTR: *const RegisterBlock = {0xff310000 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 pmu_wakeup_cfg0(&self) -> &PmuWakeupCfg0

0x00 - pmu wakeup configure register 0

source

pub fn pmu_wakeup_cfg1(&self) -> &PmuWakeupCfg1

0x04 - pmu wakeup configure register 1

source

pub fn pmu_wakeup_cfg2(&self) -> &PmuWakeupCfg2

0x08 - pmu wakeup configure register 2

source

pub fn pmu_wakeup_cfg3(&self) -> &PmuWakeupCfg3

0x0c - pmu wakeup configure register 3

source

pub fn pmu_wakeup_cfg4(&self) -> &PmuWakeupCfg4

0x10 - pmu wakeup configure register 4

source

pub fn pmu_pwrdn_con(&self) -> &PmuPwrdnCon

0x14 - pmu power down configure register

source

pub fn pmu_pwrdn_st(&self) -> &PmuPwrdnSt

0x18 - pmu power down status register

source

pub fn pmu_pll_con(&self) -> &PmuPllCon

0x1c - PLL low power control register

source

pub fn pmu_pwrmode_con(&self) -> &PmuPwrmodeCon

0x20 - pmu power mode configure register of common resource

source

pub fn pmu_sft_con(&self) -> &PmuSftCon

0x24 - pmu software configure register

source

pub fn pmu_int_con(&self) -> &PmuIntCon

0x28 - pmu interrupt configure register

source

pub fn pmu_int_st(&self) -> &PmuIntSt

0x2c - pmu interrupt status register

source

pub fn pmu_gpio0_pos_int_con(&self) -> &PmuGpio0PosIntCon

0x30 - pmu gpio0 posedge interrupt configure register

source

pub fn pmu_gpio0_neg_int_con(&self) -> &PmuGpio0NegIntCon

0x34 - pmu gpio0 negedge interrupt configure register

source

pub fn pmu_gpio1_pos_int_con(&self) -> &PmuGpio1PosIntCon

0x38 - pmu gpio1 posedge interrupt configure register

source

pub fn pmu_gpio1_neg_int_con(&self) -> &PmuGpio1NegIntCon

0x3c - pmu gpio1 negedge interrupt configure register

source

pub fn pmu_gpio0_pos_int_st(&self) -> &PmuGpio0PosIntSt

0x40 - pmu gpio0 posedge interrupt status register

source

pub fn pmu_gpio0_neg_int_st(&self) -> &PmuGpio0NegIntSt

0x44 - pmu gpio0 negedge interrupt status register

source

pub fn pmu_gpio1_pos_int_st(&self) -> &PmuGpio1PosIntSt

0x48 - pmu gpio1 posedge interrupt status register

source

pub fn pmu_gpio1_neg_int_st(&self) -> &PmuGpio1NegIntSt

0x4c - pmu gpio1 negedge interrupt status register

source

pub fn pmu_pwrdn_inten(&self) -> &PmuPwrdnInten

0x50 - pmu power down interrupt enable register

source

pub fn pmu_pwrdn_status(&self) -> &PmuPwrdnStatus

0x54 - pmu power down interrupt status register

source

pub fn pmu_wakeup_status(&self) -> &PmuWakeupStatus

0x58 - pmu interrupt wakeup status register

source

pub fn pmu_bus_clr(&self) -> &PmuBusClr

0x5c - pmu bus clear register

source

pub fn pmu_bus_idle_req(&self) -> &PmuBusIdleReq

0x60 - pmu bus idle request register

source

pub fn pmu_bus_idle_st(&self) -> &PmuBusIdleSt

0x64 - pmu bus idle status register

source

pub fn pmu_bus_idle_ack(&self) -> &PmuBusIdleAck

0x68 - pmu bus idle ack status register

source

pub fn pmu_cci500_con(&self) -> &PmuCci500Con

0x6c - CCI-500 low power control register

source

pub fn pmu_adb400_con(&self) -> &PmuAdb400Con

0x70 - adb-400 low power control register

source

pub fn pmu_adb400_st(&self) -> &PmuAdb400St

0x74 - adb-400 low power status register

source

pub fn pmu_power_st(&self) -> &PmuPowerSt

0x78 - pmu power status register

source

pub fn pmu_core_pwr_st(&self) -> &PmuCorePwrSt

0x7c - pmu core power status register

source

pub fn pmu_osc_cnt(&self) -> &PmuOscCnt

0x80 - pmu osc count register

source

pub fn pmu_plllock_cnt(&self) -> &PmuPlllockCnt

0x84 - pmu pll lock count register

source

pub fn pmu_pllrst_cnt(&self) -> &PmuPllrstCnt

0x88 - pmu pll reset count register

source

pub fn pmu_stable_cnt(&self) -> &PmuStableCnt

0x8c - pmu power stable count register

source

pub fn pmu_ddrio_pwron_cnt(&self) -> &PmuDdrioPwronCnt

0x90 - pmu ddrio power on count register

source

pub fn pmu_wakeup_rst_clr_cnt(&self) -> &PmuWakeupRstClrCnt

0x94 - pmu wakeup reset clear count register

source

pub fn pmu_ddr_sref_st(&self) -> &PmuDdrSrefSt

0x98 - pmu ddr self refresh status register

source

pub fn pmu_scu_l_pwrdn_cnt(&self) -> &PmuScuLPwrdnCnt

0x9c - pmu scu_l power down count register

source

pub fn pmu_scu_l_pwrup_cnt(&self) -> &PmuScuLPwrupCnt

0xa0 - pmu scu_l power up count register

source

pub fn pmu_scu_b_pwrdn_cnt(&self) -> &PmuScuBPwrdnCnt

0xa4 - pmu scu_b power down count register

source

pub fn pmu_scu_b_pwrup_cnt(&self) -> &PmuScuBPwrupCnt

0xa8 - pmu scu_b power up count register

source

pub fn pmu_gpu_pwrdn_cnt(&self) -> &PmuGpuPwrdnCnt

0xac - pmu gpu power down count register

source

pub fn pmu_gpu_pwrup_cnt(&self) -> &PmuGpuPwrupCnt

0xb0 - pmu gpu power up count register

source

pub fn pmu_center_pwrdn_cnt(&self) -> &PmuCenterPwrdnCnt

0xb4 - pmu center power down count register

source

pub fn pmu_center_pwrup_cnt(&self) -> &PmuCenterPwrupCnt

0xb8 - pmu center power up count register

source

pub fn pmu_timeout_cnt(&self) -> &PmuTimeoutCnt

0xbc - pmu timeout count register

source

pub fn pmu_cpu0apm_con(&self) -> &PmuCpu0apmCon

0xc0 - pmu cpu0 auto power down control register

source

pub fn pmu_cpu1apm_con(&self) -> &PmuCpu1apmCon

0xc4 - pmu cpu1 auto power down control register

source

pub fn pmu_cpu2apm_con(&self) -> &PmuCpu2apmCon

0xc8 - pmu cpu2 auto power down control register

source

pub fn pmu_cpu3apm_con(&self) -> &PmuCpu3apmCon

0xcc - pmu cpu3 auto power down control register

source

pub fn pmu_cpu0bpm_con(&self) -> &PmuCpu0bpmCon

0xd0 - pmu cluster_b cpu0 auto power down control register

source

pub fn pmu_cpu1bpm_con(&self) -> &PmuCpu1bpmCon

0xd4 - pmu cluster_b cpu0 auto power down control register

source

pub fn pmu_noc_auto_ena(&self) -> &PmuNocAutoEna

0xd8 - NOC auto domain clock gating disable enable register

source

pub fn pmu_pwrdn_con1(&self) -> &PmuPwrdnCon1

0xdc - pmu power down configure register1

source

pub fn pmu_sys_reg0(&self) -> &PmuSysReg0

0xf0 - pmu system register 0

source

pub fn pmu_sys_reg1(&self) -> &PmuSysReg1

0xf4 - pmu system register 1

source

pub fn pmu_sys_reg2(&self) -> &PmuSysReg2

0xf8 - pmu system register 2

source

pub fn pmu_sys_reg3(&self) -> &PmuSysReg3

0xfc - pmu system register 3

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