MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.12 ApiCmdReadDiscretes
Prototype:
AiInt16 ApiCmdReadDiscretes( AiUInt32 ul_ModuleHandle, AiUInt32 *pul_Value );
Driver Command:
API_READ_DISCRETES (0x27)
Purpose:
This command is used to read from the discrete inputs.
Note: Since the discretes are programmable, be sure to have setup the discrete
inputs with the function ApiCmdInitDiscretes()!
Note: this function is not supported for all boards. Please see Table B-III – Function
Support By Boards With ASP for details
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
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
*
*
p
p
u
u
l
l
_
_
V
V
a
a
l
l
u
u
e
e
Note: The bits are only valid if the corresponding discretes are configured as Input
with the function ApiCmdInitDiscretes!