27#ifndef NIDAS_DYNLD_RAF_UHSAS_SERIAL_H
28#define NIDAS_DYNLD_RAF_UHSAS_SERIAL_H
33namespace nidas {
namespace core {
34 class VariableConverter;
37namespace nidas {
namespace dynld {
namespace raf {
60 bool process(
const Sample* samp,std::list<const Sample*>& results);
72 static unsigned const char*
findMarker(
unsigned const char* ip,
unsigned const char* eoi,
73 unsigned char* marker,
int len);
Interface to a data sample.
Definition Sample.h:190
A sensor connected to a serial port.
Definition DSMSerialSensor.h:39
A class for reading the UHSAS probe.
Definition UHSAS_Serial.h:44
std::vector< nidas::core::VariableConverter * > _converters
Definition UHSAS_Serial.h:139
int _nHousekeep
Number of housekeeping channels.
Definition UHSAS_Serial.h:96
bool getSendInitBlock() const
Definition UHSAS_Serial.h:67
void open(int flags)
Open the device connected to the sensor.
Definition UHSAS_Serial.cc:190
void sendInitString()
Definition UHSAS_Serial.cc:294
static const nidas::util::EndianConverter * fromLittle
Definition UHSAS_Serial.h:77
int _dtUsec
sample period in microseconds.
Definition UHSAS_Serial.h:124
~UHSAS_Serial()
Definition UHSAS_Serial.cc:183
void setSendInitBlock(bool val)
Definition UHSAS_Serial.h:62
int _nOutBins
Definition UHSAS_Serial.h:115
UHSAS_Serial()
Definition UHSAS_Serial.cc:171
void init()
Setup whatever is necessary for process method to work.
Definition UHSAS_Serial.cc:205
bool process(const Sample *samp, std::list< const Sample * > &results)
Process a raw sample, which in this case means do a sscanf on the character string contents,...
Definition UHSAS_Serial.cc:336
float _sampleRate
UHSAS sample-rate, currently used for scaling the sum of the bins.
Definition UHSAS_Serial.h:111
bool _sendInitBlock
Definition UHSAS_Serial.h:113
bool _binary
Some UHSAS insturments generate ASCII.
Definition UHSAS_Serial.h:106
unsigned int _largeHistograms
Number of times that the number of bytes between the histogram markers (ffff04 and ffff05) exceeds th...
Definition UHSAS_Serial.h:135
static unsigned const char * findMarker(unsigned const char *ip, unsigned const char *eoi, unsigned char *marker, int len)
Definition UHSAS_Serial.cc:323
float _hkScale[12]
Housekeeping scale factors.
Definition UHSAS_Serial.h:101
unsigned int _nstitch
number of stitch sequences encountered.
Definition UHSAS_Serial.h:129
int _nValidChannels
Number of histogram bins to be read.
Definition UHSAS_Serial.h:91
unsigned int _nDataErrors
Definition UHSAS_Serial.h:119
unsigned int _totalHistograms
Definition UHSAS_Serial.h:137
int _noutValues
Total number of floats in the processed output sample.
Definition UHSAS_Serial.h:82
bool _sumBins
Definition UHSAS_Serial.h:117
Virtual base class declaring methods for converting numeric values between little-endian and big-endi...
Definition EndianConverter.h:304
Sample * getSample(sampleType type, unsigned int len)
A convienence method for getting a sample of an enumerated type from a pool.
Definition Sample.cc:70
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
int len
Definition sing.cc:948