Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn maccr(&self) -> &MACCR

0x00 - Ethernet MAC configuration register

Source

pub const fn macffr(&self) -> &MACFFR

0x04 - Ethernet MAC frame filter register

Source

pub const fn machthr(&self) -> &MACHTHR

0x08 - Ethernet MAC hash table high register

Source

pub const fn machtlr(&self) -> &MACHTLR

0x0c - Ethernet MAC hash table low register

Source

pub const fn macmiiar(&self) -> &MACMIIAR

0x10 - Ethernet MAC MII address register

Source

pub const fn macmiidr(&self) -> &MACMIIDR

0x14 - Ethernet MAC MII data register

Source

pub const fn macfcr(&self) -> &MACFCR

0x18 - Ethernet MAC flow control register

Source

pub const fn macvlantr(&self) -> &MACVLANTR

0x1c - Ethernet MAC VLAN tag register

Source

pub const fn macpmtcsr(&self) -> &MACPMTCSR

0x2c - Ethernet MAC PMT control and status register

Source

pub const fn macdbgr(&self) -> &MACDBGR

0x34 - Ethernet MAC debug register

Source

pub const fn macsr(&self) -> &MACSR

0x38 - Ethernet MAC interrupt status register

Source

pub const fn macimr(&self) -> &MACIMR

0x3c - Ethernet MAC interrupt mask register

Source

pub const fn maca0hr(&self) -> &MACA0HR

0x40 - Ethernet MAC address 0 high register

Source

pub const fn maca0lr(&self) -> &MACA0LR

0x44 - Ethernet MAC address 0 low register

Source

pub const fn maca1hr(&self) -> &MACA1HR

0x48 - Ethernet MAC address 1 high register

Source

pub const fn maca1lr(&self) -> &MACA1LR

0x4c - Ethernet MAC address1 low register

Source

pub const fn maca2hr(&self) -> &MACA2HR

0x50 - Ethernet MAC address 2 high register

Source

pub const fn maca2lr(&self) -> &MACA2LR

0x54 - Ethernet MAC address 2 low register

Source

pub const fn maca3hr(&self) -> &MACA3HR

0x58 - Ethernet MAC address 3 high register

Source

pub const fn maca3lr(&self) -> &MACA3LR

0x5c - Ethernet MAC address 3 low register

Trait Implementations§

Source§

impl Debug for RegisterBlock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.