Module mdio::miim

source · []
Expand description

MII Management (MIIM) Interface.

The IEEE 802.3 MII Management Interface. Allows for upper-layer devices to monitor and control the state of one or more PHYs.

Each of the 8 16-bit registers are indexed via a 5-bit address, preceded by a 5-bit PHY address.

A blanket implementation of the mdio::miim::{Read, Write} traits is provided for types implementing the mdio::{Read, Write} traits.

Traits

A trait for reading the standard MIIM protocol.
A trait for writing the standard MIIM protocol.

Functions

Given the PHY and register addresses, produce the control bits for an MDIO read operation.
Given the PHY and register addresses, produce the control bits for an MDIO write operation.