SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Attributes | List of all members
SWGSDRangel::SWGSoapySDROutputSettings Class Reference

#include <SWGSoapySDROutputSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGSoapySDROutputSettings:
+ Collaboration diagram for SWGSDRangel::SWGSoapySDROutputSettings:

Public Member Functions

 SWGSoapySDROutputSettings ()
 
 SWGSoapySDROutputSettings (QString *json)
 
virtual ~SWGSoapySDROutputSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGSoapySDROutputSettingsfromJson (QString &jsonString) override
 
qint64 getCenterFrequency ()
 
void setCenterFrequency (qint64 center_frequency)
 
qint32 getLOppmTenths ()
 
void setLOppmTenths (qint32 l_oppm_tenths)
 
qint32 getDevSampleRate ()
 
void setDevSampleRate (qint32 dev_sample_rate)
 
qint32 getLog2Interp ()
 
void setLog2Interp (qint32 log2_interp)
 
qint32 getTransverterMode ()
 
void setTransverterMode (qint32 transverter_mode)
 
qint64 getTransverterDeltaFrequency ()
 
void setTransverterDeltaFrequency (qint64 transverter_delta_frequency)
 
QString * getAntenna ()
 
void setAntenna (QString *antenna)
 
qint32 getBandwidth ()
 
void setBandwidth (qint32 bandwidth)
 
QList< SWGArgValue * > * getTunableElements ()
 
void setTunableElements (QList< SWGArgValue *> *tunable_elements)
 
qint32 getGlobalGain ()
 
void setGlobalGain (qint32 global_gain)
 
QList< SWGArgValue * > * getIndividualGains ()
 
void setIndividualGains (QList< SWGArgValue *> *individual_gains)
 
qint32 getAutoGain ()
 
void setAutoGain (qint32 auto_gain)
 
qint32 getAutoDcCorrection ()
 
void setAutoDcCorrection (qint32 auto_dc_correction)
 
qint32 getAutoIqCorrection ()
 
void setAutoIqCorrection (qint32 auto_iq_correction)
 
SWGComplexgetDcCorrection ()
 
void setDcCorrection (SWGComplex *dc_correction)
 
SWGComplexgetIqCorrection ()
 
void setIqCorrection (SWGComplex *iq_correction)
 
QList< SWGArgValue * > * getStreamArgSettings ()
 
void setStreamArgSettings (QList< SWGArgValue *> *stream_arg_settings)
 
QList< SWGArgValue * > * getDeviceArgSettings ()
 
void setDeviceArgSettings (QList< SWGArgValue *> *device_arg_settings)
 
qint32 getUseReverseApi ()
 
void setUseReverseApi (qint32 use_reverse_api)
 
QString * getReverseApiAddress ()
 
void setReverseApiAddress (QString *reverse_api_address)
 
qint32 getReverseApiPort ()
 
void setReverseApiPort (qint32 reverse_api_port)
 
qint32 getReverseApiDeviceIndex ()
 
void setReverseApiDeviceIndex (qint32 reverse_api_device_index)
 
virtual bool isSet () override
 
- Public Member Functions inherited from SWGSDRangel::SWGObject
virtual ~SWGObject ()
 

Private Attributes

qint64 center_frequency
 
bool m_center_frequency_isSet
 
qint32 l_oppm_tenths
 
bool m_l_oppm_tenths_isSet
 
qint32 dev_sample_rate
 
bool m_dev_sample_rate_isSet
 
qint32 log2_interp
 
bool m_log2_interp_isSet
 
qint32 transverter_mode
 
bool m_transverter_mode_isSet
 
qint64 transverter_delta_frequency
 
bool m_transverter_delta_frequency_isSet
 
QString * antenna
 
bool m_antenna_isSet
 
qint32 bandwidth
 
bool m_bandwidth_isSet
 
QList< SWGArgValue * > * tunable_elements
 
bool m_tunable_elements_isSet
 
qint32 global_gain
 
bool m_global_gain_isSet
 
QList< SWGArgValue * > * individual_gains
 
bool m_individual_gains_isSet
 
qint32 auto_gain
 
bool m_auto_gain_isSet
 
qint32 auto_dc_correction
 
bool m_auto_dc_correction_isSet
 
qint32 auto_iq_correction
 
bool m_auto_iq_correction_isSet
 
SWGComplexdc_correction
 
bool m_dc_correction_isSet
 
SWGComplexiq_correction
 
