![Aim AFDX / ARINC 664 Скачать руководство пользователя страница 113](http://html1.mh-extra.com/html/aim/afdx-arinc-664/afdx-arinc-664_reference-manual_2871730113.webp)
Reference Manual AFDX / ARINC 664 Application Interface Library
101
Section 4 – Function Reference: Transmitter Functions
4
4
.
.
3
3
.
.
3
3
.
.
9
9
F
F
d
d
x
x
C
C
m
m
d
d
T
T
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 FdxCmdTxUDPCreatePort (
AiUInt32 ul_Handle,
const TY_FDX_UDP_DESCRIPTION *px_UdpDescription,
AiUInt32 *pul_UdpHandle);
Driver Command:
FDX_TX_UDP_CREATE_PORT (0x0000805A)
Purpose:
This function is used to create a port to transmit data from a specified UDP connection oriented
port. Default settings after creation of the UDP port are:
-
UDP port enabled
-
Error injection: OFF
-
Skew (redundant mode only): 0 usec.
To change the settings of the UDP port the function
FdxCmdTxUDPControl
can be used.
This function can be used only if transmitter is not running.
Input:
TY_FDX_UDP_DESCRIPTION *px_UdpDescription
Pointer to a structure, which describes the UDP connection.
typedef struct {
AiUInt32
ul_PortType;
TY_FDX_QUINTUPLET
x_Quint;
AiUInt32
ul_SubVlId;
AiUInt32
ul_UdpNumBufMessages;
AiUInt32
ul_UdpMaxMessageSize;
AiUInt32
ul_UdpSamplingRate;
}TY_FDX_UDP_DESCRIPTION
typedef struct _quintuplet {
AiUInt32
ul_UdpSrc;
AiUInt32
ul_IpSrc
AiUInt32
ul_VlId;
AiUInt32
ul_IpDst;
AiUInt32
ul_UdpDst;
} TY_FDX_QUINTUPLET;
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 fix.
FDX_UDP_QUEUING
Port is a queuing port:
Each Message can be represented by one or more MAC
Frame. Reassemble will be done in the IP layer.
A Message can have a size up to 8kByte.