embassy-stm32

Crates

git

Versions

stm32h7s7i8

Flavors

embassy_stm32::eth

Trait PHY

source
pub unsafe trait PHY {
    // Required methods
    fn phy_reset<S: StationManagement>(&mut self, sm: &mut S);
    fn phy_init<S: StationManagement>(&mut self, sm: &mut S);
    fn poll_link<S: StationManagement>(
        &mut self,
        sm: &mut S,
        cx: &mut Context<'_>,
    ) -> bool;
}
Expand description

Traits for an Ethernet PHY

§Safety

The methods cannot move S

Required Methods§

source

fn phy_reset<S: StationManagement>(&mut self, sm: &mut S)

Reset PHY and wait for it to come out of reset.

source

fn phy_init<S: StationManagement>(&mut self, sm: &mut S)

PHY initialisation.

Poll link to see if it is up and FD with 100Mbps

Object Safety§

This trait is not object safe.

Implementors§