pub struct PhyStatus {
pub base100_t4: bool,
pub fd_100base_x: bool,
pub hd_100base_x: bool,
pub fd_10mbps: bool,
pub hd_10mbps: bool,
pub extended_status: bool,
pub unidirectional: bool,
pub preamble_suppression: bool,
pub autonegotiation: bool,
pub extended_caps: bool,
}
Expand description
The status register of a PHY.
This struct describes what functions the PHY is capable of.
Fields§
§base100_t4: bool
The PHY supports 100BASE-T4
fd_100base_x: bool
The PHY supports 100BASE-X Full Duplex
hd_100base_x: bool
The PHY supports 100BASE-X Half Duplex
fd_10mbps: bool
The PHY supports 10 Mb/s full duplex
hd_10mbps: bool
The PHY supports 10 Mb/s half duples
extended_status: bool
The PHY has extended status data in register 15
unidirectional: bool
The PHY supports unidirectional communication
preamble_suppression: bool
The PHY is capable of accepting managmenet frames that are not preceded by the preamble
autonegotiation: bool
The PHY can perform autonegotiation
extended_caps: bool
The PHY supports extended capabilities, accessible through the extended register set
Implementations§
Source§impl PhyStatus
impl PhyStatus
Sourcepub fn best_autoneg_ad(&self) -> AutoNegotiationAdvertisement
pub fn best_autoneg_ad(&self) -> AutoNegotiationAdvertisement
Create the best autonegotiation advertisement that we can.
The returned advertisement will have default values for selector_field
and pause
.
Those fields must be configured manually, or left to their defaults.