embassy-stm32

Crates

git

Versions

stm32h7s7z8

Flavors

📣 We want to hear from you! Fill the Rust Embedded 2024 micro-survey.

Trait embassy_stm32::eth::StationManagement

source ·
pub unsafe trait StationManagement {
    // Required methods
    fn smi_read(&mut self, phy_addr: u8, reg: u8) -> u16;
    fn smi_write(&mut self, phy_addr: u8, reg: u8, val: u16);
}
Expand description

Station Management Interface (SMI) on an ethernet PHY

§Safety

The methods cannot move out of self

Required Methods§

source

fn smi_read(&mut self, phy_addr: u8, reg: u8) -> u16

Read a register over SMI.

source

fn smi_write(&mut self, phy_addr: u8, reg: u8, val: u16)

Write a register over SMI.

Implementors§