nidas  v1.2-1520
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 
35 namespace nidas { namespace dynld { namespace raf {
36 
37 using namespace nidas::core;
38 
43 {
44 
45 public:
46  VCSEL2_Serial();
47  ~VCSEL2_Serial();
48 
52  void open(int flags) throw(nidas::util::IOException);
53 
54  void close() throw(nidas::util::IOException);
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  throw();
63 
64 
65 protected:
71  virtual void sendTemperaturePressure(float atx, float psx) throw(nidas::util::IOException);
72 
76  int _atxRate;
77 
78 };
79 
80 }}} // namespace nidas namespace dynld namespace raf
81 #endif
Support for a sensor that is sending packets on a TCP socket, a UDP socket, a Bluetooth RF Comm socke...
Definition: SerialSensor.h:64
void setATXRate(int val)
Definition: VCSEL2_Serial.h:58
int getATXRate() const
Definition: VCSEL2_Serial.h:56
VCSEL2 Serial Sensor.
Definition: VCSEL2_Serial.h:42
int _atxRate
How often to send ATX to the VCSEL.
Definition: VCSEL2_Serial.h:76
Definition: IOException.h:37
This class will read, parse and make available the parameters in the onboard real-time broadcast of d...
Definition: DerivedDataReader.h:44
Interface of a DerivedDataClient of the DerivedDataReader.
Definition: DerivedDataClient.h:37