EasyManua.ls Logo

Aim MIL-STD-1553 - Apicmdfifowrite

Aim MIL-STD-1553
502 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MIL-STD-1553 Reference Manual
191
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
Value
Description
1..32
FIFO Identifier
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
O
O
u
u
t
t
p
p
u
u
t
t
n
n
o
o
n
n
e
e
Return Value
A
A
i
i
I
I
n
n
t
t
1
1
6
6
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.

Table of Contents

Other manuals for Aim MIL-STD-1553