[−][src]Trait mdio::Read
Performing read operations via an MDIO interface.
Associated Types
Loading content...Required methods
pub fn read(&mut self, ctrl_bits: u16) -> Result<u16, Self::Error>
[src]
Given the 16 control bits, perform an MDIO read operation.
MIIM
In the standard MIIM protocol, the ctrl_bits
should contain the following in order:
- Start of frame (2 bits)
01
. - Op code (2 bits)
10
. - PHY address (5 bits)
- Register address (5 bits)
- Turn around (2 bits, MDIO line is released).
See the miim::Read
trait.
Implementors
impl<'a, T> Read for &'a mut T where
T: Read,
[src]
T: Read,
impl<MdioPin, MdcPin, Clk, E> Read for Mdio<MdioPin, MdcPin, Clk> where
MdcPin: OutputPin<Error = E>,
MdioPin: InputPin<Error = E> + OutputPin<Error = E>,
Clk: CountDown + Periodic,
[src]
MdcPin: OutputPin<Error = E>,
MdioPin: InputPin<Error = E> + OutputPin<Error = E>,
Clk: CountDown + Periodic,