libcyberradio  22.01.24
CWToneGenComponent.cpp
1 /***************************************************************************
2  * \file CWToneGenComponent.cpp
3  * \brief Defines the Continuous-wave (CW) tone generator interface
4  * for the NDR651.
5  * \author DA
6  * \author NH
7  * \author MN
8  * \copyright (c) 2017 CyberRadio Solutions, Inc. All rights reserved.
9  *
10  ***************************************************************************/
11 
12 #include "LibCyberRadio/Driver/NDR651/CWToneGenComponent.h"
13 #include "LibCyberRadio/Driver/RadioHandler.h"
14 #include <boost/format.hpp>
15 
16 
17 namespace LibCyberRadio
18 {
19  namespace Driver
20  {
21 
22  namespace NDR651
23  {
25  int index,
27  bool debug,
28  int txIndex,
29  double frequency,
30  double amplitude,
31  double phase,
32  double sweepStart,
33  double sweepStop,
34  double sweepStep,
35  double dwellTime ) :
36  ::LibCyberRadio::Driver::CWToneGenComponent(
37  /* const std::string& name */ ( boost::format("NDR651-TX%02d-CW%02d") % txIndex % index ).str(),
38  /* int index */ index,
39  /* RadioHandler* parent */ parent,
40  /* bool debug */ debug,
41  /* int txIndex */ txIndex,
42  /* double freqRangeMin */ -512e5,
43  /* double freqRangeMax */ 512e5,
44  /* double freqRes */ 1.0,
45  /* double freqUnits */ 1.0,
46  /* double ampRangeMin */ 0.0,
47  /* double ampRangeMax */ 65535.0,
48  /* double ampRes */ 1.0,
49  /* double phaseRangeMin */ -180.0,
50  /* double phaseRangeMax */ 180.0,
51  /* double phaseRes */ 1.0,
52  /* double sweepStartRangeMin */ -512e5,
53  /* double sweepStartRangeMax */ 512e5,
54  /* double sweepStartRes */ 1.0,
55  /* double sweepStopRangeMin */ -512e5,
56  /* double sweepStopRangeMax */ 512e5,
57  /* double sweepStopRes */ 1.0,
58  /* double sweepStepRangeMin */ -512e5,
59  /* double sweepStepRangeMax */ 512e5,
60  /* double sweepStepRes */ 1.0,
61  /* double dwellTimeRangeMin */ 0.0,
62  /* double dwellTimeRangeMax */ (double)0xFFFFFFFF,
63  /* double dwellTimeRes */ 1.0,
64  /* double frequency */ frequency,
65  /* double amplitude */ amplitude,
66  /* double phase */ phase,
67  /* double sweepStart */ sweepStart,
68  /* double sweepStop */ sweepStop,
69  /* double sweepStep */ sweepStep,
70  /* double dwellTime */ dwellTime )
71  {
73  }
74 
76  {
77  }
78 
80  ::LibCyberRadio::Driver::CWToneGenComponent(other)
81  {
82  }
83 
85  {
86  ::LibCyberRadio::Driver::CWToneGenComponent::operator=(other);
87  if ( this != &other )
88  {
89  }
90  return *this;
91  }
92 
93  } // namespace NDR651
94 
95  } // namespace Driver
96 
97 } // namespace LibCyberRadio
Continuous-wave (CW) tone generator component class for the NDR651.
CWToneGenComponent(const std::string &name="CWTONE", int index=0, RadioHandler *parent=NULL, bool debug=false, int txIndex=0, double freqRangeMin=0.0, double freqRangeMax=0.0, double freqRes=0.0, double freqUnits=0.0, double ampRangeMin=0.0, double ampRangeMax=0.0, double ampRes=0.0, double phaseRangeMin=0.0, double phaseRangeMax=0.0, double phaseRes=0.0, double sweepStartRangeMin=0.0, double sweepStartRangeMax=0.0, double sweepStartRes=0.0, double sweepStopRangeMin=0.0, double sweepStopRangeMax=0.0, double sweepStopRes=0.0, double sweepStepRangeMin=0.0, double sweepStepRangeMax=0.0, double sweepStepRes=0.0, double dwellTimeRangeMin=0.0, double dwellTimeRangeMax=0.0, double dwellTimeRes=0.0, double frequency=0.0, double amplitude=0.0, double phase=0.0, double sweepStart=0.0, double sweepStop=0.0, double sweepStep=0.0, double dwellTime=0.0)
Constructs a CWToneGenComponent object.
virtual CWToneGenComponent & operator=(const CWToneGenComponent &other)
Assignment operator for CWToneGenComponent objects.
Generic radio handler class.
Definition: RadioHandler.h:54
CWToneGenComponent(int index=0, RadioHandler *parent=NULL, bool debug=false, int txIndex=0, double frequency=0.0, double amplitude=0.0, double phase=0.0, double sweepStart=0.0, double sweepStop=0.0, double sweepStep=0.0, double dwellTime=0.0)
Constructs a CWToneGenComponent object.
Defines functionality for LibCyberRadio applications.
Definition: App.h:23
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
virtual ~CWToneGenComponent()
Destroys a CWToneGenComponent object.