Struct rk3399_pac::Pmugrf
source · pub struct Pmugrf { /* private fields */ }
Expand description
Power Management Unit General Register File (PMUGRF) Registers
Implementations§
source§impl Pmugrf
impl Pmugrf
sourcepub const PTR: *const RegisterBlock = {0xff320000 as *const pmugrf::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xff320000 as *const pmugrf::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 gpio0a_iomux(&self) -> &Gpio0aIomux
pub fn gpio0a_iomux(&self) -> &Gpio0aIomux
0x00 - GPIO0A iomux control
sourcepub fn gpio0b_iomux(&self) -> &Gpio0bIomux
pub fn gpio0b_iomux(&self) -> &Gpio0bIomux
0x04 - GPIO0B iomux control
sourcepub fn gpio1a_iomux(&self) -> &Gpio1aIomux
pub fn gpio1a_iomux(&self) -> &Gpio1aIomux
0x10 - GPIO1A iomux control
sourcepub fn gpio1b_iomux(&self) -> &Gpio1bIomux
pub fn gpio1b_iomux(&self) -> &Gpio1bIomux
0x14 - GPIO1B iomux control
sourcepub fn gpio1c_iomux(&self) -> &Gpio1cIomux
pub fn gpio1c_iomux(&self) -> &Gpio1cIomux
0x18 - GPIO1C iomux control
sourcepub fn gpio1d_iomux(&self) -> &Gpio1dIomux
pub fn gpio1d_iomux(&self) -> &Gpio1dIomux
0x1c - GPIO1D iomux control
sourcepub fn gpio0a_smt(&self) -> &Gpio0aSmt
pub fn gpio0a_smt(&self) -> &Gpio0aSmt
0x120 - GPIO0A smit control
sourcepub fn gpio0b_smt(&self) -> &Gpio0bSmt
pub fn gpio0b_smt(&self) -> &Gpio0bSmt
0x124 - GPIO0B smit control
sourcepub fn gpio1a_smt(&self) -> &Gpio1aSmt
pub fn gpio1a_smt(&self) -> &Gpio1aSmt
0x130 - GPIO1A smit control
sourcepub fn gpio1b_smt(&self) -> &Gpio1bSmt
pub fn gpio1b_smt(&self) -> &Gpio1bSmt
0x134 - GPIO1B smit control
sourcepub fn gpio1c_smt(&self) -> &Gpio1cSmt
pub fn gpio1c_smt(&self) -> &Gpio1cSmt
0x138 - GPIO1C smit control
sourcepub fn gpio1d_smt(&self) -> &Gpio1dSmt
pub fn gpio1d_smt(&self) -> &Gpio1dSmt
0x13c - GPIO1D smit control
sourcepub fn pmupvtm_con0(&self) -> &PmupvtmCon0
pub fn pmupvtm_con0(&self) -> &PmupvtmCon0
0x240 - pmu pvtm configuration register0
sourcepub fn pmupvtm_con1(&self) -> &PmupvtmCon1
pub fn pmupvtm_con1(&self) -> &PmupvtmCon1
0x244 - pmu pvtm configuration register1
sourcepub fn pmupvtm_status0(&self) -> &PmupvtmStatus0
pub fn pmupvtm_status0(&self) -> &PmupvtmStatus0
0x248 - pmu pvtm status register
sourcepub fn pmupvtm_status1(&self) -> &PmupvtmStatus1
pub fn pmupvtm_status1(&self) -> &PmupvtmStatus1
0x24c - pmu pvtm status register