User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 151
R
R
S
S
9
9
1
1
1
1
0
0
-
-
N
N
-
-
1
1
1
1
-
-
2
2
2
2
/
/
2
2
4
4
/
/
2
2
8
8
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
i
i
n
n
g
g
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
M
M
a
a
n
n
u
u
a
a
l
l
V
V
e
e
r
r
s
s
i
i
o
o
n
n
4
4
.
.
1
1
5
5
{
UINT16 uSocketDescriptor;
UINT32 nErrorCode;
};
Structure Member
Name
Description
uSocketDescriptor
Socket descriptor of the socket to be
closed.
uErrorCode
0 Success
-2 : Socket not available
-91: IGMP Error
-95: ARP request failed
4.10.4 Send Data to a Socket
Description
This command sends a byte stream of a certain size to the socket specified by
the socket handle. The maximum size of the data that can be transmitted to the
module is limited to 1460 bytes in case of TCP and 1472 in case of UDP.
The Host Driver is also expected to query the status of the buffers in the module
for each transfer. The following flowchart gives a brief idea of the protocol to be
followed by the driver while doing any transfers.
Figure 30:Flowchart for Transmitting Frames
Read
SPI_HOST_INTR
register
Bit[0]=1?
No
Send
data
Yes