bool m_iq_correction_isSet
 
QList< SWGArgValue * > * stream_arg_settings
 
bool m_stream_arg_settings_isSet
 
QList< SWGArgValue * > * device_arg_settings
 
bool m_device_arg_settings_isSet
 
qint32 use_reverse_api
 
bool m_use_reverse_api_isSet
 
QString * reverse_api_address
 
bool m_reverse_api_address_isSet
 
qint32 reverse_api_port
 
bool m_reverse_api_port_isSet
 
qint32 reverse_api_device_index
 
bool m_reverse_api_device_index_isSet
 

Detailed Description

Definition at line 35 of file SWGSoapySDROutputSettings.h.

Constructor & Destructor Documentation

◆ SWGSoapySDROutputSettings() [1/2]

SWGSDRangel::SWGSoapySDROutputSettings::SWGSoapySDROutputSettings ( )

Definition at line 30 of file SWGSoapySDROutputSettings.cpp.

References antenna, auto_dc_correction, auto_gain, auto_iq_correction, bandwidth, center_frequency, dc_correction, dev_sample_rate, device_arg_settings, global_gain, individual_gains, iq_correction, l_oppm_tenths, log2_interp, m_antenna_isSet, m_auto_dc_correction_isSet, m_auto_gain_isSet, m_auto_iq_correction_isSet, m_bandwidth_isSet, m_center_frequency_isSet, m_dc_correction_isSet, m_dev_sample_rate_isSet, m_device_arg_settings_isSet, m_global_gain_isSet, m_individual_gains_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_interp_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_stream_arg_settings_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_isSet, m_tunable_elements_isSet, m_use_reverse_api_isSet, reverse_api_address, reverse_api_device_index, reverse_api_port, stream_arg_settings, transverter_delta_frequency, transverter_mode, tunable_elements, and use_reverse_api.

30  {
31  center_frequency = 0L;
33  l_oppm_tenths = 0;
34  m_l_oppm_tenths_isSet = false;
35  dev_sample_rate = 0;
37  log2_interp = 0;
38  m_log2_interp_isSet = false;
39  transverter_mode = 0;
43  antenna = nullptr;
44  m_antenna_isSet = false;
45  bandwidth = 0;
46  m_bandwidth_isSet = false;
47  tunable_elements = nullptr;
49  global_gain = 0;
50  m_global_gain_isSet = false;
51  individual_gains = nullptr;
53  auto_gain = 0;
54  m_auto_gain_isSet = false;
59  dc_correction = nullptr;
60  m_dc_correction_isSet = false;
61  iq_correction = nullptr;
62  m_iq_correction_isSet = false;
63  stream_arg_settings = nullptr;
65  device_arg_settings = nullptr;
67  use_reverse_api = 0;
69  reverse_api_address = nullptr;
71  reverse_api_port = 0;
75 }

◆ SWGSoapySDROutputSettings() [2/2]

SWGSDRangel::SWGSoapySDROutputSettings::SWGSoapySDROutputSettings ( QString *  json)

Definition at line 25 of file SWGSoapySDROutputSettings.cpp.

References fromJson(), and init().

25  {
26  init();
27  this->fromJson(*json);
28 }
virtual SWGSoapySDROutputSettings * fromJson(QString &jsonString) override
+ Here is the call graph for this function:

◆ ~SWGSoapySDROutputSettings()

SWGSDRangel::SWGSoapySDROutputSettings::~SWGSoapySDROutputSettings ( )
virtual

Definition at line 77 of file SWGSoapySDROutputSettings.cpp.

References cleanup().

+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGSoapySDROutputSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 245 of file SWGSoapySDROutputSettings.cpp.

References asJsonObject().

