pub struct PLIC_UX { /* private fields */ }Expand description
PLIC Peripheral
Implementations§
Source§impl PLIC_UX
impl PLIC_UX
Sourcepub const PTR: *const RegisterBlock = {0x20001400 as *const plic_ux::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x20001400 as *const plic_ux::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 uxint_enable(&self) -> &UXINT_ENABLE
pub fn uxint_enable(&self) -> &UXINT_ENABLE
0x00 - PLIC UX Interrupt Enable Register
Sourcepub fn uxint_type(&self) -> &UXINT_TYPE
pub fn uxint_type(&self) -> &UXINT_TYPE
0x04 - PLIC UX Interrupt Type Register
Sourcepub fn uxint_clear(&self) -> &UXINT_CLEAR
pub fn uxint_clear(&self) -> &UXINT_CLEAR
0x08 - PLIC UX Interrupt Clear Register
Sourcepub fn euip_status(&self) -> &EUIP_STATUS
pub fn euip_status(&self) -> &EUIP_STATUS
0x0c - PLIC EMIP Status Register
Sourcepub fn uxint_pri(&self, n: usize) -> &UXINT_PRI
pub fn uxint_pri(&self, n: usize) -> &UXINT_PRI
0x10..0x90 - PLIC UX Interrupt %s Priority Register
Sourcepub fn uxint_pri_iter(&self) -> impl Iterator<Item = &UXINT_PRI>
pub fn uxint_pri_iter(&self) -> impl Iterator<Item = &UXINT_PRI>
Iterator for array of: 0x10..0x90 - PLIC UX Interrupt %s Priority Register
Sourcepub fn uxint0_pri(&self) -> &UXINT_PRI
pub fn uxint0_pri(&self) -> &UXINT_PRI
0x10 - PLIC UX Interrupt 0 Priority Register
Sourcepub fn uxint1_pri(&self) -> &UXINT_PRI
pub fn uxint1_pri(&self) -> &UXINT_PRI
0x14 - PLIC UX Interrupt 1 Priority Register
Sourcepub fn uxint2_pri(&self) -> &UXINT_PRI
pub fn uxint2_pri(&self) -> &UXINT_PRI
0x18 - PLIC UX Interrupt 2 Priority Register
Sourcepub fn uxint3_pri(&self) -> &UXINT_PRI
pub fn uxint3_pri(&self) -> &UXINT_PRI
0x1c - PLIC UX Interrupt 3 Priority Register
Sourcepub fn uxint4_pri(&self) -> &UXINT_PRI
pub fn uxint4_pri(&self) -> &UXINT_PRI
0x20 - PLIC UX Interrupt 4 Priority Register
Sourcepub fn uxint5_pri(&self) -> &UXINT_PRI
pub fn uxint5_pri(&self) -> &UXINT_PRI
0x24 - PLIC UX Interrupt 5 Priority Register
Sourcepub fn uxint6_pri(&self) -> &UXINT_PRI
pub fn uxint6_pri(&self) -> &UXINT_PRI
0x28 - PLIC UX Interrupt 6 Priority Register
Sourcepub fn uxint7_pri(&self) -> &UXINT_PRI
pub fn uxint7_pri(&self) -> &UXINT_PRI
0x2c - PLIC UX Interrupt 7 Priority Register
Sourcepub fn uxint8_pri(&self) -> &UXINT_PRI
pub fn uxint8_pri(&self) -> &UXINT_PRI
0x30 - PLIC UX Interrupt 8 Priority Register
Sourcepub fn uxint9_pri(&self) -> &UXINT_PRI
pub fn uxint9_pri(&self) -> &UXINT_PRI
0x34 - PLIC UX Interrupt 9 Priority Register
Sourcepub fn uxint10_pri(&self) -> &UXINT_PRI
pub fn uxint10_pri(&self) -> &UXINT_PRI
0x38 - PLIC UX Interrupt 10 Priority Register
Sourcepub fn uxint11_pri(&self) -> &UXINT_PRI
pub fn uxint11_pri(&self) -> &UXINT_PRI
0x3c - PLIC UX Interrupt 11 Priority Register
Sourcepub fn uxint12_pri(&self) -> &UXINT_PRI
pub fn uxint12_pri(&self) -> &UXINT_PRI
0x40 - PLIC UX Interrupt 12 Priority Register
Sourcepub fn uxint13_pri(&self) -> &UXINT_PRI
pub fn uxint13_pri(&self) -> &UXINT_PRI
0x44 - PLIC UX Interrupt 13 Priority Register
Sourcepub fn uxint14_pri(&self) -> &UXINT_PRI
pub fn uxint14_pri(&self) -> &UXINT_PRI
0x48 - PLIC UX Interrupt 14 Priority Register
Sourcepub fn uxint15_pri(&self) -> &UXINT_PRI
pub fn uxint15_pri(&self) -> &UXINT_PRI
0x4c - PLIC UX Interrupt 15 Priority Register
Sourcepub fn uxint16_pri(&self) -> &UXINT_PRI
pub fn uxint16_pri(&self) -> &UXINT_PRI
0x50 - PLIC UX Interrupt 16 Priority Register
Sourcepub fn uxint17_pri(&self) -> &UXINT_PRI
pub fn uxint17_pri(&self) -> &UXINT_PRI
0x54 - PLIC UX Interrupt 17 Priority Register
Sourcepub fn uxint18_pri(&self) -> &UXINT_PRI
pub fn uxint18_pri(&self) -> &UXINT_PRI
0x58 - PLIC UX Interrupt 18 Priority Register
Sourcepub fn uxint19_pri(&self) -> &UXINT_PRI
pub fn uxint19_pri(&self) -> &UXINT_PRI
0x5c - PLIC UX Interrupt 19 Priority Register
Sourcepub fn uxint20_pri(&self) -> &UXINT_PRI
pub fn uxint20_pri(&self) -> &UXINT_PRI
0x60 - PLIC UX Interrupt 20 Priority Register
Sourcepub fn uxint21_pri(&self) -> &UXINT_PRI
pub fn uxint21_pri(&self) -> &UXINT_PRI
0x64 - PLIC UX Interrupt 21 Priority Register
Sourcepub fn uxint22_pri(&self) -> &UXINT_PRI
pub fn uxint22_pri(&self) -> &UXINT_PRI
0x68 - PLIC UX Interrupt 22 Priority Register
Sourcepub fn uxint23_pri(&self) -> &UXINT_PRI
pub fn uxint23_pri(&self) -> &UXINT_PRI
0x6c - PLIC UX Interrupt 23 Priority Register
Sourcepub fn uxint24_pri(&self) -> &UXINT_PRI
pub fn uxint24_pri(&self) -> &UXINT_PRI
0x70 - PLIC UX Interrupt 24 Priority Register
Sourcepub fn uxint25_pri(&self) -> &UXINT_PRI
pub fn uxint25_pri(&self) -> &UXINT_PRI
0x74 - PLIC UX Interrupt 25 Priority Register
Sourcepub fn uxint26_pri(&self) -> &UXINT_PRI
pub fn uxint26_pri(&self) -> &UXINT_PRI
0x78 - PLIC UX Interrupt 26 Priority Register
Sourcepub fn uxint27_pri(&self) -> &UXINT_PRI
pub fn uxint27_pri(&self) -> &UXINT_PRI
0x7c - PLIC UX Interrupt 27 Priority Register
Sourcepub fn uxint28_pri(&self) -> &UXINT_PRI
pub fn uxint28_pri(&self) -> &UXINT_PRI
0x80 - PLIC UX Interrupt 28 Priority Register
Sourcepub fn uxint29_pri(&self) -> &UXINT_PRI
pub fn uxint29_pri(&self) -> &UXINT_PRI
0x84 - PLIC UX Interrupt 29 Priority Register
Sourcepub fn uxint30_pri(&self) -> &UXINT_PRI
pub fn uxint30_pri(&self) -> &UXINT_PRI
0x88 - PLIC UX Interrupt 30 Priority Register
Sourcepub fn uxint31_pri(&self) -> &UXINT_PRI
pub fn uxint31_pri(&self) -> &UXINT_PRI
0x8c - PLIC UX Interrupt 31 Priority Register
Sourcepub fn uxint_thresh(&self) -> &UXINT_THRESH
pub fn uxint_thresh(&self) -> &UXINT_THRESH
0x90 - PLIC UX Interrupt Threshold Register
Sourcepub fn uxint_claim(&self) -> &UXINT_CLAIM
pub fn uxint_claim(&self) -> &UXINT_CLAIM
0x94 - PLIC UX Interrupt Claim Register