[][src]Struct ksz8863::miim::Map

pub struct Map { /* fields omitted */ }

A map of the state of all registers in the impl_registers invocation.

Implementations

impl Map[src]

pub const LEN: usize[src]

The total number of documented registers in the TMC2209.

pub fn reg<T>(&self) -> &T where
    T: 'static + Register
[src]

Read-only access to the register of the given type.

pub fn reg_mut<T>(&mut self) -> &mut T where
    T: 'static + Register
[src]

Mutable access to the register of the given type.

pub fn state(&self, addr: Address) -> &State[src]

Read-only access to the dynamic representation of the register state at the given address.

pub fn set_state(&mut self, state: State)[src]

Update the given register state.

pub fn bcr(&mut self) -> &mut Bcr[src]

pub fn bsr(&mut self) -> &mut Bsr[src]

pub fn phyidr1(&mut self) -> &mut PhyIdR1[src]

pub fn phyidr2(&mut self) -> &mut PhyIdR2[src]

pub fn anar(&mut self) -> &mut Anar[src]

pub fn anlpar(&mut self) -> &mut Anlpar[src]

pub fn phy_special(&mut self) -> &mut PhySpecial[src]

Trait Implementations

impl Clone for Map[src]

impl Debug for Map[src]

impl Default for Map[src]

impl Eq for Map[src]

impl Hash for Map[src]

impl Index<Address> for Map[src]

type Output = State

The returned type after indexing.

impl IndexMut<Address> for Map[src]

impl PartialEq<Map> for Map[src]

impl Read for Map[src]

type Error = InvalidAddress

Errors that might occur on the MIIM interface.

impl StructuralEq for Map[src]

impl StructuralPartialEq for Map[src]

impl Write for Map[src]

type Error = InvalidAddress

Errors that might occur on the MIIM interface.

Auto Trait Implementations

impl Send for Map[src]

impl Sync for Map[src]

impl Unpin for Map[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.