embassy-stm32

Crates

git

Versions

stm32h747ag-cm4

Flavors

Skip to main content

StationManagement

Trait StationManagement 

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

Station Management Interface (SMI).

Required Methods§

Source

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

Read a register over SMI. Returns an error if the transfer stalls.

Source

fn smi_write(&mut self, phy_addr: u8, reg: u8, val: u16) -> Result<(), Error>

Write a register over SMI. Returns an error if the transfer stalls.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§