#[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: u32Implementations§
Source§impl Pdatain
impl Pdatain
Sourcepub const fn data_len(&self) -> u8
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.
Sourcepub const fn set_data_len(&mut self, val: u8)
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.
Sourcepub const fn dir(&self) -> bool
pub const fn dir(&self) -> bool
Direction of last access. Encodings: 0: Read by host; 1: Write by host