embassy-stm32

Crates

git

Versions

stm32f429ze

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§