pub struct GetLinkStateProcess;Expand description
A state machine describing the process of determining the link state of an (R)(G)MII PHY.
Each step in the process returns a ControlFlow. The Break
variant indicates that a result has been obtained, while the Continue variant indicates
that additional register reads are required. The value in the Continue variant will
have a next function to drive the process further.
Implementations§
Source§impl GetLinkStateProcess
impl GetLinkStateProcess
Sourcepub fn oneshot(
status: BasicStatus,
control: BasicControl,
autoneg_exp: AutonegotiationExpansion,
advertisement: AutonegotiationAdvertisement,
link_partner_ability: AutonegotiationLinkPartnerAbility,
lf_control: LeaderFollowerControl,
lf_status: LeaderFollowerStatus,
) -> Result<LinkState, LinkStateError>
pub fn oneshot( status: BasicStatus, control: BasicControl, autoneg_exp: AutonegotiationExpansion, advertisement: AutonegotiationAdvertisement, link_partner_ability: AutonegotiationLinkPartnerAbility, lf_control: LeaderFollowerControl, lf_status: LeaderFollowerStatus, ) -> Result<LinkState, LinkStateError>
Perform the process in a single shot by providing all of the registers necessary to perform the determination.
Sourcepub fn start(
status: BasicStatus,
control: BasicControl,
) -> ControlFlow<Result<LinkState, LinkStateError>, Autonegotiating>
pub fn start( status: BasicStatus, control: BasicControl, ) -> ControlFlow<Result<LinkState, LinkStateError>, Autonegotiating>
Start the process of determining the link state of a PHY.
Trait Implementations§
Source§impl Clone for GetLinkStateProcess
impl Clone for GetLinkStateProcess
Source§fn clone(&self) -> GetLinkStateProcess
fn clone(&self) -> GetLinkStateProcess
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 GetLinkStateProcess
Auto Trait Implementations§
impl Freeze for GetLinkStateProcess
impl RefUnwindSafe for GetLinkStateProcess
impl Send for GetLinkStateProcess
impl Sync for GetLinkStateProcess
impl Unpin for GetLinkStateProcess
impl UnsafeUnpin for GetLinkStateProcess
impl UnwindSafe for GetLinkStateProcess
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