libcyberradio  22.01.24
TunerComponent.cpp
1 /***************************************************************************
2  * \file TunerComponent.cpp
3  * \brief Defines the tuner interface for the NDR308-TS.
4  * \author DA
5  * \author NH
6  * \author MN
7  * \copyright (c) 2017 CyberRadio Solutions, Inc. All rights reserved.
8  *
9  ***************************************************************************/
10 
11 #include "LibCyberRadio/Driver/NDR308TS/TunerComponent.h"
12 #include "LibCyberRadio/Driver/RadioHandler.h"
13 #include <boost/format.hpp>
14 
15 
16 namespace LibCyberRadio
17 {
18  namespace Driver
19  {
20 
21  namespace NDR308TS
22  {
23 
26  bool debug,
27  double frequency,
28  double attenuation,
29  int filter) :
30  ::LibCyberRadio::Driver::TunerComponent(
31  /* const std::string& name */ (boost::format("NDR308TS-TUNER%02d") % \
32  index).str(),
33  /* int index */ index,
34  /* ::LibCyberRadio::Driver::RadioHandler* parent */ parent,
35  /* bool debug */ debug,
36  /* double freqRangeMin */ 20e6,
37  /* double freqRangeMax */ 6000e6,
38  /* double freqRes */ 1e6,
39  /* double freqUnits */ 1e6,
40  /* double attRangeMin */ 0.0,
41  /* double attRangeMax */ 46.0,
42  /* double attRes */ 1.0,
43  /* bool agc */ false,
44  /* double frequency */ frequency,
45  /* double attenuation */ attenuation,
46  /* int filter */ filter)
47  {
49  }
50 
52  {
53  }
54 
56  ::LibCyberRadio::Driver::TunerComponent(other)
57  {
58  }
59 
61  {
62  ::LibCyberRadio::Driver::TunerComponent::operator=(other);
63  if ( this != &other )
64  {
65  }
66  return *this;
67  }
68 
69  } /* namespace NDR308TS */
70 
71  } // namespace Driver
72 
73 } // namespace LibCyberRadio
74 
75 
76 
virtual ~TunerComponent()
Destroys a TunerComponent object.
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
Generic radio handler class.
Definition: RadioHandler.h:54
Defines functionality for LibCyberRadio applications.
Definition: App.h:23
TunerComponent(int index=1, ::LibCyberRadio::Driver::RadioHandler *parent=NULL, bool debug=false, double frequency=800e6, double attenuation=0.0, int filter=0)
Constructs a TunerComponent object.
Tuner component class for the NDR308-TS.
virtual TunerComponent & operator=(const TunerComponent &other)
Assignment operator for TunerComponent objects.