MIL-STD-1553 Reference Manual
Chapter 8 – Remote Terminal Functions
8.1.16 ApiCmdRTMsgReadAll
Prototype:
AiInt16 ApiCmdRTMsgReadAll ( AiUInt32 ul_ModuleHandle, AiUInt8 biu,
TY_API_RT_MSG_ALL_DSP *pall_dsp );
Driver Command:
API_RT_MSG_READ_ALL (0x9E)
Purpose:
This function is used to read the Transfer-/Error counter values of all Remote
Terminals on the AIM board.
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
_
_
R
R
T
T
_
_
M
M
S
S
G
G
_
_
A
A
L
L
L
L
_
_
D
D
S
S
P
P
*
*
p
p
a
a
l
l
l
l
_
_
d
d
s
s
p
p
Entire RT Status information
typedef struct ty_api_rt_msg_all_dsp_rt
{
AiUInt32 rt_msg;
AiUInt32 rt_err;
}TY_API_RT_MSG_ALL_DSP_RT;
typedef struct ty_api_rt_msg_all_dsp
{
TY_API_RT_MSG_ALL_DSP_RT rt[32];
} TY_API_RT_MSG_ALL_DSP;
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
r
r
t
t
_
_
m
m
s
s
g
g
Number of Messages I to/from RT0 ... RT31
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
r
r
t
t
_
_
e
e
r
r
r
r
Number of Message Errors detected for RT0 ... RT31
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.
Note: rt_msg and rt_err are
cleared on restart of
the AIM board
Remote Terminals
when the
ApiCmdRTStart'
function is called.