246 {
247  QJsonObject* obj = this->asJsonObject();
248 
249  QJsonDocument doc(*obj);
250  QByteArray bytes = doc.toJson();
251  delete obj;
252  return QString(bytes);
253 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

QJsonObject * SWGSDRangel::SWGSoapySDROutputSettings::asJsonObject ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 256 of file SWGSoapySDROutputSettings.cpp.

References antenna, auto_dc_correction, auto_gain, auto_iq_correction, bandwidth, center_frequency, dc_correction, dev_sample_rate, device_arg_settings, global_gain, individual_gains, iq_correction, SWGSDRangel::SWGComplex::isSet(), l_oppm_tenths, log2_interp, m_auto_dc_correction_isSet, m_auto_gain_isSet, m_auto_iq_correction_isSet, m_bandwidth_isSet, m_center_frequency_isSet, m_dev_sample_rate_isSet, m_global_gain_isSet, m_l_oppm_tenths_isSet, m_log2_interp_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_isSet, m_use_reverse_api_isSet, reverse_api_address, reverse_api_device_index, reverse_api_port, stream_arg_settings, SWGSDRangel::toJsonArray(), SWGSDRangel::toJsonValue(), transverter_delta_frequency, transverter_mode, tunable_elements, and use_reverse_api.

Referenced by asJson().

256  {
257  QJsonObject* obj = new QJsonObject();
259  obj->insert("centerFrequency", QJsonValue(center_frequency));
260  }
262  obj->insert("LOppmTenths", QJsonValue(l_oppm_tenths));
263  }
265  obj->insert("devSampleRate", QJsonValue(dev_sample_rate));
266  }
268  obj->insert("log2Interp", QJsonValue(log2_interp));
269  }
271  obj->insert("transverterMode", QJsonValue(transverter_mode));
272  }
274  obj->insert("transverterDeltaFrequency", QJsonValue(transverter_delta_frequency));
275  }
276  if(antenna != nullptr && *antenna != QString("")){
277  toJsonValue(QString("antenna"), antenna, obj, QString("QString"));
278  }
279  if(m_bandwidth_isSet){
280  obj->insert("bandwidth", QJsonValue(bandwidth));
281  }
282  if(tunable_elements->size() > 0){
283  toJsonArray((QList<void*>*)tunable_elements, obj, "tunableElements", "SWGArgValue");
284  }
286  obj->insert("globalGain", QJsonValue(global_gain));
287  }
288  if(individual_gains->size() > 0){
289  toJsonArray((QList<void*>*)individual_gains, obj, "individualGains", "SWGArgValue");
290  }
291  if(m_auto_gain_isSet){
292  obj->insert("autoGain", QJsonValue(auto_gain));
293  }
295  obj->insert("autoDCCorrection", QJsonValue(auto_dc_correction));
296  }
298  obj->insert("autoIQCorrection", QJsonValue(auto_iq_correction));
299  }
300  if((dc_correction != nullptr) && (dc_correction->isSet())){
301  toJsonValue(QString("dcCorrection"), dc_correction, obj, QString("SWGComplex"));
302  }
303  if((iq_correction != nullptr) && (iq_correction->isSet())){
304  toJsonValue(QString("iqCorrection"), iq_correction, obj, QString("SWGComplex"));
305  }
306  if(stream_arg_settings->size() > 0){
307  toJsonArray((QList<void*>*)stream_arg_settings, obj, "streamArgSettings", "SWGArgValue");
308  }
309  if(device_arg_settings->size() > 0){
310  toJsonArray((QList<void*>*)device_arg_settings, obj, "deviceArgSettings", "SWGArgValue");
311  }
313  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
314  }
315  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
316  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
317  }
319  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
320  }
322  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
323  }
324 
325  return obj;
326 }
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
virtual bool isSet() override
Definition: SWGComplex.cpp:118
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
Definition: SWGHelpers.cpp:445
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cleanup()

void SWGSDRangel::SWGSoapySDROutputSettings::cleanup ( )

Definition at line 130 of file SWGSoapySDROutputSettings.cpp.

References antenna, dc_correction, device_arg_settings, individual_gains, iq_correction, reverse_api_address, stream_arg_settings, and tunable_elements.

Referenced by ~SWGSoapySDROutputSettings().

130  {
131 
132 
133 
134 
135 
136 
137  if(antenna != nullptr) {
138  delete antenna;
139  }
140 
141  if(tunable_elements != nullptr) {
142  auto arr = tunable_elements;
143  for(auto o: *arr) {
144  delete o;
145  }
146  delete tunable_elements;
147  }
148 
149  if(individual_gains != nullptr) {
150  auto arr = individual_gains;
151  for(auto o: *arr) {
152  delete o;
153  }
154  delete individual_gains;
155  }
156 
157 
158 
159  if(dc_correction != nullptr) {
160  delete dc_correction;
161  }
162  if(iq_correction != nullptr) {
163  delete iq_correction;
164  }
165  if(stream_arg_settings != nullptr) {
166  auto arr = stream_arg_settings;
167  for(auto o: *arr) {
168  delete o;
169  }
170  delete stream_arg_settings;
171  }
172  if(device_arg_settings != nullptr) {
173  auto arr = device_arg_settings;
174  for(auto o: *arr) {
175  delete o;
176  }
177  delete device_arg_settings;
178  }
179 
180  if(reverse_api_address != nullptr) {
181  delete reverse_api_address;
182  }
183 
184 
185 }
+ Here is the caller graph for this function:

