User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 152
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
Relevance
This command is relevant only when the TCP/IP stack is enabled.
Frame Body
The following is the structure of the Send command.
#define MAX_PAYLOAD_SIZE 1400
struct TCP_CNFG_Send
{
UINT16 uSocketDescriptor;
UINT32 uBufferLength;
UINT16 uDataOffset;
UINT8 aBuffer[MAX_PAYLOAD_SIZE];
};
Structure Member
Name
Description
uSocketDescriptor
Descriptor of the created socket
uBufferLength
Length of the data to be sent
uDataOffset
Offset of the data in the buffer.
To avoid redundant “memcpy”. The
format of the send frame body is
shown in the figure below.
aBuffer
Buffer comprising the data payload.
The payload starts from the offset as
shown in the figure below.