#[non_exhaustive]pub struct LtpRequests {
pub lane0: LtpReq,
pub lane1: LtpReq,
pub lane2: LtpReq,
pub lane3: LtpReq,
}Expand description
The sink’s requests for all four lanes (Status_Flags_1, 0x41, and Status_Flags_2,
0x42). Lane 3 is ignored in 3-lane FRL.
Mirrors culvert’s LtpRequests. Build one with new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.lane0: LtpReqLane 0 (Status_Flags_1 bits 3:0).
lane1: LtpReqLane 1 (Status_Flags_1 bits 7:4).
lane2: LtpReqLane 2 (Status_Flags_2 bits 3:0).
lane3: LtpReqLane 3 (Status_Flags_2 bits 7:4). Not in use in 3-lane FRL, where it holds
whatever the sink leaves there (not necessarily LtpReq::None); the link training
layer ignores it.
Implementations§
Source§impl LtpRequests
impl LtpRequests
Sourcepub const fn new(
lane0: LtpReq,
lane1: LtpReq,
lane2: LtpReq,
lane3: LtpReq,
) -> LtpRequests
pub const fn new( lane0: LtpReq, lane1: LtpReq, lane2: LtpReq, lane3: LtpReq, ) -> LtpRequests
Constructs LtpRequests from the per-lane requests.
Sourcepub fn all_trained(&self) -> bool
pub fn all_trained(&self) -> bool
Returns true when none of the four lanes requests a pattern. In 3-lane FRL lane 3
is not in use and may hold anything, so there only lanes 0–2 decide whether
training passed (as plumbob checks them).
Trait Implementations§
Source§impl Clone for LtpRequests
impl Clone for LtpRequests
Source§fn clone(&self) -> LtpRequests
fn clone(&self) -> LtpRequests
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LtpRequests
Source§impl Debug for LtpRequests
impl Debug for LtpRequests
impl Eq for LtpRequests
Source§impl PartialEq for LtpRequests
impl PartialEq for LtpRequests
impl StructuralPartialEq for LtpRequests
Auto Trait Implementations§
impl Freeze for LtpRequests
impl RefUnwindSafe for LtpRequests
impl Send for LtpRequests
impl Sync for LtpRequests
impl Unpin for LtpRequests
impl UnsafeUnpin for LtpRequests
impl UnwindSafe for LtpRequests
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more