#[repr(transparent)]pub struct Paddr(pub u32);Expand description
Port Address. Normal-port address view; aliases POMFLEN at each port offset +0x0C. Address alignment must match the port range; split mailbox alignment includes both halves. Do not change address while enabled.
Tuple Fields§
§0: u32Implementations§
Source§impl Paddr
impl Paddr
Sourcepub const fn base_asz(&self) -> PaddrBaseAsz
pub const fn base_asz(&self) -> PaddrBaseAsz
The meaning is dependent on type of port:. Encodings: 0: Offset from 0 in host memory or I/O space.; 1: Uses BASE0 offset in host memory; 2: Uses BASE1 offset in host memory
Sourcepub const fn set_base_asz(&mut self, val: PaddrBaseAsz)
pub const fn set_base_asz(&mut self, val: PaddrBaseAsz)
The meaning is dependent on type of port:. Encodings: 0: Offset from 0 in host memory or I/O space.; 1: Uses BASE0 offset in host memory; 2: Uses BASE1 offset in host memory
Sourcepub const fn set_idxoff(&mut self, val: u8)
pub const fn set_idxoff(&mut self, val: u8)
Index Offset
Sourcepub const fn idx1st(&self) -> bool
pub const fn idx1st(&self) -> bool
For index-and-data register only:. Encodings: 0: Index is higher address than data (for example, data at OFF, index at OFF+IDXOFF); 1: Index is lower address than data (for example, index at OFF, data at OFF+IDXOFF)
Sourcepub const fn set_idx1st(&mut self, val: bool)
pub const fn set_idx1st(&mut self, val: bool)
For index-and-data register only:. Encodings: 0: Index is higher address than data (for example, data at OFF, index at OFF+IDXOFF); 1: Index is lower address than data (for example, index at OFF, data at OFF+IDXOFF)