nidas
v1.2-1520
|
Data packet back from probe (all unsigned little-endian):
#include <SPP100_Serial.h>
Data packet back from probe (all unsigned little-endian):
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.
DMT_ULong nidas::dynld::raf::SPP100_Serial::DMT100_blk::ADCoverflow |
Referenced by nidas::dynld::raf::SPP100_Serial::process().
DMT_UShort nidas::dynld::raf::SPP100_Serial::DMT100_blk::AvgTransit |
DMT_UShort nidas::dynld::raf::SPP100_Serial::DMT100_blk::cabinChan[8] |
Referenced by nidas::dynld::raf::SPP100_Serial::process().
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] |
Referenced by nidas::dynld::raf::SPP100_Serial::process().
DMT_ULong nidas::dynld::raf::SPP100_Serial::DMT100_blk::rejAvgTrans |
Referenced by nidas::dynld::raf::SPP100_Serial::process().
DMT_ULong nidas::dynld::raf::SPP100_Serial::DMT100_blk::rejDOF |
Referenced by nidas::dynld::raf::SPP100_Serial::process().
DMT_UShort nidas::dynld::raf::SPP100_Serial::DMT100_blk::resetFlag |