libcyberradio 22.01.24
WbddcComponent.cpp
1/***************************************************************************
2 * \file WbddcComponent.cpp
3 * \brief Defines the WBDDC 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/WbddcComponent.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 int dataPort,
28 int rateIndex,
29 int udpDestination,
30 int vitaEnable,
31 int streamId) :
33 /* const std::string& name */ (boost::format("NDR810-WBDDC%02d") % \
34 index).str(),
35 /* int index */ index,
36 /* ::LibCyberRadio::Driver::RadioHandler* parent */ parent,
37 /* bool debug */ debug,
38 /* bool tunable */ false,
39 /* bool selectableSource */ false,
40 /* bool selectableDataPort */ true,
41 /* bool agc */ false,
42 /* double freqRangeMin */ 0.0,
43 /* double freqRangeMax */ 0.0,
44 /* double freqRes */ 1e6,
45 /* double freqUnits */ 1e6,
46 /* int source */ index,
47 /* int dataPort */ dataPort,
48 /* double frequency */ 0.0,
49 /* int rateIndex */ rateIndex,
50 /* int udpDestination */ udpDestination,
51 /* int vitaEnable */ vitaEnable,
52 /* unsigned int streamId */ streamId)
53 {
55 // Set rate set
56 _rateSet[0] = 51.2e6;
57 _rateSet[1] = 25.6e6;
58 _rateSet[2] = 12.8e6;
59 _rateSet[3] = 102.4e6;
60 _rateSet[4] = 6.4e6;
61 _rateSet[5] = 3.2e6;
62 }
63
67
72
74 {
75 ::LibCyberRadio::Driver::WbddcComponent::operator=(other);
76 if ( this != &other )
77 {
78 }
79 return *this;
80 }
81
82 } /* namespace NDR810 */
83
84 } // namespace Driver
85
86} // namespace LibCyberRadio
87
virtual int debug(const char *format,...)
Outputs debug information.
virtual WbddcComponent & operator=(const WbddcComponent &other)
Assignment operator for WbddcComponent objects.
WbddcComponent(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)
Constructs a WbddcComponent object.
virtual ~WbddcComponent()
Destroys a WbddcComponent 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