122
Reference Manual AFDX / ARINC 664 Application Interface Library
Section 4 – Function Reference: Transmitter Functions
4
4
.
.
3
3
.
.
4
4
.
.
4
4
F
F
d
d
x
x
C
C
m
m
d
d
T
T
x
x
B
B
u
u
f
f
f
f
e
e
r
r
Q
Q
u
u
e
e
u
u
e
e
W
W
r
r
i
i
t
t
e
e
Prototype:
AiReturn FdxCmdTxBufferQueueWrite (AiUInt32 ul_Handle,
TY_FDX_FW_BUF_HDL x_TxBufferQueueHandle,
AiUInt32 ul_StartIndex,
AiUInt32 ul_StartByte,
AiUInt32 ul_BytesToWrite,
void *pv_Data,
AiUInt32 *pul_BytesWritten);
D
D
r
r
i
i
v
v
e
e
r
r
C
C
o
o
m
m
m
m
a
a
n
n
d
d
:
:
FDX_TX_BUF_QUEUE_WRITE
Purpose:
This function writes data to a Buffer Queue in the BIU associated memory (Global Ram).
A write to a buffer of a queue which is used by an active transmitter may produce inconsistent
data for one transfer.
Input:
T
T
Y
Y
_
_
F
F
D
D
X
X
_
_
F
F
W
W
_
_
B
B
U
U
F
F
_
_
H
H
D
D
L
L
x
x
_
_
B
B
u
u
f
f
f
f
e
e
r
r
H
H
a
a
n
n
d
d
l
l
e
e
Handle to the buffer queue, this command is applied to.
(See description of
FdxCmdTxBufferQueueAlloc
).
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
S
S
t
t
a
a
r
r
t
t
I
I
n
n
d
d
e
e
x
x
Start Index of the buffer queue in BIU associated memory which describes the start
location to write data to. This value must not exceed the maximum number of
buffers in the queue. Therefore the value must be in the range between 0 (first
buffer in queue) and the “
ul_BuffersInQueue
– 1” parameter , given at the
FdxCmdTxBufferQueueAlloc
function. A value of FDX_TX_BUF_QUEUE_ACT write
the data beginning with the current Buffer Index.
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
S
S
t
t
a
a
r
r
t
t
B
B
y
y
t
t
e
e
Offset to the first byte to write inside the selected buffer. Using this option you have
the possibility to write only a part of a message.
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
s
s
T
T
o
o
W
W
r
r
i
i
t
t
e
e
Number of bytes which shall be written to the BIU associated memory. Since the
Buffer Queue allocates multiple buffers continuously, it is possible to write more
than one buffer of the queue with one call, by setting this parameter to the
corresponding number of bytes.