Reference Manual AFDX / ARINC 664 Application Interface Library
105
Section 4 – Function Reference: Transmitter Functions
4
4
.
.
3
3
.
.
3
3
.
.
1
1
1
1
F
F
d
d
x
x
C
C
m
m
d
d
T
T
x
x
U
U
D
D
P
P
W
W
r
r
i
i
t
t
e
e
Prototype:
AiReturn FdxCmdTxUDPWrite ( AiUInt32 ul_Handle,
const AiUInt32 ul_UdpHandle
const AiUInt32 ul_ByteCount
const void *pv_Data
AiUInt32 *pul_BytesWritten);
Driver Command:
FDX_TX_UDP_WRITE (0x0000805D)
Purpose:
This function is used to write a pure message to a UDP port. This port can be a sampling or a
queuing port. If the data size is not applicable for the data size associated to this port, this
function will return an error.
For sampling ports this function initializes / modifies data contents.
For queuing ports a transmission is initiated when data is written to a UDP port.
This function can be used if the transmitter is running or not running.
For sampling ports this function should be called before the port is started to initialize the data
contents of the sampling 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
FdxCmdTxUDPCreatePort
.
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
B
B
y
y
t
t
e
e
C
C
o
o
u
u
n
n
t
t
Number of bytes to write to this UDP port. The value must be equal to or smaller
than ul_MaxMessageSize defined with
FdxCmdTxUDPCreatePort()
.
Port Type
Comment
Sampling
The value does not influence transmitted frame size. When the number is smaller
than ul_MaxMessageSize only the first part of the UDP buffer is updated.
Queuing
The value is equivalent to transmitted UDP message size.
v
v
o
o
i
i
d
d
*
*
p
p
v
v
_
_
D
D
a
a
t
t
a
a
Pointer to a buffer containing the data to write.