nidas  v1.2-1520
VCSEL_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  ** 2008, 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_vcsel_serial_h_
28 #define _nidas_dynld_raf_vcsel_serial_h_
29 
32 
34 
35 namespace nidas { namespace dynld { namespace raf {
36 
37 using namespace nidas::core;
38 
44 {
45 
46 public:
47  VCSEL_Serial();
48  ~VCSEL_Serial();
49 
53  void open(int flags) throw(nidas::util::IOException);
54 
55  void close() throw(nidas::util::IOException);
56 
57  int getATXRate() const { return _atxRate; }
58 
59  void setATXRate(int val) { _atxRate = val; }
60 
61  virtual void
62  derivedDataNotify(const nidas::core:: DerivedDataReader * s)
63  throw();
64 
65  bool process(const Sample* samp,std::list<const Sample*>& results)
66  throw();
67 
68 
69 protected:
74  virtual void sendAmbientTemperature(float atx) throw(nidas::util::IOException);
75 
79  int _atxRate;
80 
86 };
87 
88 }}} // namespace nidas namespace dynld namespace raf
89 #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: VCSEL_Serial.h:59
int _hz_counter
25Hz sample index counter.
Definition: VCSEL_Serial.h:85
int _atxRate
How often to send ATX to the VCSEL.
Definition: VCSEL_Serial.h:79
Interface to a data sample.
Definition: Sample.h:189
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
VCSEL Serial Sensor.
Definition: VCSEL_Serial.h:43
int getATXRate() const
Definition: VCSEL_Serial.h:57
Interface of a DerivedDataClient of the DerivedDataReader.
Definition: DerivedDataClient.h:37