MX Foundation 4
MXF_DISCRETE_SAMPREC Struct Reference

Discrete Receive Sampling record. More...

#include <mxf_class_discrete.h>

Data Fields

uint64 timeTag
 
uint32 control
 
uint32 rate
 
uint32 errorCount
 
uint32 reserved
 
uint32 data
 
uint32 edge
 

Detailed Description

This record structure is returned by the sampling service.

Field Documentation

uint64 MXF_DISCRETE_SAMPREC::timeTag

Specify the time when the sampling 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_DISCRETE_MODULE_RX_TIMETAG_ENABLE attribute.

uint32 MXF_DISCRETE_SAMPREC::control

Not used.

uint32 MXF_DISCRETE_SAMPREC::rate

Time between the reception of the last two records expressed in the resolution of the process time base (usec or nsec). The maximum is about 1 sec; 4000000 in nsec or 4000 seconds in usec. If time tag is disabled, the rate will always be set to 0.

uint32 MXF_DISCRETE_SAMPREC::errorCount

Not used.

uint32 MXF_DISCRETE_SAMPREC::reserved

Reserved for future use.

uint32 MXF_DISCRETE_SAMPREC::data

Discrete data.

uint32 MXF_DISCRETE_SAMPREC::edge

Discrete edge capture word. Bit set to one in this field means that the corresponding discrete line changed state. The first record after the activation of the receive operation will have this field set to 0 to give the initial state of the discrete lines.

Updated 10/23/2023