Struct rk3399_pac::Pmugrf

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

Power Management Unit General Register File (PMUGRF) Registers

Implementations§

source§

impl Pmugrf

source

pub const PTR: *const RegisterBlock = {0xff320000 as *const pmugrf::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 gpio0a_iomux(&self) -> &Gpio0aIomux

0x00 - GPIO0A iomux control

source

pub fn gpio0b_iomux(&self) -> &Gpio0bIomux

0x04 - GPIO0B iomux control

source

pub fn gpio1a_iomux(&self) -> &Gpio1aIomux

0x10 - GPIO1A iomux control

source

pub fn gpio1b_iomux(&self) -> &Gpio1bIomux

0x14 - GPIO1B iomux control

source

pub fn gpio1c_iomux(&self) -> &Gpio1cIomux

0x18 - GPIO1C iomux control

source

pub fn gpio1d_iomux(&self) -> &Gpio1dIomux

0x1c - GPIO1D iomux control

source

pub fn gpio0a_p(&self) -> &Gpio0aP

0x40 - GPIO0A PU/PD control

source

pub fn gpio0b_p(&self) -> &Gpio0bP

0x44 - GPIO0B PU/PD control

source

pub fn gpio1a_p(&self) -> &Gpio1aP

0x50 - GPIO1A PU/PD control

source

pub fn gpio1b_p(&self) -> &Gpio1bP

0x54 - GPIO1B PU/PD control

source

pub fn gpio1c_p(&self) -> &Gpio1cP

0x58 - GPIO1C PU/PD control

source

pub fn gpio1d_p(&self) -> &Gpio1dP

0x5c - GPIO0D PU/PD control

source

pub fn gpio0a_e(&self) -> &Gpio0aE

0x80 - GPIO0A drive strength control

source

pub fn gpio0b_e(&self) -> &Gpio0bE

0x88 - GPIO0D drive strength control

source

pub fn gpio1a_e(&self) -> &Gpio1aE

0xa0 - GPIO1A drive strength control

source

pub fn gpio1b_e(&self) -> &Gpio1bE

0xa8 - GPIO1D drive strength control

source

pub fn gpio1c_e(&self) -> &Gpio1cE

0xb0 - GPIO1C drive strength control

source

pub fn gpio1d_e(&self) -> &Gpio1dE

0xb8 - GPIO1D drive strength control

source

pub fn gpio0l_sr(&self) -> &Gpio0lSr

0x100 - GPIO0 A/B SR control

source

pub fn gpio1l_sr(&self) -> &Gpio1lSr

0x108 - GPIO1 A/B SR control

source

pub fn gpio1h_sr(&self) -> &Gpio1hSr

0x10c - GPIO1C/D SR control

source

pub fn gpio0a_smt(&self) -> &Gpio0aSmt

0x120 - GPIO0A smit control

source

pub fn gpio0b_smt(&self) -> &Gpio0bSmt

0x124 - GPIO0B smit control

source

pub fn gpio1a_smt(&self) -> &Gpio1aSmt

0x130 - GPIO1A smit control

source

pub fn gpio1b_smt(&self) -> &Gpio1bSmt

0x134 - GPIO1B smit control

source

pub fn gpio1c_smt(&self) -> &Gpio1cSmt

0x138 - GPIO1C smit control

source

pub fn gpio1d_smt(&self) -> &Gpio1dSmt

0x13c - GPIO1D smit control

source

pub fn gpio0l_he(&self) -> &Gpio0lHe

0x160 - GPIO0 A/B HE control

source

pub fn gpio1l_he(&self) -> &Gpio1lHe

0x168 - GPIO1 A/B HE control

source

pub fn gpio1h_he(&self) -> &Gpio1hHe

0x16c - GPIO1C/D HE control

source

pub fn soc_con0(&self) -> &SocCon0

0x180 - SoC control register 0

source

pub fn soc_con10(&self) -> &SocCon10

0x1a8 - SoC control register 10

source

pub fn soc_con11(&self) -> &SocCon11

0x1ac - SoC control register 11

source

pub fn pmupvtm_con0(&self) -> &PmupvtmCon0

0x240 - pmu pvtm configuration register0

source

pub fn pmupvtm_con1(&self) -> &PmupvtmCon1

0x244 - pmu pvtm configuration register1

source

pub fn pmupvtm_status0(&self) -> &PmupvtmStatus0

0x248 - pmu pvtm status register

source

pub fn pmupvtm_status1(&self) -> &PmupvtmStatus1

0x24c - pmu pvtm status register

source

pub fn osc_e(&self) -> &OscE

0x250 - OSC control register

source

pub fn os_reg0(&self) -> &OsReg0

0x300 - os register

source

pub fn os_reg1(&self) -> &OsReg1

0x304 - os register

source

pub fn os_reg2(&self) -> &OsReg2

0x308 - os register

source

pub fn os_reg3(&self) -> &OsReg3

0x30c - os register

Trait Implementations§

source§

impl Debug for Pmugrf

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Pmugrf

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for Pmugrf

Auto Trait Implementations§

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.