MX Foundation 4
|
MIL 1553 Receive Sampling Structure. More...
#include <mxf_class_mil1553.h>
Data Fields | |
uint64 | timeTag |
uint32 | control |
uint32 | rate |
uint32 | errorCount |
uint32 | dataSize |
uint32 | respTime [2] |
uint16 | data [36] |
This record structure is returned by the sampling service.
uint64 MXF_MIL1553_SAMPREC::timeTag |
Specify the time when the data record has been received by the device. It is an absolute time expressed on the time base set for the device.
uint32 MXF_MIL1553_SAMPREC::control |
This bit field gives information about the received record.
Bit option | Description |
---|---|
MXF_MIL1553_RX_REC_CTRL_MSG_BUS_B | The message was received on bus B, otherwise, the message was received on bus A. |
MXF_MIL1553_RX_REC_CTRL_MSG_OVERLAP | A message was detected on the alternate bus before the message on the current bus was completed. |
MXF_MIL1553_RX_REC_CTRL_MSG_MANCHESTER_ERROR | Manchester error detected. |
MXF_MIL1553_RX_REC_CTRL_MSG_CHECKSUM_ERROR | A message was received with a bad checksum word. (Available on module with 1760 option only). See mxfMsgAttributeUint64Set() function to enable the Checksum error detection. |
MXF_MIL1553_RX_REC_CTRL_MSG_PARITY_ERROR | Parity error detected. |
MXF_MIL1553_RX_REC_CTRL_MSG_EXTRA_BIT_ERROR | Extra bit error detected. |
MXF_MIL1553_RX_REC_CTRL_MSG_STATUS1_TOOFAST_ERROR | RT responded too fast. See KMXF_MIL1553_BM_MIN_RESPONSE_TIME attribute. |
MXF_MIL1553_RX_REC_CTRL_MSG_RT_RT | Indicates RT-RT command. |
MXF_MIL1553_RX_REC_CTRL_MSG_UNEXPECTED_ERROR | This data was unexpected. Examples of unexpected data are: data received without a command or command with an error. |
MXF_MIL1553_RX_REC_CTRL_MSG_STATUS2_TOOFAST_ERROR | The second RT of a RT-RT message responded too fast. See KMXF_MIL1553_BM_MIN_RESPONSE_TIME attribute. |
MXF_MIL1553_RX_REC_CTRL_MSG_STATUS_BADSYNC_ERROR | At least one of the data following a RT TX status has an invalid sync (normally an inverted sync). |
MXF_MIL1553_RX_REC_CTRL_MSG_STATUS1_RCV | Indicates that the status word was received and is included in the record. |
MXF_MIL1553_RX_REC_CTRL_MSG_STATUS2_RCV | Indicates that the second status word of the RT-RT message was received and is included in the record. |
MXF_MIL1553_RX_REC_CTRL_MSG_DATA_RCV | Indicates that data words were received and are included in the record. |
MXF_MIL1553_RX_REC_CTRL_MSG_MODECODE | Indicates Mode Code message. |
MXF_MIL1553_RX_REC_CTRL_MSG_BCST | Indicates Broadcast message. |
MXF_MIL1553_RX_REC_CTRL_MSG_DATA_LENGTH_ERROR | A message was received with a bad number of data words. |
MXF_MIL1553_RX_REC_CTRL_MSG_COMMAND | Indicates that the message has a command (or two if MXF_MIL1553_RX_REC_CTRL_MSG_RT_RT is set). |
MXF_MIL1553_RX_REC_CTRL_MSG_STATUS1_ADDRESS_ERROR | A message was received with a bad RT address in the status word. |
MXF_MIL1553_RX_REC_CTRL_MSG_STATUS2_ADDRESS_ERROR | A message was received with a bad RT address in the second RT-RT status word. |
MXF_MIL1553_RX_REC_CTRL_MSG_STATUS2_DATA_ERROR | The second RT-RT status was received with a data. |
MXF_MIL1553_RX_REC_CTRL_MSG_NO_RESPONSE | Indicates that a RT did not respond to the command. |
uint32 MXF_MIL1553_SAMPREC::rate |
Time between the reception of the last two records expressed on the timebase (microseconds or nanoseconds). The maximum is about 4 seconds in nsec or 4000 seconds in usec.
uint32 MXF_MIL1553_SAMPREC::errorCount |
Total error count. See control field for a list of detected errors. Increment by one even if there is more than one error in the message.
uint32 MXF_MIL1553_SAMPREC::dataSize |
Number of bytes received in data array.
uint32 MXF_MIL1553_SAMPREC::respTime[2] |
Remote terminal response time in microseconds. The second response time is only used when a RT-RT message is received. In this case, it contains the receiver response time. The maximum is about 4 seconds in nsec or 4000 seconds in usec.
uint16 MXF_MIL1553_SAMPREC::data[36] |
Message received.