MX Foundation 4
|
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] |
This record structure is needed when sending (transmission) and receiving (acquisition) A708 string.
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.
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 |
MXF_A708_DATAREC::dataSize |
Acquisition mode: Number of bytes received in data array.
Transmission Mode: Number of bytes to transmit from data array.
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.
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.
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.