nidas v1.2.3
VCSEL2_Serial.h
Go to the documentation of this file.
1// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
2// vim: set shiftwidth=4 softtabstop=4 expandtab:
3/*
4 ********************************************************************
5 ** NIDAS: NCAR In-situ Data Acquistion Software
6 **
7 ** 2013, Copyright University Corporation for Atmospheric Research
8 **
9 ** This program is free software; you can redistribute it and/or modify
10 ** it under the terms of the GNU General Public License as published by
11 ** the Free Software Foundation; either version 2 of the License, or
12 ** (at your option) any later version.
13 **
14 ** This program is distributed in the hope that it will be useful,
15 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ** GNU General Public License for more details.
18 **
19 ** The LICENSE.txt file accompanying this software contains
20 ** a copy of the GNU General Public License. If it is not found,
21 ** write to the Free Software Foundation, Inc.,
22 ** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 **
24 ********************************************************************
25*/
26
27#ifndef _nidas_dynld_raf_vcsel2_serial_h_
28#define _nidas_dynld_raf_vcsel2_serial_h_
29
32
34
35namespace nidas { namespace dynld { namespace raf {
36
37using namespace nidas::core;
38
43{
44
45public:
48
52 void open(int flags);
53
54 void close();
55
56 int getATXRate() const { return _atxRate; }
57
58 void setATXRate(int val) { _atxRate = val; }
59
60 virtual void
61 derivedDataNotify(const nidas::core:: DerivedDataReader * s);
62
63protected:
69 virtual void sendTemperaturePressure(float atx, float psx);
70
75
76};
77
78}}} // namespace nidas namespace dynld namespace raf
79#endif
Interface of a DerivedDataClient of the DerivedDataReader.
Definition DerivedDataClient.h:37
Support for a sensor that is sending packets on a TCP socket, a UDP socket, a Bluetooth RF Comm socke...
Definition SerialSensor.h:65
VCSEL2 Serial Sensor.
Definition VCSEL2_Serial.h:43
void setATXRate(int val)
Definition VCSEL2_Serial.h:58
void open(int flags)
open the sensor and perform any intialization to the driver.
Definition VCSEL2_Serial.cc:47
VCSEL2_Serial()
Definition VCSEL2_Serial.cc:38
~VCSEL2_Serial()
Definition VCSEL2_Serial.cc:42
virtual void derivedDataNotify(const nidas::core::DerivedDataReader *s)
Method called on a DerivedDataClient by the DerivedDataReader thread when a new packet of derived dat...
Definition VCSEL2_Serial.cc:68
int getATXRate() const
Definition VCSEL2_Serial.h:56
int _atxRate
How often to send ATX to the VCSEL.
Definition VCSEL2_Serial.h:74
void close()
close my associated device.
Definition VCSEL2_Serial.cc:60
virtual void sendTemperaturePressure(float atx, float psx)
Send the ambient temperature up to the VCSEL.
Definition VCSEL2_Serial.cc:81
The essential core classes of nidas.
Definition A2DConverter.h:31
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