MIL-STD-1553 Reference Manual
Chapter 9 – Bus Monitor Functions
9.1.17 ApiCmdBMStackpRead
Prototype:
AiInt16 ApiCmdBMStackpRead ( AiUInt32 ul_ModuleHandle, AiUInt8 biu,
TY_API_BM_STACKP_DSP *pstackp );
Driver Command:
API_BM_PTR_READ (0xBB)
Purpose:
This command is used to read the current Bus Monitor Buffer Pointer values.
I
I
n
n
p
p
u
u
t
t
n
n
o
o
n
n
e
e
O
O
u
u
t
t
p
p
u
u
t
t
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
B
B
M
M
_
_
S
S
T
T
A
A
C
C
K
K
P
P
_
_
D
D
S
S
P
P
*
*
p
p
s
s
t
t
a
a
c
c
k
k
p
p
BM Stack Pointer information
typedef struct ty_api_bm_stackp_dsp
{
AiUInt8 status;
AiUInt8 padding1;
AiUInt16 padding2;
AiUInt32 stp;
AiUInt32 ctp;
AiUInt32 etp;
} TY_API_BM_STACKP_DSP;
A
A
i
i
U
U
I
I
n
n
t
t
8
8
s
s
t
t
a
a
t
t
u
u
s
s
Status Indication for Monitor Pointer
Trigger not I (STP and CTP not valid)
API_BM_START_EVENT_OCCURED
Capture Start event (Trigger) I (STP,
CTP and ETP valid)
API_BM_STOP_EVENT_OCCURED
Capture Stop event (Trigger) I (STP,
CTP and ETP valid)
A
A
i
i
U
U
I
I
n
n
t
t
8
8
p
p
a
a
d
d
d
d
i
i
n
n
g
g
1
1
0 (reserved)
A
A
i
i
U
U
I
I
n
n
t
t
1
1
6
6
p
p
a
a
d
d
d
d
i
i
n
n
g
g
2
2
0 (reserved)
Monitor Start Entry Pointer
Monitor Capture Start/Trigger Pointer
Monitor Buffer Fill/End Pointer