Struct rk3399_pac::Pmu

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

Power Management Unit (PMU) Registers

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 wakeup_cfg0(&self) -> &WakeupCfg0

0x00 - pmu wakeup configure register 0

source

pub fn wakeup_cfg1(&self) -> &WakeupCfg1

0x04 - pmu wakeup configure register 1

source

pub fn wakeup_cfg2(&self) -> &WakeupCfg2

0x08 - pmu wakeup configure register 2

source

pub fn wakeup_cfg3(&self) -> &WakeupCfg3

0x0c - pmu wakeup configure register 3

source

pub fn wakeup_cfg4(&self) -> &WakeupCfg4

0x10 - pmu wakeup configure register 4

source

pub fn pwrdn_con(&self) -> &PwrdnCon

0x14 - pmu power down configure register

source

pub fn pwrdn_st(&self) -> &PwrdnSt

0x18 - pmu power down status register

source

pub fn pll_con(&self) -> &PllCon

0x1c - PLL low power control register

source

pub fn pwrmode_con(&self) -> &PwrmodeCon

0x20 - pmu power mode configure register of common resource

source

pub fn sft_con(&self) -> &SftCon

0x24 - pmu software configure register

source

pub fn int_con(&self) -> &IntCon

0x28 - pmu interrupt configure register

source

pub fn int_st(&self) -> &IntSt

0x2c - pmu interrupt status register

source

pub fn gpio0_pos_int_con(&self) -> &Gpio0PosIntCon

0x30 - pmu gpio0 posedge interrupt configure register

source

pub fn gpio0_neg_int_con(&self) -> &Gpio0NegIntCon

0x34 - pmu gpio0 negedge interrupt configure register

source

pub fn gpio1_pos_int_con(&self) -> &Gpio1PosIntCon

0x38 - pmu gpio1 posedge interrupt configure register

source

pub fn gpio1_neg_int_con(&self) -> &Gpio1NegIntCon

0x3c - pmu gpio1 negedge interrupt configure register

source

pub fn gpio0_pos_int_st(&self) -> &Gpio0PosIntSt

0x40 - pmu gpio0 posedge interrupt status register

source

pub fn gpio0_neg_int_st(&self) -> &Gpio0NegIntSt

0x44 - pmu gpio0 negedge interrupt status register

source

pub fn gpio1_pos_int_st(&self) -> &Gpio1PosIntSt

0x48 - pmu gpio1 posedge interrupt status register

source

pub fn gpio1_neg_int_st(&self) -> &Gpio1NegIntSt

0x4c - pmu gpio1 negedge interrupt status register

source

pub fn pwrdn_inten(&self) -> &PwrdnInten

0x50 - pmu power down interrupt enable register

source

pub fn pwrdn_status(&self) -> &PwrdnStatus

0x54 - pmu power down interrupt status register

source

pub fn wakeup_status(&self) -> &WakeupStatus

0x58 - pmu interrupt wakeup status register

source

pub fn bus_clr(&self) -> &BusClr

0x5c - pmu bus clear register

source

pub fn bus_idle_req(&self) -> &BusIdleReq

0x60 - pmu bus idle request register

source

pub fn bus_idle_st(&self) -> &BusIdleSt

0x64 - pmu bus idle status register

source

pub fn bus_idle_ack(&self) -> &BusIdleAck

0x68 - pmu bus idle ack status register

source

pub fn cci500_con(&self) -> &Cci500Con

0x6c - CCI-500 low power control register

source

pub fn adb400_con(&self) -> &Adb400Con

0x70 - adb-400 low power control register

source

pub fn adb400_st(&self) -> &Adb400St

0x74 - adb-400 low power status register

source

pub fn power_st(&self) -> &PowerSt

0x78 - pmu power status register

source

pub fn core_pwr_st(&self) -> &CorePwrSt

0x7c - pmu core power status register

source

pub fn osc_cnt(&self) -> &OscCnt

0x80 - pmu osc count register

source

pub fn plllock_cnt(&self) -> &PlllockCnt

0x84 - pmu pll lock count register

source

pub fn pllrst_cnt(&self) -> &PllrstCnt

0x88 - pmu pll reset count register

source

pub fn stable_cnt(&self) -> &StableCnt

0x8c - pmu power stable count register

source

pub fn ddrio_pwron_cnt(&self) -> &DdrioPwronCnt

0x90 - pmu ddrio power on count register

source

pub fn wakeup_rst_clr_cnt(&self) -> &WakeupRstClrCnt

0x94 - pmu wakeup reset clear count register

source

pub fn ddr_sref_st(&self) -> &DdrSrefSt

0x98 - pmu ddr self refresh status register

source

pub fn scu_l_pwrdn_cnt(&self) -> &ScuLPwrdnCnt

0x9c - pmu scu_l power down count register

source

pub fn scu_l_pwrup_cnt(&self) -> &ScuLPwrupCnt

0xa0 - pmu scu_l power up count register

source

pub fn scu_b_pwrdn_cnt(&self) -> &ScuBPwrdnCnt

0xa4 - pmu scu_b power down count register

source

pub fn scu_b_pwrup_cnt(&self) -> &ScuBPwrupCnt

0xa8 - pmu scu_b power up count register

source

pub fn gpu_pwrdn_cnt(&self) -> &GpuPwrdnCnt

0xac - pmu gpu power down count register

source

pub fn gpu_pwrup_cnt(&self) -> &GpuPwrupCnt

0xb0 - pmu gpu power up count register

source

pub fn center_pwrdn_cnt(&self) -> &CenterPwrdnCnt

0xb4 - pmu center power down count register

source

pub fn center_pwrup_cnt(&self) -> &CenterPwrupCnt

0xb8 - pmu center power up count register

source

pub fn timeout_cnt(&self) -> &TimeoutCnt

0xbc - pmu timeout count register

source

pub fn cpu0apm_con(&self) -> &Cpu0apmCon

0xc0 - pmu cpu0 auto power down control register

source

pub fn cpu1apm_con(&self) -> &Cpu1apmCon

0xc4 - pmu cpu1 auto power down control register

source

pub fn cpu2apm_con(&self) -> &Cpu2apmCon

0xc8 - pmu cpu2 auto power down control register

source

pub fn cpu3apm_con(&self) -> &Cpu3apmCon

0xcc - pmu cpu3 auto power down control register

source

pub fn cpu0bpm_con(&self) -> &Cpu0bpmCon

0xd0 - pmu cluster_b cpu0 auto power down control register

source

pub fn cpu1bpm_con(&self) -> &Cpu1bpmCon

0xd4 - pmu cluster_b cpu0 auto power down control register

source

pub fn noc_auto_ena(&self) -> &NocAutoEna

0xd8 - NOC auto domain clock gating disable enable register

source

pub fn pwrdn_con1(&self) -> &PwrdnCon1

0xdc - pmu power down configure register1

source

pub fn sys_reg0(&self) -> &SysReg0

0xf0 - pmu system register 0

source

pub fn sys_reg1(&self) -> &SysReg1

0xf4 - pmu system register 1

source

pub fn sys_reg2(&self) -> &SysReg2

0xf8 - pmu system register 2

source

pub fn sys_reg3(&self) -> &SysReg3

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.