libcyberradio 22.01.24
NbddcComponent.cpp
1/***************************************************************************
2 * \file NbddcComponent.cpp
3 * \brief Defines the NBDDC interface for the NDR308.
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/NDR308/NbddcComponent.h"
12#include "LibCyberRadio/Driver/RadioHandler.h"
13#include <boost/format.hpp>
14
15
16namespace LibCyberRadio
17{
18
19 namespace Driver
20 {
21
22 namespace NDR308
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) :
36 /* const std::string& name */ (boost::format("NDR308-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.6e6;
59 _rateSet[1] = 800e3;
60 _rateSet[2] = 400e3;
61 _rateSet[3] = 200e3;
62 _rateSet[4] = 100e3;
63 _rateSet[5] = 50e3;
64 _rateSet[6] = 25e3;
65 _rateSet[7] = 12.5e3;
66 }
67
71
76
78 {
79 ::LibCyberRadio::Driver::NbddcComponent::operator=(other);
80 if ( this != &other )
81 {
82 }
83 return *this;
84 }
85
86 } /* namespace NDR308 */
87
88 } // namespace Driver
89
90} // namespace LibCyberRadio
91
virtual int debug(const char *format,...)
Outputs debug information.
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.
virtual ~NbddcComponent()
Destroys a NbddcComponent object.
virtual NbddcComponent & operator=(const NbddcComponent &other)
Assignment operator for NbddcComponent objects.
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
Generic radio handler class.
Provides programming elements for driving NDR308 radios.
Definition DataPort.h:34
Provides programming elements for driving CRS NDR-class radios.
Defines functionality for LibCyberRadio applications.
Definition App.h:24