MIL-STD-1553 Reference Manual
Chapter 5 – Buffer Functions
5.1.5 ApiCmdBufWrite
Prototype:
AiInt16 ApiCmdBufWrite ( AiUInt32 ul_ModuleHandle, AiUInt8 biu, AiUInt8 bt, AiUInt16 hid,
AiUInt16 bid, AiUInt8 data_pos, AiUInt8 bit_pos,
AiUInt8 bit_len, AiUInt16 data );
Driver Command:
API_BUF_WRITE (0x5D)
Purpose:
This function is used to write a data word/bits to variable positions of the specified
BC/RT transmit/receive message buffer.
Input
Buffer type
Buffer Header ID
Note: See Section 1.3.5 for the range allowed for this parameter.
Write Buffer Data Words to absolute
Data Buffer Index
Note: See section 1.3.5 for the
range allowed for this
parameter.
Write to current Data Buffer Index
Write Buffer Data Words to Data
Buffer Index relative to the Data
Buffer Queue Base Index of the
specified Buffer Header Identifier.
A
A
i
i
U
U
I
I
n
n
t
t
8
8
d
d
a
a
t
t
a
a
_
_
p
p
o
o
s
s
Data Word position in Buffer to write
A
A
i
i
U
U
I
I
n
n
t
t
8
8
b
b
i
i
t
t
_
_
p
p
o
o
s
s
Bit position in Data Word
A
A
i
i
U
U
I
I
n
n
t
t
8
8
b
b
i
i
t
t
_
_
l
l
e
e
n
n