pub struct InternalPhy { /* private fields */ }Expand description
Driver for the CH32V307 built-in 10M PHY at SMI address 1.
Implementations§
Source§impl InternalPhy
impl InternalPhy
Trait Implementations§
Source§impl Phy for InternalPhy
impl Phy for InternalPhy
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.