MX Foundation 4
MXF_A708_SAMPREC Struct Reference

ARINC 708 Sampling Record. More...

#include <mxf_class_a708.h>

Data Fields

uint64 timeTag
 
uint32 control
 
uint32 rate
 
uint32 errorCount
 
uint32 dataSize
 
uint16 data [128]
 

Detailed Description

The record structure MXF_A708_SAMPREC is returned by the sampling service with data and status of last record(s) received on the port.

Examples:
ar708_sampling.c, ar708_sampling.cs, ar708_tx_error_injection.c, and ar708_tx_error_injection.cs.

Field Documentation

MXF_A708_SAMPREC::timeTag

Specifies the time when the sampling record has been received by the device. It is an absolute time expressed on the time base set for the device.

Examples:
ar708_sampling.c, ar708_sampling.cs, ar708_tx_error_injection.c, and ar708_tx_error_injection.cs.
MXF_A708_SAMPREC::control

For receive operation, the control field defines the condition under which the related record data was received.

The control bits are defined as follows:

Bit constant Description
MXF_A708_RX_REC_CTRL_TOOLONGWORD_ERROR The received word has more than 2047 bits. The first 2047 bits will be returned
MXF_A708_RX_REC_CTRL_MANCHESTER_ERROR Manchester error detected
MXF_A708_RX_REC_CTRL_BOWSYNC_ERROR Beginning of word sync error
MXF_A708_RX_REC_CTRL_EOWSYNC_ERROR End of word sync error
MXF_A708_RX_REC_CTRL_NOTENOUGHBITS_ERROR The received word has less than 1600 bits
MXF_A708_RX_REC_CTRL_TOOMANYBITS_ERROR The received word has more than 1600 bits
MXF_A708_RX_REC_CTRL_BITSCNT_ERROR Three bit field indicates a number of bits missing in the last received byte (bit count was not multiple of 8 bits). Total bit count received = dataSize * 8 bits - "BitsCnt Error" bits
Examples:
ar708_sampling.c, ar708_sampling.cs, ar708_tx_error_injection.c, and ar708_tx_error_injection.cs.
MXF_A708_SAMPREC::rate

Time between the reception of the last two ARINC 708 words.

MXF_A708_SAMPREC::errorCount

Total error count received. See “Receive control bit” section above for a list of detected errors.

Examples:
ar708_tx_error_injection.c.
MXF_A708_SAMPREC::dataSize

Data size in data[ ] array (in bytes; 200 data bytes normally; 1600 bits).

Examples:
ar708_sampling.c, ar708_sampling.cs, ar708_tx_error_injection.c, and ar708_tx_error_injection.cs.
MXF_A708_SAMPREC::data

ARINC 708 Word. (100 data words normally; 1600 bits).

Note that the label part is automatically inverted by MX Foundation for transmission and reception.

Examples:
ar708_sampling.c, ar708_sampling.cs, ar708_tx_error_injection.c, and ar708_tx_error_injection.cs.
Updated 10/23/2023