Enum w5500_ll::SnReg[][src]

#[repr(u16)]
pub enum SnReg {
Show 40 variants MR, CR, IR, SR, PORT0, PORT1, DHAR0, DHAR1, DHAR2, DHAR3, DHAR4, DHAR5, DIPR0, DIPR1, DIPR2, DIPR3, DPORT0, DPORT1, MSSR0, MSSR1, TOS, TTL, RXBUF_SIZE, TXBUF_SIZE, TX_FSR0, TX_FSR1, TX_RD0, TX_RD1, TX_WR0, TX_WR1, RX_RSR0, RX_RSR1, RX_RD0, RX_RD1, RX_WR0, RX_WR1, IMR, FRAG0, FRAG1, KPALVTR,
}
Expand description

W5500 socket register addresses.

Variants

MR

Address of the SN_MR register.

CR

Address of the SN_CR register.

IR

Address of the SN_IR register.

SR

Address of the SN_SR register.

PORT0

Address of the SN_PORT register, index 0.

PORT1

Address of the SN_PORT register, index 1.

DHAR0

Address of the SN_DHAR register, index 0.

DHAR1

Address of the SN_DHAR register, index 1.

DHAR2

Address of the SN_DHAR register, index 2.

DHAR3

Address of the SN_DHAR register, index 3.

DHAR4

Address of the SN_DHAR register, index 4.

DHAR5

Address of the SN_DHAR register, index 5.

DIPR0

Address of the SN_DIPR register, index 0.

DIPR1

Address of the SN_DIPR register, index 1.

DIPR2

Address of the SN_DIPR register, index 2.

DIPR3

Address of the SN_DIPR register, index 3.

DPORT0

Address of the SN_DPORT register, index 0.

DPORT1

Address of the SN_DPORT register, index 1.

MSSR0

Address of the SN_MSSR register, index 0.

MSSR1

Address of the SN_MSSR register, index 1.

TOS

Address of the SN_TOS register.

TTL

Address of the SN_TTL register.

RXBUF_SIZE

Address of the SN_RXBUF_SIZE register.

TXBUF_SIZE

Address of the SN_TXBUF_SIZE register.

TX_FSR0

Address of the SN_TX_FSR register, index 0.

TX_FSR1

Address of the SN_TX_FSR register, index 1.

TX_RD0

Address of the SN_TX_RD register, index 0.

TX_RD1

Address of the SN_TX_RD register, index 1.

TX_WR0

Address of the SN_TX_WR register, index 0.

TX_WR1

Address of the SN_TX_WR register, index 1.

RX_RSR0

Address of the SN_RX_RSR register, index 0.

RX_RSR1

Address of the SN_RX_RSR register, index 1.

RX_RD0

Address of the SN_RX_RD register, index 0.

RX_RD1

Address of the SN_RX_RD register, index 1.

RX_WR0

Address of the SN_RX_WR register, index 0.

RX_WR1

Address of the SN_RX_WR register, index 1.

IMR

Address of the SN_IMR register.

FRAG0

Address of the SN_FRAG register, index 0.

FRAG1

Address of the SN_FRAG register, index 1.

KPALVTR

Address of the SN_KPALVTR register.

Implementations

Get the address of the socket register.

Example
use w5500_ll::SnReg;

assert_eq!(SnReg::PORT0.addr(), 0x0004);

Returns true if the register is read-only.

Example
use w5500_ll::SnReg;

assert!(SnReg::SR.is_ro());
assert!(!SnReg::MR.is_ro());

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.