68
Reference Manual AFDX / ARINC 664 Application Interface Library
Section 4 – Function Reference: Transmitter Functions
For Header Type
FDX_TX_FRAME_HEADER_GENERIC
see following description.
T
T
Y
Y
_
_
F
F
D
D
X
X
_
_
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
x
x
_
_
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
typedef struct {
AiUInt8
uc_FrameType;
TY_FDX_TX_FRAME_ATTRIB
x_FrameAttrib;
TY_FDX_TX_INSTR_ATTRIB
x_InstrAttrib;
} TY_FDX_TX_FRAME_HEADER;
Note:
The FdxInitTxFrameHeader function supports a default initialization of this
structure (see this function in the chapter ‘Target Independent
Administration Functions’
A
A
i
i
U
U
I
I
n
n
t
t
8
8
u
u
c
c
_
_
F
F
r
r
a
a
m
m
e
e
T
T
y
y
p
p
e
e
The Type of the frame:
Value:
Description:
FDX_TX_FRAME_STD
Standard Generic Tx Frame
FDX_TX_FRAME_INSTR Instruction
Type
T
T
Y
Y
_
_
F
F
D
D
X
X
_
_
T
T
X
X
_
_
F
F
R
R
A
A
M
M
E
E
_
_
A
A
T
T
T
T
R
R
I
I
B
B
x
x
_
_
F
F
r
r
a
a
m
m
e
e
A
A
t
t
t
t
r
r
i
i
b
b
This structure describes the Frame Attributes in case of
FDX_TX_FRAME_STD
uc_FrameType.
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;
AiUInt8 uc_TxIntEnable
AiUInt32
ul_IntIdent
}
TY_FDX_TX_FRAME_ATTRIB;
A
A
i
i
U
U
I
I
n
n
t
t
1
1
6
6
u
u
w
w
_
_
F
F
r
r
a
a
m
m
e
e
S
S
i
i
z
z
e
e
;
;
Total size of the associated frame in Bytes (incl. CRC). Short and Long Frame Error
Conditions are possible by setting the corresponding values. AFDX compliant values are
64…1518. For Frame length less than 60 no proper frame transmission is guaranteed.
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
I
I
n
n
t
t
e
e
r
r
F
F
r
r
a
a
m
m
e
e
G
G
a
a
p
p
This value defines the interframe gap between the preceding frame and the current
frame with a resolution of 40ns, measured from the end of the last bit fo the preceding
frame to the first preamble bit of the actual frame.
To implement a physical gap between the frames, a minimum interframe gap of 120 ns (
value = 3 ) shall be initialized. The maximum provided interframe gap will be up to
approx. 655us (14 Bits are used for encoding). If the Packet group Wait Time is used,
this field shall be initialized with zero. This Gap is only used if
uc_FrameStartMode
is
set to FDX_TX_START_FRAME_IFG.