EasyManua.ls Logo

Aim MIL-STD-1553 - Apicmdgeniooutchnwrite

Aim MIL-STD-1553
502 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MIL-STD-1553 Reference Manual
426
426
Chapter 11 General I/O Functions
11.1.2 ApiCmdGenIoOutChnWrite
Prototype:
AiInt16 ApiCmdGenIoOutChnWrite (AiUInt32 ul_Module, AiUInt8 genio_type, AiUInt8 chn,
AiUInt32 res, AiUInt32 val);
Driver Command:
TG_API_GEN_IO_OUT_CHN_WRITE (0x302)
Purpose:
This function is used to write data to the specified output channel.
I
I
n
n
p
p
u
u
t
t
A
A
i
i
U
U
I
I
n
n
t
t
8
8
g
g
e
e
n
n
i
i
o
o
_
_
t
t
y
y
p
p
e
e
7……..4
3…….0
SlotNumber
BoardType
Slotnumber: 0
BoardType:
Value
Define
Description
0
API_GEN_IO_INIT_TYPE
Init ASP Driver structures and IO
access
1
API_GEN_IO_APX_TYPE
APX Discrete I/O type
A
A
i
i
U
U
I
I
n
n
t
t
8
8
c
c
h
h
n
n
Channel selection
For ‘BoardType’ = 1
Value
Description
0
write all discrete output channels at once
1..32
write to single discrete output channel
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
r
r
e
e
s
s
Spare Parameter
For ‘BoardType’ = 1
‘chn’
Value/
Range
Description
0
0
1
write all discrete output channels at once
write inverted val to all output channels
1..32
0
1..1000
write ‘val’ to the selected output channel (set/reset bit)
toggle the selected output channel for ‘res’ msec

Table of Contents

Other manuals for Aim MIL-STD-1553