Struct rk3399_pac::Mailbox0

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

Mailbox 0 Registers

Implementations§

source§

impl Mailbox0

source

pub const PTR: *const RegisterBlock = {0xff6b0000 as *const mailbox::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 a2b_inten(&self) -> &A2bInten

0x00 - Cortex-A53/Cortex-A72 to Cortex-M0 interrupt enable register

source

pub fn a2b_status(&self) -> &A2bStatus

0x04 - Cortex-A53/Cortex-A72 to Cortex-M0 interrupt status register

source

pub fn a2b_cmd_0(&self) -> &A2bCmd0

0x08 - Cortex-A53/Cortex-A72 to Cortex-M0 command 0

source

pub fn a2b_dat_0(&self) -> &A2bDat0

0x0c - Cortex-A53/Cortex-A72 to Cortex-M0 data 0

source

pub fn a2b_cmd_1(&self) -> &A2bCmd1

0x10 - Cortex-A53/Cortex-A72 to Cortex-M0 command 1

source

pub fn a2b_dat_1(&self) -> &A2bDat1

0x14 - Cortex-A53/Cortex-A72 to Cortex-M0 data 1

source

pub fn a2b_cmd_2(&self) -> &A2bCmd2

0x18 - Cortex-A53/Cortex-A72 to Cortex-M0 command 2

source

pub fn a2b_dat_2(&self) -> &A2bDat2

0x1c - Cortex-A53/Cortex-A72 to Cortex-M0 data 2

source

pub fn a2b_cmd_3(&self) -> &A2bCmd3

0x20 - Cortex-A53/Cortex-A72 to Cortex-M0 command 3

source

pub fn a2b_dat_3(&self) -> &A2bDat3

0x24 - Cortex-A53/Cortex-A72 to Cortex-M0 data 3

source

pub fn b2a_inten(&self) -> &B2aInten

0x28 - Cortex-A53/Cortex-A72 to Cortex-M0 interrupt enable register

source

pub fn b2a_status(&self) -> &B2aStatus

0x2c - Cortex-M0 to Cortex-A53/Cortex-A72 interrupt status register

source

pub fn b2a_cmd_0(&self) -> &B2aCmd0

0x30 - Cortex-M0 to Cortex-A53/Cortex-A72 command 0

source

pub fn b2a_dat_0(&self) -> &B2aDat0

0x34 - Cortex-M0 to Cortex-A53/Cortex-A72 data 0

source

pub fn b2a_cmd_1(&self) -> &B2aCmd1

0x38 - Cortex-M0 to Cortex-A53/Cortex-A72 command 1

source

pub fn b2a_dat_1(&self) -> &B2aDat1

0x3c - Cortex-M0 to Cortex-A53/Cortex-A72 data 1

source

pub fn b2a_cmd_2(&self) -> &B2aCmd2

0x40 - Cortex-M0 to Cortex-A53/Cortex-A72 command 2

source

pub fn b2a_dat_2(&self) -> &B2aDat2

0x44 - Cortex-M0 to Cortex-A53/Cortex-A72 data 2

source

pub fn b2a_cmd_3(&self) -> &B2aCmd3

0x48 - Cortex-M0 to Cortex-A53/Cortex-A72 command 3

source

pub fn b2a_dat_3(&self) -> &B2aDat3

0x4c - Cortex-M0 to Cortex-A53/Cortex-A72 data 3

source

pub fn atomic_lock_00(&self) -> &AtomicLock00

0x100 - Lock flag register 00

source

pub fn atomic_lock_01(&self) -> &AtomicLock01

0x104 - Lock flag register 01

source

pub fn atomic_lock_02(&self) -> &AtomicLock02

0x108 - Lock flag register 02

source

pub fn atomic_lock_03(&self) -> &AtomicLock03

0x10c - Lock flag register 03

source

pub fn atomic_lock_04(&self) -> &AtomicLock04

0x110 - Lock flag register 04

source

pub fn atomic_lock_05(&self) -> &AtomicLock05

0x114 - Lock flag register 05

source

pub fn atomic_lock_06(&self) -> &AtomicLock06

0x118 - Lock flag register 06

source

pub fn atomic_lock_07(&self) -> &AtomicLock07

0x11c - Lock flag register 07

source

pub fn atomic_lock_08(&self) -> &AtomicLock08

0x120 - Lock flag register 08

source

pub fn atomic_lock_09(&self) -> &AtomicLock09

0x124 - Lock flag register 09

source

pub fn atomic_lock_10(&self) -> &AtomicLock10

0x128 - Lock flag register 10

source

pub fn atomic_lock_11(&self) -> &AtomicLock11

0x12c - Lock flag register 11

source

pub fn atomic_lock_12(&self) -> &AtomicLock12

0x130 - Lock flag register 12

source

pub fn atomic_lock_13(&self) -> &AtomicLock13

0x134 - Lock flag register 13

source

pub fn atomic_lock_14(&self) -> &AtomicLock14

0x138 - Lock flag register 14

source

pub fn atomic_lock_15(&self) -> &AtomicLock15

0x13c - Lock flag register 15

source

pub fn atomic_lock_16(&self) -> &AtomicLock16

0x140 - Lock flag register 16

source

pub fn atomic_lock_17(&self) -> &AtomicLock17

0x144 - Lock flag register 17

source

pub fn atomic_lock_18(&self) -> &AtomicLock18

0x148 - Lock flag register 18

source

pub fn atomic_lock_19(&self) -> &AtomicLock19

0x14c - Lock flag register 19

source

pub fn atomic_lock_20(&self) -> &AtomicLock20

0x150 - Lock flag register 20

source

pub fn atomic_lock_21(&self) -> &AtomicLock21

0x154 - Lock flag register 21

source

pub fn atomic_lock_22(&self) -> &AtomicLock22

0x158 - Lock flag register 22

source

pub fn atomic_lock_23(&self) -> &AtomicLock23

0x15c - Lock flag register 23

source

pub fn atomic_lock_24(&self) -> &AtomicLock24

0x160 - Lock flag register 24

source

pub fn atomic_lock_25(&self) -> &AtomicLock25

0x164 - Lock flag register 25

source

pub fn atomic_lock_26(&self) -> &AtomicLock26

0x168 - Lock flag register 26

source

pub fn atomic_lock_27(&self) -> &AtomicLock27

0x16c - Lock flag register 27

source

pub fn atomic_lock_28(&self) -> &AtomicLock28

0x170 - Lock flag register 28

source

pub fn atomic_lock_29(&self) -> &AtomicLock29

0x174 - Lock flag register 29

source

pub fn atomic_lock_30(&self) -> &AtomicLock30

0x178 - Lock flag register 30

source

pub fn atomic_lock_31(&self) -> &AtomicLock31

0x17c - Lock flag register 31

Trait Implementations§

source§

impl Debug for Mailbox0

source§

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

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

impl Deref for Mailbox0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for Mailbox0

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.