libcyberradio 22.01.24
TunerComponent.cpp
1/***************************************************************************
2 * \file TunerComponent.cpp
3 * \brief Defines the tuner interface for the NDR810.
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/NDR810/TunerComponent.h"
12#include "LibCyberRadio/Driver/RadioHandler.h"
13#include <boost/format.hpp>
14
15
16namespace LibCyberRadio
17{
18 namespace Driver
19 {
20
21 namespace NDR810
22 {
23
26 bool debug,
27 double frequency,
28 double attenuation,
29 int filter) :
31 /* const std::string& name */ (boost::format("NDR810-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
54
59
61 {
62 ::LibCyberRadio::Driver::TunerComponent::operator=(other);
63 if ( this != &other )
64 {
65 }
66 return *this;
67 }
68
69 } /* namespace NDR810 */
70
71 } // namespace Driver
72
73} // namespace LibCyberRadio
74
75
76
virtual int debug(const char *format,...)
Outputs debug information.
virtual TunerComponent & operator=(const TunerComponent &other)
Assignment operator for TunerComponent objects.
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.
virtual ~TunerComponent()
Destroys a TunerComponent object.
Generic radio handler class.
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
Provides programming elements for driving NDR810 radios.
Definition DataPort.h:34
Provides programming elements for driving CRS NDR-class radios.
Defines functionality for LibCyberRadio applications.
Definition App.h:24