MIL-STD-1553 Reference Manual
Chapter 6 – FIFO Functions
6.4 ApiCmdFifoWrite
Prototype:
AiInt16 ApiCmdFifoWrite ( AiUInt32 ul_ModuleHandle, AiUInt8 biu, AiUInt8 f_id,
AiUInt16 size, AiUInt16 *data );
Driver Command:
API_FIFO_BUF_WRITE (0xA1)
Purpose:
This function is used to load/reload the buffers of the specified FIFO ID. If half of the
FIFO Buffers have been transmitted, the FIFO buffers should be reloaded. A single
ApiCmdFifoWrite function call can only load/reload half of the buf_nbr specified with
the ApiCmdFifoIni function. To load/reload the buffers in the FIFO two function calls
are necessary. First, use the status value returned with the ApiCmdFifoReadStatus
function to determine the number of 16-bit words to reload for a specified FIFO ID.
Second, use this status value as the size input parameter for the ApiCmdFifoWrite
function for the specified FIFO ID.
I
I
n
n
p
p
u
u
t
t
A
A
i
i
U
U
I
I
n
n
t
t
8
8
f
f
_
_
i
i
d
d
A
A
i
i
U
U
I
I
n
n
t
t
1
1
6
6
s
s
i
i
z
z
e
e
Amount of Data Word’s to reload
A
A
i
i
U
U
I
I
n
n
t
t
1
1
6
6
*
*
d
d
a
a
t
t
a
a
Data to write
Return Value
All API functions return API_OK if no error occurred. If the return value is not equal
to API_OK the function ApiGetErrorDescription can be used to obtain an error
description.