RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 30 fields pub rx_data_fifo: RX_DATA_FIFO, pub tx_data_fifo: TX_DATA_FIFO, pub rx_status_fifo: RX_STATUS_FIFO, pub rx_status_fifo_peek: RX_STATUS_FIFO_PEEK, pub tx_status_fifo: TX_STATUS_FIFO, pub tx_status_fifo_peek: TX_STATUS_FIFO_PEEK, pub id_rev: ID_REV, pub irq_cfg: IRQ_CFG, pub int_sts: INT_STS, pub int_en: INT_EN, pub test_byte: TEST_BYTE, pub fifo_int: FIFO_INT, pub rx_cfg: RX_CFG, pub tx_cfg: TX_CFG, pub hw_cfg: HW_CFG, pub rx_dp_ctl: RX_DP_CTL, pub rx_fifo_inf: RX_FIFO_INF, pub tx_fifo_inf: TX_FIFO_INF, pub pmt_ctrl: PMT_CTRL, pub gpio_cfg: GPIO_CFG, pub gpt_cfg: GPT_CFG, pub gpt_cnt: GPT_CNT, pub word_swap: WORD_SWAP, pub free_run: FREE_RUN, pub rx_drop: RX_DROP, pub mac_csr_cmd: MAC_CSR_CMD, pub mac_csr_data: MAC_CSR_DATA, pub afc_cfg: AFC_CFG, pub e2p_cmd: E2P_CMD, pub e2p_data: E2P_DATA, /* private fields */
}
Expand description

Register block

Fields§

§rx_data_fifo: RX_DATA_FIFO

0x00 - RX Data FIFO Port

§tx_data_fifo: TX_DATA_FIFO

0x20 - TX Data FIFO Port

§rx_status_fifo: RX_STATUS_FIFO

0x40 - RX Status FIFO Port

§rx_status_fifo_peek: RX_STATUS_FIFO_PEEK

0x44 - RX Status FIFO PEEK Port

§tx_status_fifo: TX_STATUS_FIFO

0x48 - TX Status FIFO Port

§tx_status_fifo_peek: TX_STATUS_FIFO_PEEK

0x4c - TX Status FIFO PEEK Port

§id_rev: ID_REV

0x50 - ID and Revision

§irq_cfg: IRQ_CFG

0x54 - Main Interrupt Configuration

§int_sts: INT_STS

0x58 - Interrupt Status Register

§int_en: INT_EN

0x5c - Interrupt Enable Register

§test_byte: TEST_BYTE

0x64 - Byte Order Test Register

§fifo_int: FIFO_INT

0x68 - FIFO Level Interrupt

§rx_cfg: RX_CFG

0x6c - Receive Configuration

§tx_cfg: TX_CFG

0x70 - Transmit Configuration

§hw_cfg: HW_CFG

0x74 - Hardware Configuration

§rx_dp_ctl: RX_DP_CTL

0x78 - RX Datapath Control

§rx_fifo_inf: RX_FIFO_INF

0x7c - Receive FIFO Configuration

§tx_fifo_inf: TX_FIFO_INF

0x80 - Transmit FIFO Configuration

§pmt_ctrl: PMT_CTRL

0x84 - Power Management Control

§gpio_cfg: GPIO_CFG

0x88 - General Purpose IO Configuration

§gpt_cfg: GPT_CFG

0x8c - General Purpose Timer Configuration

§gpt_cnt: GPT_CNT

0x90 - General Purpose Timer Count

§word_swap: WORD_SWAP

0x98 - WORD SWAP Register

§free_run: FREE_RUN

0x9c - Free Run Counter

§rx_drop: RX_DROP

0xa0 - RX Dropped Frames Counter

§mac_csr_cmd: MAC_CSR_CMD

0xa4 - MAC CSR Synchronizer Command

§mac_csr_data: MAC_CSR_DATA

0xa8 - MAC CSR Synchronizer Data

§afc_cfg: AFC_CFG

0xac - Automatic Flow Control Configuration

§e2p_cmd: E2P_CMD

0xb0 - EEPROM Command

§e2p_data: E2P_DATA

0xb4 - EEPROM Data

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.