176
Reference Manual AFDX / ARINC 664 Application Interface Library
Section 4 – Function Reference: Receiver Functions
4
4
.
.
4
4
.
.
2
2
.
.
1
1
0
0
F
F
d
d
x
x
C
C
m
m
d
d
R
R
x
x
U
U
D
D
P
P
R
R
e
e
a
a
d
d
Prototype:
AiReturn FdxCmdRxUDPRead ( AiUInt32 ul_Handle,
const AiUInt32 ul_UdpHandle,
AiUInt32 ul_MsgCount,
AiUInt32 *pul_MsgRead,
void *pv_ReadBuffer);
(TDB) )
Driver Command:
FDX_RX_UDP_READ
(0x0000807F)
Purpose:
This function reads data from a UDP connection oriented port.
Input:
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
U
U
d
d
p
p
H
H
a
a
n
n
d
d
l
l
e
e
See description of
FdxCmdRxUDPCreatePort
.
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
M
M
s
s
g
g
C
C
o
o
u
u
n
n
t
t
Number of Messages to read. This means the newest
ul_MsgCount
Entries. For a
sampling port there is a maximum of one message to read.
Note:
For sampling ports the number of messages to read shall be always 1.
Output:
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
*
*
p
p
u
u
l
l
_
_
M
M
s
s
g
g
R
R
e
e
a
a
d
d
Number of Messages actually read.
v
v
o
o
i
i
d
d
*
*
p
p
v
v
_
_
R
R
e
e
a
a
d
d
B
B
u
u
f
f
f
f
e
e
r
r
Pointer to the data buffer the Entries should be stored. Required size of buffer can
be calculated: ul_UdpMaxMessageSize * ul_MsgCount.
The ul_UdpMaxMessageSize is defined with function
FdxCmdRxUDPCreatePort
.
One Entry specifies one Message, which means one complete sampling or queuing message.
For special system information and administration a Fixed sized Header is preceded.
The following figure shows the schematic of such an entry.