220
Reference Manual AFDX / ARINC 664 Application Interface Library
Section 4 – Function Reference: Target Independent Administration Functions
4
4
.
.
5
5
.
.
6
6
F
F
d
d
x
x
S
S
t
t
r
r
u
u
c
c
t
t
I
I
r
r
i
i
g
g
2
2
F
F
w
w
I
I
r
r
i
i
g
g
Prototype:
void FdxStructIrig2FwIrig (
const TY_FDX_IRIG_TIME *px_IrigTime,
TY_FDX_FW_IRIG_TIME *px_FwIrigTime);
Driver Command:
none
Purpose:
This function can be used to convert an IRIG time in the structured format to the format used by
the Firmware. This function is helpful since the format of the IRIG time used by the firmware is
different to the format often used in the Application Library.
Input:
TY_FDX_IRIG_TIME *px_IrigTime
IRIG Timecode Library structure
typedef struct {
AiInt32 l_Sign;
// sign (0=absolute, 1=relative positive,
// -1=relative negative
//
only
needed
for
calculation)
//
absolute=Irig
format
(day
1..366)
//
relative=No
Irig
format
(day
0..365)
AiUInt32
ul_Hour;
//
0..23
AiUInt32
ul_Min;
//
0..59
AiUInt32
ul_Second;
//
0..59
AiUInt32
ul_Day;
//
1..366
AiUInt32 ul_MilliSec;
// 0..999
AiUInt32 ul_MicroSec;
// 0..999
AiUInt32 ul_NanoSec;
/* 0..900 in steps of 100 */
AiUInt32 ul_Info;
}
TY_FDX_IRIG_TIME;
The l_sign is not relevant for this function, only for calculation (see below).
Output:
TY_FDX_FW_IRIG_TIME *px_FwIrigTime
IRIG Timecode Firmware format structure
typedef struct {
AiUInt32
ul_TtHigh;
AiUInt32
ul_TtLow;
} TY_FDX_FW_IRIG_TIME;
Format see FdxFwIrig2StructIrig function above.
Return Value
Returns FDX_OK on success or a negative error code on error.
Error Codes: FDX_ERR
Summary of Contents for AFDX / ARINC 664
Page 2: ......