pub struct GenericPhy { /* private fields */ }Expand description
Generic PHY driver that works with IEEE 802.3 compliant PHYs.
For the CH32V307 built-in 10M PHY, use InternalPhy instead.
Implementations§
Source§impl GenericPhy
impl GenericPhy
Trait Implementations§
Source§impl Phy for GenericPhy
impl Phy for GenericPhy
Source§fn phy_reset(&mut self, smi: &mut Smi) -> Result<(), SmiError>
fn phy_reset(&mut self, smi: &mut Smi) -> Result<(), SmiError>
Reset the PHY and wait for it to come out of reset.
Source§fn phy_init(&mut self, smi: &mut Smi) -> Result<(), SmiError>
fn phy_init(&mut self, smi: &mut Smi) -> Result<(), SmiError>
Initialize the PHY (enable autonegotiation, etc).
Source§fn poll_link(
&mut self,
smi: &mut Smi,
_cx: &mut Context<'_>,
) -> Result<bool, SmiError>
fn poll_link( &mut self, smi: &mut Smi, _cx: &mut Context<'_>, ) -> Result<bool, SmiError>
Poll the link state. Returns true if link is up.
Source§fn full_duplex(&mut self, _smi: &mut Smi) -> Result<bool, SmiError>
fn full_duplex(&mut self, _smi: &mut Smi) -> Result<bool, SmiError>
Duplex mode of the established link (called on each link-up).
Returns true for full duplex. The default keeps the MAC in full duplex.
Source§fn speed_100m(&mut self, _smi: &mut Smi) -> Result<bool, SmiError>
fn speed_100m(&mut self, _smi: &mut Smi) -> Result<bool, SmiError>
Speed of the established link (called on each link-up).
Returns true for 100 Mbit/s. The default keeps the MAC at 100 Mbit/s.