pub struct INTPRI { /* private fields */ }
Expand description
INTPRI Peripheral
Implementations§
source§impl INTPRI
impl INTPRI
sourcepub const PTR: *const RegisterBlock = {0x600c5000 as *const intpri::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x600c5000 as *const intpri::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 cpu_int_enable(&self) -> &CPU_INT_ENABLE
pub fn cpu_int_enable(&self) -> &CPU_INT_ENABLE
0x00 - register description
sourcepub fn cpu_int_type(&self) -> &CPU_INT_TYPE
pub fn cpu_int_type(&self) -> &CPU_INT_TYPE
0x04 - register description
sourcepub fn cpu_int_eip_status(&self) -> &CPU_INT_EIP_STATUS
pub fn cpu_int_eip_status(&self) -> &CPU_INT_EIP_STATUS
0x08 - register description
sourcepub fn cpu_int_pri(&self, n: usize) -> &CPU_INT_PRI
pub fn cpu_int_pri(&self, n: usize) -> &CPU_INT_PRI
0x0c..0x8c - register description
sourcepub fn cpu_int_pri_iter(&self) -> impl Iterator<Item = &CPU_INT_PRI>
pub fn cpu_int_pri_iter(&self) -> impl Iterator<Item = &CPU_INT_PRI>
Iterator for array of: 0x0c..0x8c - register description
sourcepub fn cpu_int_thresh(&self) -> &CPU_INT_THRESH
pub fn cpu_int_thresh(&self) -> &CPU_INT_THRESH
0x8c - register description
sourcepub fn cpu_intr_from_cpu_0(&self) -> &CPU_INTR_FROM_CPU_0
pub fn cpu_intr_from_cpu_0(&self) -> &CPU_INTR_FROM_CPU_0
0x90 - register description
sourcepub fn cpu_intr_from_cpu_1(&self) -> &CPU_INTR_FROM_CPU_1
pub fn cpu_intr_from_cpu_1(&self) -> &CPU_INTR_FROM_CPU_1
0x94 - register description
sourcepub fn cpu_intr_from_cpu_2(&self) -> &CPU_INTR_FROM_CPU_2
pub fn cpu_intr_from_cpu_2(&self) -> &CPU_INTR_FROM_CPU_2
0x98 - register description
sourcepub fn cpu_intr_from_cpu_3(&self) -> &CPU_INTR_FROM_CPU_3
pub fn cpu_intr_from_cpu_3(&self) -> &CPU_INTR_FROM_CPU_3
0x9c - register description
sourcepub fn clock_gate(&self) -> &CLOCK_GATE
pub fn clock_gate(&self) -> &CLOCK_GATE
0xa4 - register description
sourcepub fn cpu_int_clear(&self) -> &CPU_INT_CLEAR
pub fn cpu_int_clear(&self) -> &CPU_INT_CLEAR
0xa8 - register description
sourcepub fn rnd_eco_low(&self) -> &RND_ECO_LOW
pub fn rnd_eco_low(&self) -> &RND_ECO_LOW
0xb0 - redcy eco low register.
sourcepub fn rnd_eco_high(&self) -> &RND_ECO_HIGH
pub fn rnd_eco_high(&self) -> &RND_ECO_HIGH
0x3fc - redcy eco high register.