MIL-STD-1553 Reference Manual
Chapter 9 – Bus Monitor Functions
AiUInt32 ul_BytesTransferred;
AiUInt32 ul_BytesInQueueLo;
AiUInt32 ul_BytesInQueueHi;
AiUInt32 ul_TotalBytesTransferredLo;
AiUInt32 ul_TotalBytesTransferredHi;
} TY_API_DATA_QUEUE_STATUS;
typedef struct ty_api_data_queue_read
{
AiUInt8 uc_Id; (see input description)
AiUInt8 uc_Padding1; (see input description)
AiUInt16 uw_Padding2; (see input description)
void *pv_MemBuf; (see input description)
AiUInt32 ul_BytesToRead; (see input description)
TY_API_DATA_QUEUE_STATUS x_Info;
} TY_API_DATA_QUEUE_READ;
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
p
p
x
x
_
_
Q
Q
u
u
e
e
u
u
e
e
D
D
a
a
t
t
a
a
-
-
>
>
x
x
_
_
I
I
n
n
f
f
o
o
.
.
u
u
l
l
_
_
S
S
t
t
a
a
t
t
u
u
s
s
Information about the data queue status
E
E
N
N
A
A
Q
Q
u
u
e
e
u
u
e
e
i
i
s
s
e
e
n
n
a
a
b
b
l
l
e
e
d
d
i
i
f
f
s
s
e
e
t
t
t
t
o
o
1
1
R
R
E
E
S
S
U
U
M
M
Q
Q
u
u
e
e
u
u
e
e
h
h
a
a
s
s
b
b
e
e
e
e
n
n
r
r
e
e
s
s
u
u
m
m
e
e
d
d
(
(
s
s
e
e
e
e
f
f
u
u
n
n
c
c
t
t
i
i
o
o
n
n
A
A
p
p
i
i
C
C
m
m
d
d
D
D
a
a
t
t
a
a
Q
Q
u
u
e
e
u
u
e
e
C
C
o
o
n
n
t
t
r
r
o
o
l
l
)
)
i
i
f
f
s
s
e
e
t
t
t
t
o
o
1
1
C
C
A
A
P
P
S
S
M
M
i
i
l
l
S
S
c
c
o
o
p
p
e
e
o
o
n
n
l
l
y
y
i
i
n
n
d
d
i
i
c
c
a
a
t
t
e
e
s
s
s
s
i
i
n
n
g
g
l
l
e
e
s
s
h
h
o
o
t
t
c
c
a
a
p
p
t
t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
Q
Q
u
u
e
e
u
u
e
e
D
D
a
a
t
t
a
a
-
-
>
>
x
x
_
_
I
I
n
n
f
f
o
o
.
.
u
u
l
l
_
_
B
B
y
y
t
t
e
e
s
s
T
T
r
r
a
a
n
n
s
s
f
f
e
e
r
r
r
r
e
e
d
d
Amount of bytes that have been read from the data queue
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
p
p
x
x
_
_
Q
Q
u
u
e
e
u
u
e
e
D
D
a
a
t
t
a
a
-
-
>
>
x
x
_
_
I
I
n
n
f
f
o
o
.
.
u
u
l
l
_
_
B
B
y
y
t
t
e
e
s
s
I
I
n
n
Q
Q
u
u
e
e
u
u
e
e
L
L
o
o
Low-part of the 64bit amount of bytes that is currently stored in the data queue
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
p
p
x
x
_
_
Q
Q
u
u
e
e
u
u
e
e
D
D
a
a
t
t
a
a
-
-
>
>
x
x
_
_
I
I
n
n
f
f
o
o
.
.
u
u
l
l
_
_
B
B
y
y
t
t
e
e
s
s
I
I
n
n
Q
Q
u
u
e
e
u
u
e
e
H
H
i
i
High-part of the 64bit amount of bytes that is currently stored in the data queue
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
p
p
x
x
_
_
Q
Q
u
u
e
e
u
u
e
e
D
D
a
a
t
t
a
a
-
-
>
>
x
x
_
_
I
I
n
n
f
f
o
o
.
.
u
u
l
l
_
_
T
T
o
o
t
t
a
a
l
l
B
B
y
y
t
t
e
e
s
s
T
T
r
r
a
a
n
n
s
s
f
f
e
e
r
r
r
r
e
e
d
d
L
L
o
o
Low-part of the 64bit amount of bytes that has been read from the data queue since it was
created.
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
p
p
x
x
_
_
Q
Q
u
u
e
e
u
u
e
e
D
D
a
a
t
t
a
a
-
-
>
>
x
x
_
_
I
I
n
n
f
f
o
o
.
.
u
u
l
l
_
_
T
T
o
o
t
t
a
a
l
l
B
B
y
y
t
t
e
e
s
s
T
T
r
r
a
a
n
n
s
s
f
f
e
e
r
r
r
r
e
e
d
d
H
H
i
i