Sn_Sr (Socket N Status Register) - Wiznet W7500 Reference Manual

Internet offload processor
Hide thumbs Also See for W7500:
Table of Contents

Advertisement

*
ReadClearWrite1 (R/C_W1) : Software can read as well as clear this bit by writing
1. Writing '0' has no effect on the bit value.
7.6.6

Sn_SR (Socket n Status Register)

Address Offset : 0x0030
Reset value : 0x0000_0000
31
30
29
28
res
Res
Res
res
15
14
13
12
res
Res
Res
res
Sn_SR indicates the status of Socket n. The status of Socket n is changed by Sn_CR or some
special control packet as SYN, FIN packet in TCP.
Value
Symbol
0x00
SOCK_CLOSED
0x13
SOCK_INIT
0x14
SOCK_LISTEN
SOCK_ESTABLISHED This indicates the status of the connection of Socket n.
0x17
W7500 Datasheet Version1.0.0
27
26
25
24
res
res
res
res
11
10
9
8
res
res
res
res
This indicates that Socket n is released.
When DISCON, CLOSE command is ordered, or when a timeout
occurs, it is changed to SOCK_CLOSED regardless of previous
status.
This indicates Socket n is opened with TCP mode.
It is changed to SOCK_INIT when Sn_MR (P[3:0]) = „0001‟ and
OPEN command is ordered.
After SOCK_INIT, user can use LISTEN /CONNECT command.
This indicates Socket n is operating as „TCP server‟ mode and
waiting for connection-request (SYN packet) from a peer („TCP
client‟).
It will change to SOCK_ESTALBLISHED when the connection-
request is successfully accepted.
Otherwise it will change to SOCK_CLOSED after TCPTO occurred
(Sn_IR(TIMEOUT) = „1‟).
It changes to SOCK_ESTABLISHED when the „TCP SERVER‟
processed the SYN packet from the „TCP CLIENT‟ during
SOCK_LISTEN, or when the CONNECT command is successful.
23
22
21
20
res
res
res
res
7
6
5
4
R/W
R/W
R/W
R/W
Description
19
18
17
16
res
res
res
res
3
2
1
0
R/W
R/W
R/W
R/W
69 / 512

Advertisement

Table of Contents
loading

Table of Contents