MIL-STD-1553 Reference Manual
Chapter 11 – General I/O Functions
11.1.6 ApiCmdGenIoTestSeq
Prototype:
AiInt16 ApiCmdGenIoTestSeq (AiUInt32 ul_Module, AiUInt32 ul_Con,
TY_API_GENIO_TEST_SEQ_TBL *px_SeqTbl,
AiUInt8 auc_SeqStatus[4]);
Purpose:
This function is used to initialise and control Sequences of signal state changes or
pulses, acyclic messages can be included into the sequences.
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
_
_
C
C
o
o
n
n
ul_Con : Test Sequence control
Setup all values as specified in structure px_SeqTbl
(TSW clears internally entire structure before Setup)
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
G
G
E
E
N
N
I
I
O
O
_
_
T
T
E
E
S
S
T
T
_
_
S
S
E
E
Q
Q
_
_
T
T
B
B
L
L
p
p
x
x
_
_
S
S
e
e
q
q
T
T
b
b
l
l
Test sequence table
#define MAX_GENIO_TEST_SEQ_ARRAY_SIZE 32
typedef struct
{
/* Start mode */
AiUInt32 mode;
/* Start condition */
AiUInt32 cond;
/* Reserved */
AiUInt32 res1;
AiUInt32 res2;
/* Timeline 0..10.000 in steps of ms */
AiUInt32 tm_ms[MAX_GENIO_TEST_SEQ_ARRAY_SIZE];
/* Identify IP slot number and Board Type, define required operation */
AiUInt32 genio_type_op[MAX_GENIO_TEST_SEQ_ARRAY_SIZE];
/* Define the toggle Bits (set to 1) */
AiUInt32 chn_val[MAX_GENIO_TEST_SEQ_ARRAY_SIZE];
} TY_API_GENIO_TEST_SEQ_ARRAY;
typedef struct
{
TY_API_GENIO_TEST_SEQ_ARRAY ax_Seq[4];
} TY_API_GENIO_TEST_SEQ_TBL;