◆ fromJson()

SWGSoapySDROutputSettings * SWGSDRangel::SWGSoapySDROutputSettings::fromJson ( QString &  jsonString)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 188 of file SWGSoapySDROutputSettings.cpp.

References fromJsonObject().

Referenced by SWGSoapySDROutputSettings().

188  {
189  QByteArray array (json.toStdString().c_str());
190  QJsonDocument doc = QJsonDocument::fromJson(array);
191  QJsonObject jsonObject = doc.object();
192  this->fromJsonObject(jsonObject);
193  return this;
194 }
virtual void fromJsonObject(QJsonObject &json) override
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromJsonObject()

void SWGSDRangel::SWGSoapySDROutputSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 197 of file SWGSoapySDROutputSettings.cpp.

References antenna, auto_dc_correction, auto_gain, auto_iq_correction, bandwidth, center_frequency, dc_correction, dev_sample_rate, device_arg_settings, global_gain, individual_gains, iq_correction, l_oppm_tenths, log2_interp, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::setValue(), stream_arg_settings, transverter_delta_frequency, transverter_mode, tunable_elements, and use_reverse_api.

Referenced by fromJson(), and WebAPIRequestMapper::validateDeviceSettings().

197  {
198  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint64", "");
199 
200  ::SWGSDRangel::setValue(&l_oppm_tenths, pJson["LOppmTenths"], "qint32", "");
201 
202  ::SWGSDRangel::setValue(&dev_sample_rate, pJson["devSampleRate"], "qint32", "");
203 
204  ::SWGSDRangel::setValue(&log2_interp, pJson["log2Interp"], "qint32", "");
205 
206  ::SWGSDRangel::setValue(&transverter_mode, pJson["transverterMode"], "qint32", "");
207 
208  ::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", "");
209 
210  ::SWGSDRangel::setValue(&antenna, pJson["antenna"], "QString", "QString");
211 
212  ::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", "");
213 
214 
215  ::SWGSDRangel::setValue(&tunable_elements, pJson["tunableElements"], "QList", "SWGArgValue");
216  ::SWGSDRangel::setValue(&global_gain, pJson["globalGain"], "qint32", "");
217 
218 
219  ::SWGSDRangel::setValue(&individual_gains, pJson["individualGains"], "QList", "SWGArgValue");
220  ::SWGSDRangel::setValue(&auto_gain, pJson["autoGain"], "qint32", "");
221 
222  ::SWGSDRangel::setValue(&auto_dc_correction, pJson["autoDCCorrection"], "qint32", "");
223 
224  ::SWGSDRangel::setValue(&auto_iq_correction, pJson["autoIQCorrection"], "qint32", "");
225 
226  ::SWGSDRangel::setValue(&dc_correction, pJson["dcCorrection"], "SWGComplex", "SWGComplex");
227 
228  ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "SWGComplex", "SWGComplex");
229 
230 
231  ::SWGSDRangel::setValue(&stream_arg_settings, pJson["streamArgSettings"], "QList", "SWGArgValue");
232 
233  ::SWGSDRangel::setValue(&device_arg_settings, pJson["deviceArgSettings"], "QList", "SWGArgValue");
234  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
235 
236  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
237 
238  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
239 
240  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
241 
242 }
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAntenna()

QString * SWGSDRangel::SWGSoapySDROutputSettings::getAntenna ( )

Definition at line 389 of file SWGSoapySDROutputSettings.cpp.

References antenna.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().

389  {
390  return antenna;
391 }
+ Here is the caller graph for this function:

◆ getAutoDcCorrection()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getAutoDcCorrection ( )

Definition at line 449 of file SWGSoapySDROutputSettings.cpp.

References auto_dc_correction.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getAutoGain()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getAutoGain ( )

Definition at line 439 of file SWGSoapySDROutputSettings.cpp.

References auto_gain.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getAutoIqCorrection()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getAutoIqCorrection ( )

Definition at line 459 of file SWGSoapySDROutputSettings.cpp.

References auto_iq_correction.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getBandwidth()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getBandwidth ( )

Definition at line 399 of file SWGSoapySDROutputSettings.cpp.

