~~ODT~~
===== DISCRETE DATA =====
==== Type 0x28, Discrete Data, Format 0 ====
Reserved for future use.
----
==== Type 0x29, Discrete Data, Format 1 (Discrete Data) ====
Discrete Data, Format 1 packets are
used to record the state of discrete digital signals. In general, the discrete data packet will
contain multiple values from multiple discrete events.
The layout of the CSDW is shown in Figure 6-32. The uRecordState and
uAlignment flags are components of the discrete packet Mode field. See the Chapter 10
standard for further details. The uLength value is the number of Discrete Data message that
follow in the packet.
struct SuDiscreteF1_ChanSpec
{
uint32_t uRecordState : 1; // Record on state/time
uint32_t uAlignment : 1; // Data alignment
uint32_t uReserved1 : 1; //
uint32_t uLength : 5; // Number of bits
uint32_t uReserved2 : 24; //
};
struct SuDiscreteF1
{
uint64_t suIntraPckTime; // Intra-packet time stamp
uint32_t suData; // Data about the event
};