nxp-pac

Crates

git

Versions

mcxn236

Flavors

Erm

Struct Erm 

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

Error recording module. Supervisor word accesses only; enable the corresponding memory clock before channel register accesses. Initialize ECC memory and clear captured flags before enabling interrupts. Register slots do not imply usable error routing; N23 channels 5 and 6 are reserved targets, and RAMF is unavailable on 352-KB parts. Follow the selected part’s memory and ECC restrictions. Secure and privileged configuration is recommended by NXP, not enforced by this register view.

Implementations§

Source§

impl Erm

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn cr0(self) -> Reg<Cr0, RW>

Interrupt notification enables for channel slots 0-7. N23 targets 5 and 6 are reserved; channel 6 has no RAMF target on 352-KB parts.

Source

pub const fn cr1(self) -> Reg<Cr1, RW>

Interrupt notification enables for channel slots 8 and 9.

Source

pub const fn sr0(self) -> Reg<Sr0, RW>

Error status for channel slots 0-7. Write one to clear only the intended flags and their interrupt notifications; avoid read-modify-write. N23 targets 5 and 6 are reserved; channel 6 has no RAMF target on 352-KB parts.

Source

pub const fn sr1(self) -> Reg<Sr1, RW>

Error status for channel slots 8 and 9. Write one to clear only the intended flags and their interrupt notifications; avoid read-modify-write.

Source

pub const fn ear(self, n: usize) -> Reg<Ear, R>

Channel 0-4 address of the last recorded ECC event. Writes are ignored.

Source

pub const fn syn(self, n: usize) -> Reg<Syn, R>

Channel 0-4 syndrome of the last recorded ECC event. Writes are ignored. Identifies a single inverted data or address bit, but provides no additional diagnosis for non-correctable multi-bit inversions.

Source

pub const fn corr_err_cnt(self, n: usize) -> Reg<CorrErrCnt, RW>

Correctable error counts for channel slots 0-9. Saturate at 255; write zero to reset, nonzero writes have no effect. Channels 7-9 report non-correctable errors and do not increment counts. N23 targets 5 and 6 are reserved; RAMF is unavailable on 352-KB parts.

Source

pub const fn syn8(self) -> Reg<Syn, R>

Documented PKC RAM syndrome register. Writes are ignored. The chip integration table describes byte parity reporting, whereas generic register prose describes ECC syndrome; do not infer ECC decoding for this parity route.

Trait Implementations§

Source§

impl Clone for Erm

Source§

fn clone(&self) -> Erm

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Erm

Source§

fn eq(&self, other: &Erm) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Erm

Source§

impl Eq for Erm

Source§

impl Send for Erm

Source§

impl StructuralPartialEq for Erm

Source§

impl Sync for Erm

Auto Trait Implementations§

§

impl Freeze for Erm

§

impl RefUnwindSafe for Erm

§

impl Unpin for Erm

§

impl UnwindSafe for Erm

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

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.