Reference Manual AFDX / ARINC 664 Application Interface Library
217
Section 4 – Function Reference: Target Independent Administration Functions
4
4
.
.
5
5
.
.
4
4
F
F
d
d
x
x
I
I
n
n
i
i
t
t
T
T
x
x
F
F
r
r
a
a
m
m
e
e
H
H
e
e
a
a
d
d
e
e
r
r
Prototype:
AiReturn FdxInitTxFrameHeader (TY_FDX_TX_FRAME_HEADER *px_TxFrameHeader)
Driver Command
none
Purpose:
This function initializes a Transmit Frame Header Structure for Standard Frame (No Instruction
Type). This structure is used for defining a Generic Transmit Queue entry with the
FdxCmdTxQueueWrite
function.
Input:
TY_FDX_TX_FRAME_HEADER
*px_TxFrameHeader
typedef struct {
AiUInt8
uc_FrameType;
TY_FDX_TX_FRAME_ATTRIB
x_FrameAttrib;
TY_FDX_TX_INSTR_ATTRIB
x_InstrAttrib;
}
TY_FDX_TX_FRAME_HEADER;
typedef struct {
AiUInt16 uw_FrameSize;
AiUInt32 ul_InterFrameGap;
AiUInt32 ul_PacketGroupWaitTime;
AiUInt8 uc_PayloadBufferMode;
AiUInt8 uc_PayloadGenerationMode;
AiUInt32 ul_BufferQueueHandle;
AiUInt8 uc_ExternalStrobe;
AiUInt8 uc_PreambleCount;
AiUInt32 ul_Skew;
AiUInt8 uc_NetSelect;
AiUInt8 uc_FrameStartMode;
AiUInt32 ul_PhysErrorInjection;
AiUInt16 uw_SequenceNumberInit;
AiUInt16 uw_SequenceNumberOffset;
}
TY_FDX_TX_FRAME_ATTRIB;
Pointer to structure, which holds the Transmit Frame Header Information. See
FdxCmdTxQueueWrite
function. This structure is initialized as follows:
x_FrameAttrib.uc_FrameType = FDX_TX_FRAME_STD;
x_FrameAttrib.uc_NetSelect = FDX_TX_FRAME_BOTH;
x_FrameAttrib.uc_ExternalStrobe = FDX_DIS;
x_FrameAttrib.uc_FrameStartMode = FDX_TX_FRAME_START_IFG;
x_FrameAttrib.uc_PayloadBufferMode = FDX_TX_FRAME_PBM_STD;
x_FrameAttrib.uc_PayloadGenerationMode = FDX_TX_FRAME_PGM_USER;
x_FrameAttrib.uc_PreambleCount = FDX_TX_FRAME_PRE_DEF;
x_FrameAttrib.ul_BufferQueueHandle = 0;
x_FrameAttrib.ul_InterFrameGap = 25; //
(1us)
x_FrameAttrib.ul_PacketGroupWaitTime = 1000;
//
(1ms)
x_FrameAttrib.ul_PhysErrorInjection = FDX_TX_FRAME_ERR_OFF;
x_FrameAttrib.ul_Skew = 0;
x_FrameAttrib.uw_FrameSize = 0;
x_FrameAttrib.uw_SequenceNumberInit = FDX_TX_FRAME_SEQ_INIT_AUTO;
x_FrameAttrib.uw_SequenceNumberOffset = FDX_TX_FRAME_SEQ_OFFS_AUTO;