nxp-pac

Crates

git

Versions

mcxa577

Flavors

Pdatain

Struct Pdatain 

Source
#[repr(transparent)]
pub struct Pdatain(pub u32);
Expand description

Port Data Input. Host input byte for endpoint/index-and-data; otherwise zero-relative last message length, including the four address bytes for SAF. SOURCE CONFLICT: SAF examples (52.6.1 and 52.6.3) require incoming TAG[29:26] and length[11:0], but the register table (52.8.1.27) marks 31:26 reserved and defines DIR[8] with DATA_LEN[7:0]. This model retains the conservative table layout and has no incoming TAG accessor; it does not supply the incoming SAF tag/length view required by those examples. CPU_TAG in PIRULESTAT is an outgoing completion tag, not a replacement for the missing incoming tag. Status depends on data consumption and port type; the source does not completely specify per-read clearing semantics. Mailbox state is explicitly maintained through PIRULESTAT. Do not assume a universal clear-on-read rule.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Pdatain

Source

pub const fn data_len(&self) -> u8

Endpoint/index-and-data input byte; otherwise zero-relative last message count, including the four address bytes for SAF. This conservative 8-bit register-table field conflicts with SAF examples requiring length[11:0]; do not treat it as the complete example-defined incoming SAF length.

Source

pub const fn set_data_len(&mut self, val: u8)

Endpoint/index-and-data input byte; otherwise zero-relative last message count, including the four address bytes for SAF. This conservative 8-bit register-table field conflicts with SAF examples requiring length[11:0]; do not treat it as the complete example-defined incoming SAF length.

Source

pub const fn dir(&self) -> bool

Direction of last access. Encodings: 0: Read by host; 1: Write by host

Source

pub const fn set_dir(&mut self, val: bool)

Direction of last access. Encodings: 0: Read by host; 1: Write by host

Source

pub const fn idx(&self) -> u16

Index of Last Access

Source

pub const fn set_idx(&mut self, val: u16)

Index of Last Access

Trait Implementations§

Source§

impl Clone for Pdatain

Source§

fn clone(&self) -> Pdatain

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 Debug for Pdatain

Source§

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

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

impl Default for Pdatain

Source§

fn default() -> Pdatain

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Pdatain

Source§

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

Source§

impl Eq for Pdatain

Source§

impl StructuralPartialEq for Pdatain

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