MIL-STD-1553 Reference Manual
Chapter 12 – Troubleshooting
Error Reporting by ApiIo Function Call – Point 2
If the API S/W Library function call involves a command to the Target S/W, the ApiIo function
on the host is called by the Library function and passed the command and the expected
acknowledgement to be received from the Target S/W. If the Library function call to ApiIo
contains parameter errors, which would occur at point 2, an “ERROR in function call”
message as shown in Figure 0.1-2 above will occur with ApiIo as the function name and one of
the following error codes/error constant definitions.
A
A
P
P
I
I
_
_
E
E
R
R
R
R
_
_
W
W
R
R
O
O
N
N
G
G
_
_
M
M
O
O
D
D
U
U
L
L
E
E
M
M
o
o
d
d
u
u
l
l
e
e
n
n
u
u
m
m
b
b
e
e
r
r
i
i
s
s
n
n
o
o
t
t
i
i
n
n
r
r
a
a
n
n
g
g
e
e
A
A
P
P
I
I
_
_
E
E
R
R
R
R
_
_
P
P
A
A
R
R
A
A
M
M
5
5
_
_
I
I
S
S
_
_
N
N
U
U
L
L
L
L
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
5
5
p
p
o
o
i
i
n
n
t
t
e
e
r
r
i
i
s
s
n
n
u
u
l
l
l
l
A
A
P
P
I
I
_
_
E
E
R
R
R
R
_
_
P
P
A
A
R
R
A
A
M
M
3
3
_
_
N
N
O
O
T
T
_
_
I
I
N
N
_
_
R
R
A
A
N
N
G
G
E
E
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
3
3
(
(
C
C
M
M
D
D
)
)
i
i
s
s
n
n
o
o
t
t
i
i
n
n
r
r
a
a
n
n
g
g
e
e
A
A
P
P
I
I
_
_
E
E
R
R
R
R
_
_
P
P
A
A
R
R
A
A
M
M
4
4
_
_
N
N
O
O
T
T
_
_
I
I
N
N
_
_
R
R
A
A
N
N
G
G
E
E
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
4
4
(
(
e
e
x
x
p
p
e
e
c
c
t
t
e
e
d
d
A
A
C
C
K
K
)
)
i
i
s
s
n
n
o
o
t
t
i
i
n
n
r
r
a
a
n
n
g
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1
2
2
p
p
o
o
i
i
n
n
t
t
e
e
r
r
i
i
s
s
n
n
u
u
l
l
l
l
A
A
P
P
I
I
_
_
E
E
R
R
R
R
_
_
P
P
A
A
R
R
A
A
M
M
1
1
3
3
_
_
I
I
S
S
_
_
N
N
U
U
L
L
L
L
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
1
1
3
3
p
p
o
o
i
i
n
n
t
t
e
e
r
r
i
i
s
s
n
n
u
u
l
l
l
l
A
A
P
P
I
I
_
_
E
E
R
R
R
R
_
_
P
P
A
A
R
R
A
A
M
M
1
1
4
4
_
_
I
I
S
S
_
_
N
N
U
U
L
L
L
L
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
1
1
4
4
p
p
o
o
i
i
n
n
t
t
e
e
r
r
i
i
s
s
n
n
u
u
l
l
l
l
The ApiIo function suspends further execution of the Target command and returns to the calling
API S/W Library function if one of the above errors is detected.
The user should examine the error message and determine whether the original error occurred
within the parameters passed by the original calling function. If so, the user should then return
to the user’s program, locate the function call in question and correct the specified error.
Otherwise AIM support should be notified.
If the ApiIo function verifies all parameters passed to it are valid and within range it then sets up
command buffers to be sent to the Target S/W and calls the appropriate OS driver via the
_ApiIo API S/W Library function. The Target S/W attempts to execute the Target driver
command and returns status of the command and acknowledgement information.