nidas  v1.2-1520
Public Attributes | List of all members
nidas::dynld::raf::SPP100_Serial::DMT100_blk Struct Reference

Data packet back from probe (all unsigned little-endian):

starting byte size contents

0 16 2-byte cabin channel (* 8) 16 4 4-byte particles outside depth-of-field 20 4 4-byte particles outside allowed transit time 24 2 2-byte avg. More...

#include <SPP100_Serial.h>

Public Attributes

DMT_UShort cabinChan [8]
 
DMT_ULong rejDOF
 
DMT_ULong rejAvgTrans
 
DMT_UShort AvgTransit
 
DMT_UShort FIFOfull
 
DMT_UShort resetFlag
 
DMT_ULong ADCoverflow
 
DMT_ULong OPCchan [MAX_CHANNELS]
 
DMT_UShort chksum
 

Detailed Description

Data packet back from probe (all unsigned little-endian):

starting byte size contents

0 16 2-byte cabin channel (* 8) 16 4 4-byte particles outside depth-of-field 20 4 4-byte particles outside allowed transit time 24 2 2-byte avg.

transit 26 2 2-byte how many times FIFO was full 28 2 2-byte reset flag (low-order bit is set iff probe CPU has reset and a new setup packet is needed) 30 4 4-byte ADC overflow count 34 4*nchan 4-byte concentration (* nchan) 34 + 4*nchan 2 2-byte checksum (Total data size without checksum 34 + 4*nchan bytes)

The struct below is set up similar to the above, but because of alignment issues (e.g., the 4-byte ADC overflow above starts at byte 30 but in the struct below the ADCoverflow will probably be aligned 32 bytes into the struct), we CANNOT do a single wholesale copy to move the packet data into the struct.

Also, the struct is sized to hold the maximum number of channels, while the actual data packet may contain fewer than the maximum.

Member Data Documentation

DMT_ULong nidas::dynld::raf::SPP100_Serial::DMT100_blk::ADCoverflow
DMT_UShort nidas::dynld::raf::SPP100_Serial::DMT100_blk::AvgTransit
DMT_UShort nidas::dynld::raf::SPP100_Serial::DMT100_blk::cabinChan[8]
DMT_UShort nidas::dynld::raf::SPP100_Serial::DMT100_blk::chksum
DMT_UShort nidas::dynld::raf::SPP100_Serial::DMT100_blk::FIFOfull
DMT_ULong nidas::dynld::raf::SPP100_Serial::DMT100_blk::OPCchan[MAX_CHANNELS]
DMT_ULong nidas::dynld::raf::SPP100_Serial::DMT100_blk::rejAvgTrans
DMT_ULong nidas::dynld::raf::SPP100_Serial::DMT100_blk::rejDOF
DMT_UShort nidas::dynld::raf::SPP100_Serial::DMT100_blk::resetFlag

The documentation for this struct was generated from the following file: