nxp-pac

Crates

git

Versions

mcxn547

Flavors

Pint

Struct Pint 

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

Pin interrupts and pattern match for eight inputs selected through INPUTMUX. Reserved fields are omitted; write reserved bits as zero. Status and alias registers require explicit writes rather than blind read-modify-write. Construction defaults do not establish hardware reset values for reserved bits or write aliases whose reset diagrams contain unknown bits.

Implementations§

Source§

impl Pint

Source

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

Source

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

Source

pub const fn isel(self) -> Reg<Isel, RW>

Pin interrupt mode. Bits 31:8 read undefined; write them as zero.

Source

pub const fn ienr(self) -> Reg<Ienr, RW>

Rising-edge or level interrupt enable. Write bits 31:8 as zero.

Source

pub const fn sienr(self) -> Reg<Sienr, W>

Write-one set mask for IENR; zero has no effect.

Source

pub const fn cienr(self) -> Reg<Cienr, RW>

IENR clear alias, retaining the manuals’ read-write summary access. Unresolved vendor conflict: both manuals’ function prose says writing zero disables interrupts, but their CENRL diagrams mark W1C and field tables say zero has no effect and one disables. Pinned SVD also specifies oneToClear. Neither write-zero nor write-one behavior is resolved here; do not infer a safe write value from Default or use read-modify-write on this register.

Source

pub const fn ienf(self) -> Reg<Ienf, RW>

Falling-edge enable or active-level selection.

Source

pub const fn sienf(self) -> Reg<Sienf, W>

IENF set alias. Function prose and field encoding specify one sets and zero has no effect; the field-table introductory sentence instead says clear to disable. This vendor wording conflict is unresolved.

Source

pub const fn cienf(self) -> Reg<Cienf, W>

IENF clear alias, retaining the manuals’ write-only summary access. Field encodings specify zero has no effect and one selects LOW-active or disables falling-edge interrupts; adjacent prose also says writing zero configures IENF. This wording conflict is unresolved.

Source

pub const fn rise(self) -> Reg<Rise, RW>

Rising-edge detection, including disabled inputs; write one to clear.

Source

pub const fn fall(self) -> Reg<Fall, RW>

Falling-edge detection, including disabled inputs; write one to clear.

Source

pub const fn ist(self) -> Reg<Ist, RW>

Interrupt requests. Writing one clears both edge detectors in edge mode, but toggles the IENF active level in level mode. Zero has no effect.

Source

pub const fn pmctrl(self) -> Reg<Pmctrl, RW>

Pattern-match control and read-only match status. Configure PMSRC and PMCFG before enabling either control to avoid spurious interrupts. Clearing both controls erases edge history. Pattern matching requires clocks and cannot wake the chip below sleep mode. PMAT is read-only despite the register’s read-write access; the IR cannot enforce per-field access.

Source

pub const fn pmsrc(self) -> Reg<Pmsrc, RW>

Sources for eight pattern slices. Any write erases all pattern edge-detect history. Bits 7:0 are reserved and read zero.

Source

pub const fn pmcfg(self) -> Reg<Pmcfg, RW>

Eight slice conditions and seven programmable product endpoints. Slice 7 is always an endpoint; bit 7 is reserved. Any write erases all pattern edge-detect history. Unused slices must use constant-zero condition 6, not reset condition 0 (constant HIGH). The function prose’s instruction to clear PMCTRL controls “by writing 1” conflicts with the PMSRC note and PMCTRL control descriptions, which require zero; no special clear helper is supplied.

Trait Implementations§

Source§

impl Clone for Pint

Source§

fn clone(&self) -> Pint

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 Pint

Source§

fn eq(&self, other: &Pint) -> 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 Pint

Source§

impl Eq for Pint

Source§

impl Send for Pint

Source§

impl StructuralPartialEq for Pint

Source§

impl Sync for Pint

Auto Trait Implementations§

§

impl Freeze for Pint

§

impl RefUnwindSafe for Pint

§

impl Unpin for Pint

§

impl UnwindSafe for Pint

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.