MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.8 ApiCmdInitDiscretes
Prototype:
AiInt16 ApiCmdInitDiscretes( AiUInt32 ul_ModuleHandle, AiUInt32 ul_DiscreteSetup );
Driver Command:
API_INIT_DISCRETES (0x29)
Purpose:
This command is used to configure the discretes. An APM or APX board provides 8
discretes where each of the discretes can be initialized as Input or Output.
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
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
D
D
i
i
s
s
c
c
r
r
e
e
t
t
e
e
S
S
e
e
t
t
u
u
p
p
IN/OUT
Each of the 8 discretes can be programmed to Input or Output
Discrete is used as Input
Discrete is used as Output
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.