esp32h2

Struct PLIC_MX

Source
pub struct PLIC_MX { /* private fields */ }
Expand description

PLIC Peripheral

Implementations§

Source§

impl PLIC_MX

Source

pub const PTR: *const RegisterBlock = {0x20001000 as *const plic_mx::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 mxint_enable(&self) -> &MXINT_ENABLE

0x00 - PLIC MX Interrupt Enable Register

Source

pub fn mxint_type(&self) -> &MXINT_TYPE

0x04 - PLIC MX Interrupt Type Register

Source

pub fn mxint_clear(&self) -> &MXINT_CLEAR

0x08 - PLIC MX Interrupt Clear Register

Source

pub fn emip_status(&self) -> &EMIP_STATUS

0x0c - PLIC EMIP Status Register

Source

pub fn mxint_pri(&self, n: usize) -> &MXINT_PRI

0x10..0x90 - PLIC MX Interrupt %s Priority Register

Source

pub fn mxint_pri_iter(&self) -> impl Iterator<Item = &MXINT_PRI>

Iterator for array of: 0x10..0x90 - PLIC MX Interrupt %s Priority Register

Source

pub fn mxint0_pri(&self) -> &MXINT_PRI

0x10 - PLIC MX Interrupt 0 Priority Register

Source

pub fn mxint1_pri(&self) -> &MXINT_PRI

0x14 - PLIC MX Interrupt 1 Priority Register

Source

pub fn mxint2_pri(&self) -> &MXINT_PRI

0x18 - PLIC MX Interrupt 2 Priority Register

Source

pub fn mxint3_pri(&self) -> &MXINT_PRI

0x1c - PLIC MX Interrupt 3 Priority Register

Source

pub fn mxint4_pri(&self) -> &MXINT_PRI

0x20 - PLIC MX Interrupt 4 Priority Register

Source

pub fn mxint5_pri(&self) -> &MXINT_PRI

0x24 - PLIC MX Interrupt 5 Priority Register

Source

pub fn mxint6_pri(&self) -> &MXINT_PRI

0x28 - PLIC MX Interrupt 6 Priority Register

Source

pub fn mxint7_pri(&self) -> &MXINT_PRI

0x2c - PLIC MX Interrupt 7 Priority Register

Source

pub fn mxint8_pri(&self) -> &MXINT_PRI

0x30 - PLIC MX Interrupt 8 Priority Register

Source

pub fn mxint9_pri(&self) -> &MXINT_PRI

0x34 - PLIC MX Interrupt 9 Priority Register

Source

pub fn mxint10_pri(&self) -> &MXINT_PRI

0x38 - PLIC MX Interrupt 10 Priority Register

Source

pub fn mxint11_pri(&self) -> &MXINT_PRI

0x3c - PLIC MX Interrupt 11 Priority Register

Source

pub fn mxint12_pri(&self) -> &MXINT_PRI

0x40 - PLIC MX Interrupt 12 Priority Register

Source

pub fn mxint13_pri(&self) -> &MXINT_PRI

0x44 - PLIC MX Interrupt 13 Priority Register

Source

pub fn mxint14_pri(&self) -> &MXINT_PRI

0x48 - PLIC MX Interrupt 14 Priority Register

Source

pub fn mxint15_pri(&self) -> &MXINT_PRI

0x4c - PLIC MX Interrupt 15 Priority Register

Source

pub fn mxint16_pri(&self) -> &MXINT_PRI

0x50 - PLIC MX Interrupt 16 Priority Register

Source

pub fn mxint17_pri(&self) -> &MXINT_PRI

0x54 - PLIC MX Interrupt 17 Priority Register

Source

pub fn mxint18_pri(&self) -> &MXINT_PRI

0x58 - PLIC MX Interrupt 18 Priority Register

Source

pub fn mxint19_pri(&self) -> &MXINT_PRI

0x5c - PLIC MX Interrupt 19 Priority Register

Source

pub fn mxint20_pri(&self) -> &MXINT_PRI

0x60 - PLIC MX Interrupt 20 Priority Register

Source

pub fn mxint21_pri(&self) -> &MXINT_PRI

0x64 - PLIC MX Interrupt 21 Priority Register

Source

pub fn mxint22_pri(&self) -> &MXINT_PRI

0x68 - PLIC MX Interrupt 22 Priority Register

Source

pub fn mxint23_pri(&self) -> &MXINT_PRI

0x6c - PLIC MX Interrupt 23 Priority Register

Source

pub fn mxint24_pri(&self) -> &MXINT_PRI

0x70 - PLIC MX Interrupt 24 Priority Register

Source

pub fn mxint25_pri(&self) -> &MXINT_PRI

0x74 - PLIC MX Interrupt 25 Priority Register

Source

pub fn mxint26_pri(&self) -> &MXINT_PRI

0x78 - PLIC MX Interrupt 26 Priority Register

Source

pub fn mxint27_pri(&self) -> &MXINT_PRI

0x7c - PLIC MX Interrupt 27 Priority Register

Source

pub fn mxint28_pri(&self) -> &MXINT_PRI

0x80 - PLIC MX Interrupt 28 Priority Register

Source

pub fn mxint29_pri(&self) -> &MXINT_PRI

0x84 - PLIC MX Interrupt 29 Priority Register

Source

pub fn mxint30_pri(&self) -> &MXINT_PRI

0x88 - PLIC MX Interrupt 30 Priority Register

Source

pub fn mxint31_pri(&self) -> &MXINT_PRI

0x8c - PLIC MX Interrupt 31 Priority Register

Source

pub fn mxint_thresh(&self) -> &MXINT_THRESH

0x90 - PLIC MX Interrupt Threshold Register

Source

pub fn mxint_claim(&self) -> &MXINT_CLAIM

0x94 - PLIC MX Interrupt Claim Register

Trait Implementations§

Source§

impl Debug for PLIC_MX

Source§

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

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

impl Deref for PLIC_MX

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for PLIC_MX

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.