w5100_regs.h¶
Register definitions for W5100 devices.
-
CMD_READ
¶ 1
(0x0f)
-
CMD_WRITE
¶ 1
(0xf0)
-
REG_MODE
¶ mode
1
(0x0000)
-
REG_GAR0
¶ gateway address 0
1
(0x0001)
-
REG_GAR1
¶ gateway address 1
1
(0x0002)
-
REG_GAR2
¶ gateway address 2
1
(0x0003)
-
REG_GAR3
¶ gateway address 3
1
(0x0004)
-
REG_SUB0
¶ subnet mask 0
1
(0x0005)
-
REG_SUB1
¶ subnet mask 1
1
(0x0006)
-
REG_SUB2
¶ subnet mask 2
1
(0x0007)
-
REG_SUB3
¶ subnet mask 3
1
(0x0008)
-
REG_SHAR0
¶ source hardware address 0
1
(0x0009)
-
REG_SHAR1
¶ source hardware address 1
1
(0x000a)
-
REG_SHAR2
¶ source hardware address 2
1
(0x000b)
-
REG_SHAR3
¶ source hardware address 3
1
(0x000c)
-
REG_SHAR4
¶ source hardware address 4
1
(0x000d)
-
REG_SHAR5
¶ source hardware address 5
1
(0x000e)
-
REG_SIPR0
¶ source IP address 0
1
(0x000f)
-
REG_SIPR1
¶ source IP address 1
1
(0x0010)
-
REG_SIPR2
¶ source IP address 2
1
(0x0011)
-
REG_SIPR3
¶ source IP address 3
1
(0x0012)
-
REG_IR
¶ interrupt flags
1
(0x0015)
-
REG_IMR
¶ interrupt masks
1
(0x0016)
-
REG_RTR0
¶ retry time 0
1
(0x0017)
-
REG_RTR1
¶ retry time 1
1
(0x0018)
-
REG_RCR
¶ retry count
1
(0x0019)
-
REG_RMSR
¶ RX memory size.
1
(0x001a)
-
REG_TMSR
¶ TX memory size.
1
(0x001b)
-
REG_PATR0
¶ PPPoE auth type 0.
1
(0x001c)
-
REG_PATR1
¶ PPPoE auth type 1.
1
(0x001d)
-
REG_PTIMER
¶ PPP LCP request timer.
1
(0x0028)
-
REG_PMAGIC
¶ PPP LCP magic number.
1
(0x0029)
-
REG_UIPR0
¶ unreachable IP address 0
1
(0x002a)
-
REG_UIPR1
¶ unreachable IP address 1
1
(0x002b)
-
REG_UIPR2
¶ unreachable IP address 2
1
(0x002c)
-
REG_UIPR3
¶ unreachable IP address 3
1
(0x002d)
-
REG_UPORT0
¶ unreachable port 0
1
(0x00fe)
-
REG_UPORT1
¶ unreachable port 1
1
(0x002f)
-
S0_MR
¶ mode
1
(0x0400)
-
S0_CR
¶ control
1
(0x0401)
-
S0_IR
¶ interrupt flags
1
(0x0402)
-
S0_SR
¶ state
1
(0x0403)
-
S0_DHAR0
¶ destination hardware address 0
1
(0x0406)
-
S0_DHAR1
¶ destination hardware address 1
1
(0x0407)
-
S0_DHAR2
¶ destination hardware address 2
1
(0x0408)
-
S0_DHAR3
¶ destination hardware address 3
1
(0x0409)
-
S0_DHAR4
¶ destination hardware address 4
1
(0x040a)
-
S0_DHAR5
¶ destination hardware address 5
1
(0x040b)
-
S0_DIPR0
¶ destination IP address 0
1
(0x040c)
-
S0_DIPR1
¶ destination IP address 1
1
(0x040d)
-
S0_DIPR2
¶ destination IP address 2
1
(0x040e)
-
S0_DIPR3
¶ destination IP address 3
1
(0x040f)
-
S0_DPORT0
¶ destination port 0
1
(0x0410)
-
S0_DPORT1
¶ destination port 1
1
(0x0411)
-
S0_MSSR0
¶ maximum segment size 0
1
(0x0412)
-
S0_MSSR1
¶ maximum segment size 1
1
(0x0413)
-
S0_PROTO
¶ protocol in IP raw mode
1
(0x0414)
-
S0_TOS
¶ IP TOS.
1
(0x0415)
-
S0_TTL
¶ IP TTL.
1
(0x0416)
-
S0_TX_FSR0
¶ TX free size 0.
1
(0x0420)
-
S0_TX_FSR1
¶ TX free size 1.
1
(0x0421)
-
S0_TX_RD0
¶ TX read pointer 0.
1
(0x0422)
-
S0_TX_RD1
¶ TX read pointer 1.
1
(0x0423)
-
S0_TX_WR0
¶ TX write pointer 0.
1
(0x0424)
-
S0_TX_WR1
¶ TX write pointer 1.
1
(0x0425)
-
S0_RX_RSR0
¶ RX receive size 0.
1
(0x0426)
-
S0_RX_RSR1
¶ RX receive size 1.
1
(0x0427)
-
S0_RX_RD0
¶ RX read pointer 0.
1
(0x0428)
-
S0_RX_RD1
¶ RX read pointer 1.
1
(0x0429)
-
MODE_RESET
¶ device mode: reset
1
(0x80)
-
RMSR_8KB_TO_S0
¶ receive memory size: 8kib
1
(0x03)
-
TMSR_8KB_TO_S0
¶ transmit memory size: 8kib
1
(0x03)
-
IMR_S0_INT
¶ global socket 0 interrupt mask
1
(0x01)
-
MR_UDP
¶ socket mode: UDP
1
(0x02)
-
MR_MACRAW
¶ socket mode: raw Ethernet
1
(0x04)
-
CR_OPEN
¶ socket command: open
1
(0x01)
-
CR_CLOSE
¶ socket command: close
1
(0x10)
-
CR_SEND_MAC
¶ socket command: send raw
1
(0x21)
-
CR_RECV
¶ socket command: receive new data
1
(0x40)
-
IR_SEND_OK
¶ socket interrupt: send ok
1
(0x10)
-
IR_RECV
¶ socket interrupt: data received
1
(0x04)