[][src]Struct ksz8863::miim::Phy

pub struct Phy<'miim, T> {
    pub miim: &'miim mut Miim<T>,
    pub addr: u8,
}

A wrapper around an miim::Read and/or miim::Write implementation for a particular PHY.

Fields

miim: &'miim mut Miim<T>addr: u8

Implementations

impl<'miim, T> Phy<'miim, T>[src]

pub fn bcr<'phy>(&'phy mut self) -> PhyReg<'phy, 'miim, T, Bcr>[src]

pub fn bsr<'phy>(&'phy mut self) -> PhyReg<'phy, 'miim, T, Bsr>[src]

pub fn phyidr1<'phy>(&'phy mut self) -> PhyReg<'phy, 'miim, T, PhyIdR1>[src]

pub fn phyidr2<'phy>(&'phy mut self) -> PhyReg<'phy, 'miim, T, PhyIdR2>[src]

pub fn anar<'phy>(&'phy mut self) -> PhyReg<'phy, 'miim, T, Anar>[src]

pub fn anlpar<'phy>(&'phy mut self) -> PhyReg<'phy, 'miim, T, Anlpar>[src]

pub fn phy_special<'phy>(&'phy mut self) -> PhyReg<'phy, 'miim, T, PhySpecial>[src]

impl<'miim, T> Phy<'miim, T>[src]

pub fn reg<'phy, R>(&'phy mut self) -> PhyReg<'phy, 'miim, T, R>[src]

Access a particular register associated with this PHY.

pub fn read(&mut self, addr: Address) -> Result<State, T::Error> where
    T: Read
[src]

Read the register with the given address.

pub fn write(&mut self, state: State) -> Result<(), T::Error> where
    T: Write
[src]

Write the given register state to the register with the associated address.

Auto Trait Implementations

impl<'miim, T> Send for Phy<'miim, T> where
    T: Send
[src]

impl<'miim, T> Sync for Phy<'miim, T> where
    T: Sync
[src]

impl<'miim, T> Unpin for Phy<'miim, T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.