References bandwidth.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getCenterFrequency()

qint64 SWGSDRangel::SWGSoapySDROutputSettings::getCenterFrequency ( )

Definition at line 329 of file SWGSoapySDROutputSettings.cpp.

References center_frequency.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getDcCorrection()

SWGComplex * SWGSDRangel::SWGSoapySDROutputSettings::getDcCorrection ( )

Definition at line 469 of file SWGSoapySDROutputSettings.cpp.

References dc_correction.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().

469  {
470  return dc_correction;
471 }
+ Here is the caller graph for this function:

◆ getDeviceArgSettings()

QList< SWGArgValue * > * SWGSDRangel::SWGSoapySDROutputSettings::getDeviceArgSettings ( )

Definition at line 499 of file SWGSoapySDROutputSettings.cpp.

References device_arg_settings.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().

499  {
500  return device_arg_settings;
501 }
+ Here is the caller graph for this function:

◆ getDevSampleRate()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getDevSampleRate ( )

Definition at line 349 of file SWGSoapySDROutputSettings.cpp.

References dev_sample_rate.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getGlobalGain()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getGlobalGain ( )

Definition at line 419 of file SWGSoapySDROutputSettings.cpp.

References global_gain.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getIndividualGains()

QList< SWGArgValue * > * SWGSDRangel::SWGSoapySDROutputSettings::getIndividualGains ( )

Definition at line 429 of file SWGSoapySDROutputSettings.cpp.

References individual_gains.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().

429  {
430  return individual_gains;
431 }
+ Here is the caller graph for this function:

◆ getIqCorrection()

SWGComplex * SWGSDRangel::SWGSoapySDROutputSettings::getIqCorrection ( )

Definition at line 479 of file SWGSoapySDROutputSettings.cpp.

References iq_correction.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().

479  {
480  return iq_correction;
481 }
+ Here is the caller graph for this function:

◆ getLog2Interp()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getLog2Interp ( )

Definition at line 359 of file SWGSoapySDROutputSettings.cpp.

References log2_interp.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getLOppmTenths()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getLOppmTenths ( )

Definition at line 339 of file SWGSoapySDROutputSettings.cpp.

References l_oppm_tenths.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGSoapySDROutputSettings::getReverseApiAddress ( )

Definition at line 519 of file SWGSoapySDROutputSettings.cpp.

References reverse_api_address.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getReverseApiDeviceIndex ( )

Definition at line 539 of file SWGSoapySDROutputSettings.cpp.

References reverse_api_device_index.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getReverseApiPort ( )

Definition at line 529 of file SWGSoapySDROutputSettings.cpp.

References reverse_api_port.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getStreamArgSettings()

QList< SWGArgValue * > * SWGSDRangel::SWGSoapySDROutputSettings::getStreamArgSettings ( )

Definition at line 489 of file SWGSoapySDROutputSettings.cpp.

References stream_arg_settings.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().

489  {
490  return stream_arg_settings;
491 }
+ Here is the caller graph for this function:

◆ getTransverterDeltaFrequency()

qint64 SWGSDRangel::SWGSoapySDROutputSettings::getTransverterDeltaFrequency ( )

Definition at line 379 of file SWGSoapySDROutputSettings.cpp.

References transverter_delta_frequency.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getTransverterMode()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getTransverterMode ( )

Definition at line 369 of file SWGSoapySDROutputSettings.cpp.

References transverter_mode.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getTunableElements()

QList< SWGArgValue * > * SWGSDRangel::SWGSoapySDROutputSettings::getTunableElements ( )

Definition at line 409 of file SWGSoapySDROutputSettings.cpp.

References tunable_elements.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().

409  {
410  return tunable_elements;
411 }
+ Here is the caller graph for this function:

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGSoapySDROutputSettings::getUseReverseApi ( )

Definition at line 509 of file SWGSoapySDROutputSettings.cpp.

References use_reverse_api.

Referenced by SoapySDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGSoapySDROutputSettings::init ( )

Definition at line 82 of file SWGSoapySDROutputSettings.cpp.

