MIL-STD-1553 Reference Manual
Chapter 7 – Bus Controller Functions
7.1.21 ApiCmdBCSrvReqVecStatus
Prototype:
AiInt16 ApiCmdBCSrvReqVecStatus ( AiUInt32 ul_ModuleHandle, AiUInt8 uc_Biu,
AiUInt8 uc_RtAddr,
TY_API_BC_SRVW *px_SrvReqVecStatus);
Driver Command:
API_BC_SRV_REQ_READ (0x7D)
Purpose:
This function is used to read the Service Request and Vector Word Status information
the BC has maintained for a specific Remote Terminal. This command should only be
applied if the BC is enabled to perform Service Request / Vector Word handling (refer
to ApiCmdBCIni command).
I
I
n
n
p
p
u
u
t
t
A
A
i
i
U
U
I
I
n
n
t
t
8
8
u
u
c
c
_
_
R
R
t
t
A
A
d
d
d
d
r
r
O
O
u
u
t
t
p
p
u
u
t
t
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
B
B
C
C
_
_
S
S
R
R
V
V
W
W
*
*
p
p
s
s
r
r
v
v
w
w
BC Service Request and Vector Word Status description
typedef struct ty_api_bc_srvw
{
AiUInt16 uw_XferId;
AiUInt16 uw_LastVecWord;
AiUInt32 uw_SrvReqCnt;
} TY_API_BC_SRVW;
Note: ‘uw_XferId’, ‘uw_LastVecQord’ and ‘ul_SrvReqCnt’ are set to zero
whenever the ApiCmdBCStart command is executed!
A
A
i
i
U
U
I
I
n
n
t
t
1
1
6
6
u
u
w
w
_
_
X
X
f
f
e
e
r
r
I
I
i
i
d
d
Last BC Transfer ID
Note: See Section 1.3.5 for the range allowed for this parameter.
(value 0 means: no transaction)
Note: this value does not change if ‘normal’ Service Request Handling is
used and the parameter sxh of the command ApiCmdBcXferDef was
set to ‘API_BC_SRVW_ENABLE’. This value is for rare special cases.
A
A
i
i
U
U
I
I
n
n
t
t
1
1
6
6
u
u
w
w
_
_
L
L
a
a
s
s
t
t
V
V
e
e
c
c
W
W
o
o
r
r
d
d
Last Vector Word received from the specified RT
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
S
S
r
r
v
v
R
R
e
e
q
q
C
C
n
n
t
t
Amount of Service Requests issued by the specified RT
Return Value