MIL-STD-1553 Reference Manual
Chapter 7 – Bus Controller Functions
7.1.15 ApiCmdBCInstrTblGetAddrFromLabel
Prototype:
AiInt16 ApiCmdBCInstrTblGetAddrFromLabel (AiUInt32 ul_ModuleHandle, AiUInt8 biu,
AiUInt32 label, AiUInt32 cnt,
TY_API_BC_FW_INSTR *tbl,
AiUInt32 *raddr, AiUInt32 *line);
Driver Command:
none
Purpose:
This function is used to return the Global memory address of the specified label within
the BC Instruction Table structure.
I
I
n
n
p
p
u
u
t
t
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
l
l
a
a
b
b
e
e
l
l
Label ID to search for within the BC Instruction Table structure (tbl).
Amount of entries in the BC Instruction Table structure (tbl).
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
B
B
C
C
_
_
F
F
W
W
_
_
I
I
N
N
S
S
T
T
R
R
*
*
t
t
b
b
l
l
BC Instruction Table
O
O
u
u
t
t
p
p
u
u
t
t
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
*
*
r
r
a
a
d
d
d
d
r
r
Returning Global memory address (zero if label was not found)
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
*
*
l
l
i
i
n
n
e
e
Returning Line (entry number) where the label was found. (0 = first line)
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.