MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.6 ApiCmdGetIrigTime
Prototype:
AiInt16 ApiCmdGetIrigTime ( AiUInt32 ul_ModuleHandle, TY_API_IRIG_TIME *pirig_time );
Driver Command:
API_GET_IRIG_TIME (0x3E)
Purpose:
This function is used to read the on-board IRIG timecode encoder.
Input
Output
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
I
I
R
R
I
I
G
G
_
_
T
T
I
I
M
M
E
E
*
*
p
p
i
i
r
r
i
i
g
g
_
_
t
t
i
i
m
m
e
e
IRIG Timecode structure
typedef struct ty_api_irig_time
{
AiUInt8 day_hi;
AiUInt8 day_lo;
AiUInt8 hour;
AiUInt8 min;
AiUInt8 sec;
AiUInt8 ms_hi;
AiUInt8 ms_lo;
AiUInt8 mode;
AiUInt8 irig_src;
AiUInt8 irig_sync;
} TY_API_IRIG_TIME
A
A
i
i
U
U
I
I
n
n
t
t
8
8
d
d
a
a
y
y
_
_
h
h
i
i
Higher Byte of the IRIG day field
A
A
i
i
U
U
I
I
n
n
t
t
8
8
d
d
a
a
y
y
_
_
l
l
o
o
Lower Byte of the IRIG day field
Value of the IRIG hour field (0..23)
Value of the IRIG minute field (0..59)
Value of the IRIG second field (0..59)
A
A
i
i
U
U
I
I
n
n
t
t
8
8
m
m
s
s
_
_
h
h
i
i
Higher Byte of the IRIG milli second field