172
Reference Manual AFDX / ARINC 664 Application Interface Library
Section 4 – Function Reference: Receiver Functions
4
4
.
.
4
4
.
.
2
2
.
.
7
7
F
F
d
d
x
x
C
C
m
m
d
d
R
R
x
x
U
U
D
D
P
P
C
C
r
r
e
e
a
a
t
t
e
e
P
P
o
o
r
r
t
t
Prototype:
AiReturn FdxCmdRxUDPCreatePort ( AiUInt32 ul_Handle,
const TY_FDX_UDP_DESCRIPTION
*px_UdpDescription,
AiUInt32 *pul_UdpHandle);
Driver Command:
FDX_RX_UDP_CREATE_PORT (0x0000807C)
Purpose:
This function creates a port to receive data from a specified UDP connection oriented port.
This function can be used only if the receiver is not running. This function assumes that
FdxCmdRxVLControl
was previously called in order to enable a VL for reception. On this VL
this function creates an FDX communication Rx-port.
Input:
TY_FDX_UDP_DESCRIPTION *px_UdpDescription
Pointer to a structure, which describes the UDP connection.
typedef struct {
AiUInt32
ul_PortType;
struct _quintuplet {
AiUInt32
ul_UdpSrc;
AiUInt32
ul_IpSrc
AiUInt32
ul_VlId;
AiUInt32
ul_IpDst;
AiUInt32
ul_UdpDst;
}x_Quint;
AiUInt32
ul_SubVlId;
AiUInt32
ul_UdpNumBufMessages;
AiUInt32
ul_UdpMaxMessageSize;
AiUInt32
ul_UdpSamplingRate;
}TY_FDX_UDP_DESCRIPTION;
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
P
P
o
o
r
r
t
t
T
T
y
y
p
p
e
e
Type of the port connection
Value
Description
FDX_UDP_SAMPLING
Port is a sampling port.
Each Message is represented by one MAC Frame.
The size of the messages is fixed.
FDX_UDP_QUEUING
Port is a queuing port:
Each Message can be represented by one or more MAC Frame.
Reassembling will be done in the IP layer.
A Message can have a size up to 8kByte.
s
s
t
t
r
r
u
u
c
c
t
t
_
_
q
q
u
u
i
i
n
n
t
t
u
u
p
p
l
l
e
e
t
t
This structure provides a full identification of the communication.
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
x
x
_
_
Q
Q
u
u
i
i
n
n
t
t
.
.
u
u
l
l
_
_
U
U
d
d
p
p
S
S
r
r
c
c
UDP port-number of the source UDP port.