#[repr(transparent)]pub struct Pomflen(pub u32);Expand description
Port OOB, Mastering, and Flash Length. OOB/master/flash length view; aliases PADDR at +0x0C. LEN is zero-relative; obey host payload limit and maximum 124 bytes, or 120 for bus mastering. Flash erase uses its low three bits as sector encoding. TRANS semantics depend on port type; prepare before issuing SSTCL.
Tuple Fields§
§0: u32Implementations§
Source§impl Pomflen
impl Pomflen
Sourcepub const fn trans(&self) -> u8
pub const fn trans(&self) -> u8
Transfer Request. Encodings: 0: OOB: to host; Master: to host 32 (host reads with 32-bit address); SAF: Completion fail; 1: Master: to host 64 (host reads w/64-bit address); MAF: read flash (location in RAM); SAF: completion with data; 2: Master: from host 32 (host writes w/32-bit address); MAF: write flash (location in RAM); SAF: completion with no data; 3: Master: from host 64 (host writes w/64-bit address); MAF: erase flash (sector in RAM)
Sourcepub const fn set_trans(&mut self, val: u8)
pub const fn set_trans(&mut self, val: u8)
Transfer Request. Encodings: 0: OOB: to host; Master: to host 32 (host reads with 32-bit address); SAF: Completion fail; 1: Master: to host 64 (host reads w/64-bit address); MAF: read flash (location in RAM); SAF: completion with data; 2: Master: from host 32 (host writes w/32-bit address); MAF: write flash (location in RAM); SAF: completion with no data; 3: Master: from host 64 (host writes w/64-bit address); MAF: erase flash (sector in RAM)