References antenna, auto_dc_correction, auto_gain, auto_iq_correction, bandwidth, center_frequency, dc_correction, dev_sample_rate, device_arg_settings, global_gain, individual_gains, iq_correction, l_oppm_tenths, log2_interp, m_antenna_isSet, m_auto_dc_correction_isSet, m_auto_gain_isSet, m_auto_iq_correction_isSet, m_bandwidth_isSet, m_center_frequency_isSet, m_dc_correction_isSet, m_dev_sample_rate_isSet, m_device_arg_settings_isSet, m_global_gain_isSet, m_individual_gains_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_interp_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_stream_arg_settings_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_isSet, m_tunable_elements_isSet, m_use_reverse_api_isSet, reverse_api_address, reverse_api_device_index, reverse_api_port, stream_arg_settings, transverter_delta_frequency, transverter_mode, tunable_elements, and use_reverse_api.

Referenced by SWGSoapySDROutputSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsGet().

82  {
83  center_frequency = 0L;
85  l_oppm_tenths = 0;
86  m_l_oppm_tenths_isSet = false;
87  dev_sample_rate = 0;
89  log2_interp = 0;
90  m_log2_interp_isSet = false;
91  transverter_mode = 0;
95  antenna = new QString("");
96  m_antenna_isSet = false;
97  bandwidth = 0;
98  m_bandwidth_isSet = false;
99  tunable_elements = new QList<SWGArgValue*>();
100  m_tunable_elements_isSet = false;
101  global_gain = 0;
102  m_global_gain_isSet = false;
103  individual_gains = new QList<SWGArgValue*>();
104  m_individual_gains_isSet = false;
105  auto_gain = 0;
106  m_auto_gain_isSet = false;
107  auto_dc_correction = 0;
109  auto_iq_correction = 0;
111  dc_correction = new SWGComplex();
112  m_dc_correction_isSet = false;
113  iq_correction = new SWGComplex();
114  m_iq_correction_isSet = false;
115  stream_arg_settings = new QList<SWGArgValue*>();
117  device_arg_settings = new QList<SWGArgValue*>();
119  use_reverse_api = 0;
120  m_use_reverse_api_isSet = false;
121  reverse_api_address = new QString("");
123  reverse_api_port = 0;
124  m_reverse_api_port_isSet = false;
127 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGSoapySDROutputSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 550 of file SWGSoapySDROutputSettings.cpp.

References antenna, dc_correction, device_arg_settings, individual_gains, iq_correction, SWGSDRangel::SWGComplex::isSet(), m_auto_dc_correction_isSet, m_auto_gain_isSet, m_auto_iq_correction_isSet, m_bandwidth_isSet, m_center_frequency_isSet, m_dev_sample_rate_isSet, m_global_gain_isSet, m_l_oppm_tenths_isSet, m_log2_interp_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_isSet, m_use_reverse_api_isSet, reverse_api_address, stream_arg_settings, and tunable_elements.

Referenced by SWGSDRangel::SWGDeviceSettings::asJsonObject(), SWGSDRangel::SWGDeviceSettings_2::asJsonObject(), SWGSDRangel::SWGDeviceSettings_2::isSet(), and SWGSDRangel::SWGDeviceSettings::isSet().

550  {
551  bool isObjectUpdated = false;
552  do{
553  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
554  if(m_l_oppm_tenths_isSet){ isObjectUpdated = true; break;}
555  if(m_dev_sample_rate_isSet){ isObjectUpdated = true; break;}
556  if(m_log2_interp_isSet){ isObjectUpdated = true; break;}
557  if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
558  if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
559  if(antenna != nullptr && *antenna != QString("")){ isObjectUpdated = true; break;}
560  if(m_bandwidth_isSet){ isObjectUpdated = true; break;}
561  if(tunable_elements->size() > 0){ isObjectUpdated = true; break;}
562  if(m_global_gain_isSet){ isObjectUpdated = true; break;}
563  if(individual_gains->size() > 0){ isObjectUpdated = true; break;}
564  if(m_auto_gain_isSet){ isObjectUpdated = true; break;}
565  if(m_auto_dc_correction_isSet){ isObjectUpdated = true; break;}
566  if(m_auto_iq_correction_isSet){ isObjectUpdated = true; break;}
567  if(dc_correction != nullptr && dc_correction->isSet()){ isObjectUpdated = true; break;}
568  if(iq_correction != nullptr && iq_correction->isSet()){ isObjectUpdated = true; break;}
569  if(stream_arg_settings->size() > 0){ isObjectUpdated = true; break;}
570  if(device_arg_settings->size() > 0){ isObjectUpdated = true; break;}
571  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
572  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
573  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
574  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
575  }while(false);
576  return isObjectUpdated;
577 }
virtual bool isSet() override
Definition: SWGComplex.cpp:118
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAntenna()

void SWGSDRangel::SWGSoapySDROutputSettings::setAntenna ( QString *  antenna)

Definition at line 393 of file SWGSoapySDROutputSettings.cpp.

References antenna, and m_antenna_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setAutoDcCorrection()

void SWGSDRangel::SWGSoapySDROutputSettings::setAutoDcCorrection ( qint32  auto_dc_correction)

◆ setAutoGain()

void SWGSDRangel::SWGSoapySDROutputSettings::setAutoGain ( qint32  auto_gain)

Definition at line 443 of file SWGSoapySDROutputSettings.cpp.

References auto_gain, and m_auto_gain_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setAutoIqCorrection()

void SWGSDRangel::SWGSoapySDROutputSettings::setAutoIqCorrection ( qint32  auto_iq_correction)

◆ setBandwidth()

void SWGSDRangel::SWGSoapySDROutputSettings::setBandwidth ( qint32  bandwidth)

Definition at line 403 of file SWGSoapySDROutputSettings.cpp.

References bandwidth, and m_bandwidth_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setCenterFrequency()

void SWGSDRangel::SWGSoapySDROutputSettings::setCenterFrequency ( qint64  center_frequency)

◆ setDcCorrection()

void SWGSDRangel::SWGSoapySDROutputSettings::setDcCorrection ( SWGComplex dc_correction)

◆ setDeviceArgSettings()

void SWGSDRangel::SWGSoapySDROutputSettings::setDeviceArgSettings ( QList< SWGArgValue *> *  device_arg_settings)

Definition at line 503 of file SWGSoapySDROutputSettings.cpp.

References device_arg_settings, and m_device_arg_settings_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setDevSampleRate()

void SWGSDRangel::SWGSoapySDROutputSettings::setDevSampleRate ( qint32  dev_sample_rate)

◆ setGlobalGain()

void SWGSDRangel::SWGSoapySDROutputSettings::setGlobalGain ( qint32  global_gain)

◆ setIndividualGains()

void SWGSDRangel::SWGSoapySDROutputSettings::setIndividualGains ( QList< SWGArgValue *> *  individual_gains)

Definition at line 433 of file SWGSoapySDROutputSettings.cpp.

References individual_gains, and m_individual_gains_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setIqCorrection()

void SWGSDRangel::SWGSoapySDROutputSettings::setIqCorrection ( SWGComplex iq_correction)

◆ setLog2Interp()

void SWGSDRangel::SWGSoapySDROutputSettings::setLog2Interp ( qint32  log2_interp)

◆ setLOppmTenths()

void SWGSDRangel::SWGSoapySDROutputSettings::setLOppmTenths ( qint32  l_oppm_tenths)

◆ setReverseApiAddress()

void SWGSDRangel::SWGSoapySDROutputSettings::setReverseApiAddress ( QString *  reverse_api_address)

◆ setReverseApiDeviceIndex()

void SWGSDRangel::SWGSoapySDROutputSettings::setReverseApiDeviceIndex ( qint32  reverse_api_device_index)

◆ setReverseApiPort()

void SWGSDRangel::SWGSoapySDROutputSettings::setReverseApiPort ( qint32  reverse_api_port)

Definition at line 533 of file SWGSoapySDROutputSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by SoapySDROutput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setStreamArgSettings()

void SWGSDRangel::SWGSoapySDROutputSettings::setStreamArgSettings ( QList< SWGArgValue *> *  stream_arg_settings)

Definition at line 493 of file SWGSoapySDROutputSettings.cpp.

References m_stream_arg_settings_isSet, and stream_arg_settings.

Referenced by SoapySDROutput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setTransverterDeltaFrequency()

void SWGSDRangel::SWGSoapySDROutputSettings::setTransverterDeltaFrequency ( qint64  transverter_delta_frequency)

◆ setTransverterMode()

void SWGSDRangel::SWGSoapySDROutputSettings::setTransverterMode ( qint32  transverter_mode)

◆ setTunableElements()

void SWGSDRangel::SWGSoapySDROutputSettings::setTunableElements ( QList< SWGArgValue *> *  tunable_elements)

Definition at line 413 of file SWGSoapySDROutputSettings.cpp.

References m_tunable_elements_isSet, and tunable_elements.

Referenced by SoapySDROutput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setUseReverseApi()

void SWGSDRangel::SWGSoapySDROutputSettings::setUseReverseApi ( qint32  use_reverse_api)

Definition at line 513 of file SWGSoapySDROutputSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by SoapySDROutput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ antenna

QString* SWGSDRangel::SWGSoapySDROutputSettings::antenna
private

◆ auto_dc_correction

qint32 SWGSDRangel::SWGSoapySDROutputSettings::auto_dc_correction
private

◆ auto_gain

qint32 SWGSDRangel::SWGSoapySDROutputSettings::auto_gain
private

◆ auto_iq_correction

qint32 SWGSDRangel::SWGSoapySDROutputSettings::auto_iq_correction
private

◆ bandwidth

qint32 SWGSDRangel::SWGSoapySDROutputSettings::bandwidth
private

◆ center_frequency

qint64 SWGSDRangel::SWGSoapySDROutputSettings::center_frequency
private

◆ dc_correction

SWGComplex* SWGSDRangel::SWGSoapySDROutputSettings::dc_correction
private

◆ dev_sample_rate

qint32 SWGSDRangel::SWGSoapySDROutputSettings::dev_sample_rate
private

◆ device_arg_settings

QList<SWGArgValue*>* SWGSDRangel::SWGSoapySDROutputSettings::device_arg_settings
private

◆ global_gain

qint32 SWGSDRangel::SWGSoapySDROutputSettings::global_gain
private

◆ individual_gains

QList<SWGArgValue*>* SWGSDRangel::SWGSoapySDROutputSettings::individual_gains
private

◆ iq_correction

SWGComplex* SWGSDRangel::SWGSoapySDROutputSettings::iq_correction
private

◆ l_oppm_tenths

qint32 SWGSDRangel::SWGSoapySDROutputSettings::l_oppm_tenths
private

◆ log2_interp

qint32 SWGSDRangel::SWGSoapySDROutputSettings::log2_interp
private

◆ m_antenna_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_antenna_isSet
private

Definition at line 137 of file SWGSoapySDROutputSettings.h.

Referenced by init(), setAntenna(), and SWGSoapySDROutputSettings().

◆ m_auto_dc_correction_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_auto_dc_correction_isSet
private

◆ m_auto_gain_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_auto_gain_isSet
private

◆ m_auto_iq_correction_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_auto_iq_correction_isSet
private

◆ m_bandwidth_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_bandwidth_isSet
private

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_center_frequency_isSet
private

◆ m_dc_correction_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_dc_correction_isSet
private

Definition at line 161 of file SWGSoapySDROutputSettings.h.

Referenced by init(), setDcCorrection(), and SWGSoapySDROutputSettings().

◆ m_dev_sample_rate_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_dev_sample_rate_isSet
private

◆ m_device_arg_settings_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_device_arg_settings_isSet
private

◆ m_global_gain_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_global_gain_isSet
private

◆ m_individual_gains_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_individual_gains_isSet
private

◆ m_iq_correction_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_iq_correction_isSet
private

Definition at line 164 of file SWGSoapySDROutputSettings.h.

Referenced by init(), setIqCorrection(), and SWGSoapySDROutputSettings().

◆ m_l_oppm_tenths_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_l_oppm_tenths_isSet
private

◆ m_log2_interp_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_log2_interp_isSet
private

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_reverse_api_address_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_reverse_api_port_isSet
private

◆ m_stream_arg_settings_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_stream_arg_settings_isSet
private

◆ m_transverter_delta_frequency_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_transverter_delta_frequency_isSet
private

◆ m_transverter_mode_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_transverter_mode_isSet
private

◆ m_tunable_elements_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_tunable_elements_isSet
private

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGSoapySDROutputSettings::m_use_reverse_api_isSet
private

◆ reverse_api_address

QString* SWGSDRangel::SWGSoapySDROutputSettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGSoapySDROutputSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGSoapySDROutputSettings::reverse_api_port
private

◆ stream_arg_settings

QList<SWGArgValue*>* SWGSDRangel::SWGSoapySDROutputSettings::stream_arg_settings
private

◆ transverter_delta_frequency

qint64 SWGSDRangel::SWGSoapySDROutputSettings::transverter_delta_frequency
private

◆ transverter_mode

qint32 SWGSDRangel::SWGSoapySDROutputSettings::transverter_mode
private

◆ tunable_elements

QList<SWGArgValue*>* SWGSDRangel::SWGSoapySDROutputSettings::tunable_elements
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGSoapySDROutputSettings::use_reverse_api
private

The documentation for this class was generated from the following files: