pub struct PLIC_MX { /* private fields */ }
Expand description
PLIC Peripheral
Implementations§
Source§impl PLIC_MX
impl PLIC_MX
Sourcepub const PTR: *const RegisterBlock = {0x20001000 as *const plic_mx::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x20001000 as *const plic_mx::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 mxint_enable(&self) -> &MXINT_ENABLE
pub fn mxint_enable(&self) -> &MXINT_ENABLE
0x00 - PLIC MX Interrupt Enable Register
Sourcepub fn mxint_type(&self) -> &MXINT_TYPE
pub fn mxint_type(&self) -> &MXINT_TYPE
0x04 - PLIC MX Interrupt Type Register
Sourcepub fn mxint_clear(&self) -> &MXINT_CLEAR
pub fn mxint_clear(&self) -> &MXINT_CLEAR
0x08 - PLIC MX Interrupt Clear Register
Sourcepub fn emip_status(&self) -> &EMIP_STATUS
pub fn emip_status(&self) -> &EMIP_STATUS
0x0c - PLIC EMIP Status Register
Sourcepub fn mxint_pri(&self, n: usize) -> &MXINT_PRI
pub fn mxint_pri(&self, n: usize) -> &MXINT_PRI
0x10..0x90 - PLIC MX Interrupt %s Priority Register
Sourcepub fn mxint_pri_iter(&self) -> impl Iterator<Item = &MXINT_PRI>
pub fn mxint_pri_iter(&self) -> impl Iterator<Item = &MXINT_PRI>
Iterator for array of: 0x10..0x90 - PLIC MX Interrupt %s Priority Register
Sourcepub fn mxint0_pri(&self) -> &MXINT_PRI
pub fn mxint0_pri(&self) -> &MXINT_PRI
0x10 - PLIC MX Interrupt 0 Priority Register
Sourcepub fn mxint1_pri(&self) -> &MXINT_PRI
pub fn mxint1_pri(&self) -> &MXINT_PRI
0x14 - PLIC MX Interrupt 1 Priority Register
Sourcepub fn mxint2_pri(&self) -> &MXINT_PRI
pub fn mxint2_pri(&self) -> &MXINT_PRI
0x18 - PLIC MX Interrupt 2 Priority Register
Sourcepub fn mxint3_pri(&self) -> &MXINT_PRI
pub fn mxint3_pri(&self) -> &MXINT_PRI
0x1c - PLIC MX Interrupt 3 Priority Register
Sourcepub fn mxint4_pri(&self) -> &MXINT_PRI
pub fn mxint4_pri(&self) -> &MXINT_PRI
0x20 - PLIC MX Interrupt 4 Priority Register
Sourcepub fn mxint5_pri(&self) -> &MXINT_PRI
pub fn mxint5_pri(&self) -> &MXINT_PRI
0x24 - PLIC MX Interrupt 5 Priority Register
Sourcepub fn mxint6_pri(&self) -> &MXINT_PRI
pub fn mxint6_pri(&self) -> &MXINT_PRI
0x28 - PLIC MX Interrupt 6 Priority Register
Sourcepub fn mxint7_pri(&self) -> &MXINT_PRI
pub fn mxint7_pri(&self) -> &MXINT_PRI
0x2c - PLIC MX Interrupt 7 Priority Register
Sourcepub fn mxint8_pri(&self) -> &MXINT_PRI
pub fn mxint8_pri(&self) -> &MXINT_PRI
0x30 - PLIC MX Interrupt 8 Priority Register
Sourcepub fn mxint9_pri(&self) -> &MXINT_PRI
pub fn mxint9_pri(&self) -> &MXINT_PRI
0x34 - PLIC MX Interrupt 9 Priority Register
Sourcepub fn mxint10_pri(&self) -> &MXINT_PRI
pub fn mxint10_pri(&self) -> &MXINT_PRI
0x38 - PLIC MX Interrupt 10 Priority Register
Sourcepub fn mxint11_pri(&self) -> &MXINT_PRI
pub fn mxint11_pri(&self) -> &MXINT_PRI
0x3c - PLIC MX Interrupt 11 Priority Register
Sourcepub fn mxint12_pri(&self) -> &MXINT_PRI
pub fn mxint12_pri(&self) -> &MXINT_PRI
0x40 - PLIC MX Interrupt 12 Priority Register
Sourcepub fn mxint13_pri(&self) -> &MXINT_PRI
pub fn mxint13_pri(&self) -> &MXINT_PRI
0x44 - PLIC MX Interrupt 13 Priority Register
Sourcepub fn mxint14_pri(&self) -> &MXINT_PRI
pub fn mxint14_pri(&self) -> &MXINT_PRI
0x48 - PLIC MX Interrupt 14 Priority Register
Sourcepub fn mxint15_pri(&self) -> &MXINT_PRI
pub fn mxint15_pri(&self) -> &MXINT_PRI
0x4c - PLIC MX Interrupt 15 Priority Register
Sourcepub fn mxint16_pri(&self) -> &MXINT_PRI
pub fn mxint16_pri(&self) -> &MXINT_PRI
0x50 - PLIC MX Interrupt 16 Priority Register
Sourcepub fn mxint17_pri(&self) -> &MXINT_PRI
pub fn mxint17_pri(&self) -> &MXINT_PRI
0x54 - PLIC MX Interrupt 17 Priority Register
Sourcepub fn mxint18_pri(&self) -> &MXINT_PRI
pub fn mxint18_pri(&self) -> &MXINT_PRI
0x58 - PLIC MX Interrupt 18 Priority Register
Sourcepub fn mxint19_pri(&self) -> &MXINT_PRI
pub fn mxint19_pri(&self) -> &MXINT_PRI
0x5c - PLIC MX Interrupt 19 Priority Register
Sourcepub fn mxint20_pri(&self) -> &MXINT_PRI
pub fn mxint20_pri(&self) -> &MXINT_PRI
0x60 - PLIC MX Interrupt 20 Priority Register
Sourcepub fn mxint21_pri(&self) -> &MXINT_PRI
pub fn mxint21_pri(&self) -> &MXINT_PRI
0x64 - PLIC MX Interrupt 21 Priority Register
Sourcepub fn mxint22_pri(&self) -> &MXINT_PRI
pub fn mxint22_pri(&self) -> &MXINT_PRI
0x68 - PLIC MX Interrupt 22 Priority Register
Sourcepub fn mxint23_pri(&self) -> &MXINT_PRI
pub fn mxint23_pri(&self) -> &MXINT_PRI
0x6c - PLIC MX Interrupt 23 Priority Register
Sourcepub fn mxint24_pri(&self) -> &MXINT_PRI
pub fn mxint24_pri(&self) -> &MXINT_PRI
0x70 - PLIC MX Interrupt 24 Priority Register
Sourcepub fn mxint25_pri(&self) -> &MXINT_PRI
pub fn mxint25_pri(&self) -> &MXINT_PRI
0x74 - PLIC MX Interrupt 25 Priority Register
Sourcepub fn mxint26_pri(&self) -> &MXINT_PRI
pub fn mxint26_pri(&self) -> &MXINT_PRI
0x78 - PLIC MX Interrupt 26 Priority Register
Sourcepub fn mxint27_pri(&self) -> &MXINT_PRI
pub fn mxint27_pri(&self) -> &MXINT_PRI
0x7c - PLIC MX Interrupt 27 Priority Register
Sourcepub fn mxint28_pri(&self) -> &MXINT_PRI
pub fn mxint28_pri(&self) -> &MXINT_PRI
0x80 - PLIC MX Interrupt 28 Priority Register
Sourcepub fn mxint29_pri(&self) -> &MXINT_PRI
pub fn mxint29_pri(&self) -> &MXINT_PRI
0x84 - PLIC MX Interrupt 29 Priority Register
Sourcepub fn mxint30_pri(&self) -> &MXINT_PRI
pub fn mxint30_pri(&self) -> &MXINT_PRI
0x88 - PLIC MX Interrupt 30 Priority Register
Sourcepub fn mxint31_pri(&self) -> &MXINT_PRI
pub fn mxint31_pri(&self) -> &MXINT_PRI
0x8c - PLIC MX Interrupt 31 Priority Register
Sourcepub fn mxint_thresh(&self) -> &MXINT_THRESH
pub fn mxint_thresh(&self) -> &MXINT_THRESH
0x90 - PLIC MX Interrupt Threshold Register
Sourcepub fn mxint_claim(&self) -> &MXINT_CLAIM
pub fn mxint_claim(&self) -> &MXINT_CLAIM
0x94 - PLIC MX Interrupt Claim Register