MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.33 ApiCmdWriteDiscretes
Prototype:
AiInt16 ApiCmdWriteDiscretes( AiUInt32 ul_ModuleHandle, AiUInt32 ul_Mask,
AiUInt32 ul_Value);
Driver Command:
API_WRITE_DISCRETES (0x28)
Purpose:
This command is used to write to the discrete outputs.
Note: Since the discretes are programmable, be sure to have setup the discrete
outputs 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
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
M
M
a
a
s
s
k
k
The mask is used to define the discrete outputs that are actually written. A “1” marks
the discrete output to be written.