libcyberradio  22.01.24
NbddcComponent.cpp
1 /***************************************************************************
2  * \file NbddcComponent.cpp
3  * \brief Defines the NBDDC 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/NbddcComponent.h"
12 #include "LibCyberRadio/Driver/RadioHandler.h"
13 #include <boost/format.hpp>
14 
15 
16 namespace LibCyberRadio
17 {
18 
19  namespace Driver
20  {
21 
22  namespace NDR308TS
23  {
24 
27  bool debug,
28  int dataPort,
29  int rateIndex,
30  int udpDestination,
31  int vitaEnable,
32  int streamId,
33  double frequency,
34  int source) :
35  ::LibCyberRadio::Driver::NbddcComponent(
36  /* const std::string& name */ (boost::format("NDR308TS-NBDDC%02d") % \
37  index).str(),
38  /* int index */ index,
39  /* ::LibCyberRadio::Driver::RadioHandler* parent */ parent,
40  /* bool debug */ debug,
41  /* bool nbddcCommandSetsFreq */ true,
42  /* bool nbddcCommandSetsSource */ false,
43  /* bool selectableDataPort */ true,
44  /* double freqRangeMin */ -25.6e6,
45  /* double freqRangeMax */ 25.6e6,
46  /* double freqRes */ 1.0,
47  /* double freqUnits */ 1.0,
48  /* int source */ source,
49  /* int dataPort */ dataPort,
50  /* double frequency */ frequency,
51  /* int rateIndex */ rateIndex,
52  /* int udpDestination */ udpDestination,
53  /* int vitaEnable */ vitaEnable,
54  /* unsigned int streamId */ streamId)
55  {
57  // Set rate set
58  _rateSet[0] = 1.92e6;
59  _rateSet[1] = 960e3;
60  _rateSet[2] = 480e3;
61  _rateSet[3] = 180e3;
62  _rateSet[4] = 60e3;
63  _rateSet[5] = 30e3;
64  _rateSet[6] = 15e3;
65  }
66 
68  {
69  }
70 
72  ::LibCyberRadio::Driver::NbddcComponent(other)
73  {
74  }
75 
77  {
78  ::LibCyberRadio::Driver::NbddcComponent::operator=(other);
79  if ( this != &other )
80  {
81  }
82  return *this;
83  }
84 
85  } /* namespace NDR308TS */
86 
87  } // namespace Driver
88 
89 } // namespace LibCyberRadio
90 
virtual NbddcComponent & operator=(const NbddcComponent &other)
Assignment operator for NbddcComponent objects.
virtual ~NbddcComponent()
Destroys a NbddcComponent object.
Generic radio handler class.
Definition: RadioHandler.h:54
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
Defines functionality for LibCyberRadio applications.
Definition: App.h:23
NBDDC component class for the NDR308-TS.
NbddcComponent(int index=1, ::LibCyberRadio::Driver::RadioHandler *parent=NULL, bool debug=false, int dataPort=1, int rateIndex=0, int udpDestination=0, int vitaEnable=0, int streamId=0, double frequency=0.0, int source=1)
Constructs a NbddcComponent object.