MX Foundation 4
MXF_A708_DATAREC Struct Reference

ARINC 708 Transmit / Receive Record Structure. More...

#include <mxf_class_a708.h>

Data Fields

uint64 timeTag
 
uint32 control
 
uint32 dataSize
 
uint32 repeatCount
 
uint32 manchesterBitErr
 
uint16 data [128]
 

Detailed Description

Field Documentation

MXF_A708_DATAREC::timeTag

Acquisition mode: Specifies the time when the data record has been received by the device. It is an absolute time expressed on the timebase set for the device. The time tag may also be disabled with the KMXF_A708_MODULE_RX_TIMETAG_ENABLE attribute.
Transmission Mode: For aperiodic transmit operation, the time tag allows the application to specify the time at which the data is to be transmitted. Depending on the usage the time tag can be optional.

Examples:
ar708.c, ar708.cs, ar708_aperiodic.c, ar708_aperiodic.cs, ar708_buffer_threshold.c, ar708_buffer_threshold.cs, ar708_event_handler.c, ar708_event_handler.cs, ar708_periodic.c, ar708_periodic.cs, ar708_sampling.c, ar708_sampling.cs, ar708_trigger.c, ar708_trigger.cs, ar708_tx_error_injection.c, and ar708_tx_error_injection.cs.
MXF_A708_DATAREC::control

Acquisition mode: 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 3-bit field indicating the 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



Transmission Mode: For transmission, the control field allows the user to inject transmit error or to generate a discrete pulse on transmit.

A control of zero instructs the transmit process to send the data using the current transmitter settings.

The control bits are defined as follows:

Bit constant Description
MXF_A708_TX_REC_CTRL_MANCHESTERBIT_ERROR Inject a Manchester error in the specified bit number of the word (see manchesterBitErr field)
MXF_A708_TX_REC_CTRL_BOW_ERROR Inhibit the beginning of word sync
MXF_A708_TX_REC_CTRL_EOW_ERROR Inhibit the end of word sync
MXF_A708_TX_REC_CTRL_BITSCNT_ERROR 3-bit field indicating the number of bits missing in the last transmit byte. Total bit count to transmit = dataSize * 8 bits - "BitsCnt Error" bits
Examples:
ar708.c, ar708.cs, ar708_aperiodic.c, ar708_aperiodic.cs, ar708_buffer_threshold.c, ar708_buffer_threshold.cs, ar708_event_handler.c, ar708_event_handler.cs, ar708_periodic.c, ar708_periodic.cs, ar708_sampling.c, ar708_sampling.cs, ar708_trigger.c, ar708_trigger.cs, ar708_tx_error_injection.c, and ar708_tx_error_injection.cs.
MXF_A708_DATAREC::dataSize
MXF_A708_DATAREC::repeatCount

Acquisition mode: Not used.

Transmission Mode: Number of times to repeat the transmission of the record. Must be set to one.

Examples:
ar708.c, ar708_aperiodic.c, ar708_aperiodic.cs, ar708_buffer_threshold.c, ar708_buffer_threshold.cs, ar708_event_handler.c, ar708_periodic.c, ar708_periodic.cs, ar708_sampling.c, ar708_trigger.c, ar708_trigger.cs, and ar708_tx_error_injection.c.
MXF_A708_DATAREC::manchesterBitErr

Acquisition mode: Reserved for future use.

Transmission Mode: Indicates the word bit number where to inject the Manchester error. This field is only used when MXF_A708_TX_REC_CTRL_MANCHESTERBIT_ERROR bit is set in the control word.

Examples:
ar708.c, ar708_aperiodic.c, ar708_aperiodic.cs, ar708_buffer_threshold.c, ar708_buffer_threshold.cs, ar708_event_handler.c, ar708_periodic.c, ar708_periodic.cs, ar708_sampling.c, ar708_trigger.c, ar708_trigger.cs, and ar708_tx_error_injection.c.
MXF_A708_DATAREC::data

Acquisition mode: Data received.

Transmission Mode: Data to transmit.

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

Examples:
ar708.c, ar708.cs, ar708_aperiodic.c, ar708_aperiodic.cs, ar708_buffer_threshold.c, ar708_buffer_threshold.cs, ar708_event_handler.c, ar708_event_handler.cs, ar708_periodic.c, ar708_periodic.cs, ar708_sampling.c, ar708_sampling.cs, ar708_trigger.c, ar708_trigger.cs, ar708_tx_error_injection.c, and ar708_tx_error_injection.cs.
Updated 10/23/2023