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::SWGTestSourceSettings Class Reference

#include <SWGTestSourceSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGTestSourceSettings:
+ Collaboration diagram for SWGSDRangel::SWGTestSourceSettings:

Public Member Functions

 SWGTestSourceSettings ()
 
 SWGTestSourceSettings (QString *json)
 
virtual ~SWGTestSourceSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGTestSourceSettingsfromJson (QString &jsonString) override
 
qint32 getCenterFrequency ()
 
void setCenterFrequency (qint32 center_frequency)
 
qint32 getFrequencyShift ()
 
void setFrequencyShift (qint32 frequency_shift)
 
qint32 getSampleRate ()
 
void setSampleRate (qint32 sample_rate)
 
qint32 getLog2Decim ()
 
void setLog2Decim (qint32 log2_decim)
 
qint32 getFcPos ()
 
void setFcPos (qint32 fc_pos)
 
qint32 getSampleSizeIndex ()
 
void setSampleSizeIndex (qint32 sample_size_index)
 
qint32 getAmplitudeBits ()
 
void setAmplitudeBits (qint32 amplitude_bits)
 
qint32 getAutoCorrOptions ()
 
void setAutoCorrOptions (qint32 auto_corr_options)
 
qint32 getModulation ()
 
void setModulation (qint32 modulation)
 
qint32 getModulationTone ()
 
void setModulationTone (qint32 modulation_tone)
 
qint32 getAmModulation ()
 
void setAmModulation (qint32 am_modulation)
 
qint32 getFmDeviation ()
 
void setFmDeviation (qint32 fm_deviation)
 
float getDcFactor ()
 
void setDcFactor (float dc_factor)
 
float getIFactor ()
 
void setIFactor (float i_factor)
 
float getQFactor ()
 
void setQFactor (float q_factor)
 
float getPhaseImbalance ()
 
void setPhaseImbalance (float phase_imbalance)
 
QString * getFileRecordName ()
 
void setFileRecordName (QString *file_record_name)
 
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

qint32 center_frequency
 
bool m_center_frequency_isSet
 
qint32 frequency_shift
 
bool m_frequency_shift_isSet
 
qint32 sample_rate
 
bool m_sample_rate_isSet
 
qint32 log2_decim
 
bool m_log2_decim_isSet
 
qint32 fc_pos
 
bool m_fc_pos_isSet
 
qint32 sample_size_index
 
bool m_sample_size_index_isSet
 
qint32 amplitude_bits
 
bool m_amplitude_bits_isSet
 
qint32 auto_corr_options
 
bool m_auto_corr_options_isSet
 
qint32 modulation
 
bool m_modulation_isSet
 
qint32 modulation_tone
 
bool m_modulation_tone_isSet
 
qint32 am_modulation
 
bool m_am_modulation_isSet
 
qint32 fm_deviation
 
bool m_fm_deviation_isSet
 
float dc_factor
 
bool m_dc_factor_isSet
 
float i_factor
 
bool m_i_factor_isSet
 
float q_factor
 
bool m_q_factor_isSet
 
float phase_imbalance
 
bool m_phase_imbalance_isSet
 
QString * file_record_name
 
bool m_file_record_name_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 32 of file SWGTestSourceSettings.h.

Constructor & Destructor Documentation

◆ SWGTestSourceSettings() [1/2]

SWGSDRangel::SWGTestSourceSettings::SWGTestSourceSettings ( )

Definition at line 30 of file SWGTestSourceSettings.cpp.

References am_modulation, amplitude_bits, auto_corr_options, center_frequency, dc_factor, fc_pos, file_record_name, fm_deviation, frequency_shift, i_factor, log2_decim, m_am_modulation_isSet, m_amplitude_bits_isSet, m_auto_corr_options_isSet, m_center_frequency_isSet, m_dc_factor_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_fm_deviation_isSet, m_frequency_shift_isSet, m_i_factor_isSet, m_log2_decim_isSet, m_modulation_isSet, m_modulation_tone_isSet, m_phase_imbalance_isSet, m_q_factor_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_sample_rate_isSet, m_sample_size_index_isSet, m_use_reverse_api_isSet, modulation, modulation_tone, phase_imbalance, q_factor, reverse_api_address, reverse_api_device_index, reverse_api_port, sample_rate, sample_size_index, and use_reverse_api.

30  {
31  center_frequency = 0;
33  frequency_shift = 0;
35  sample_rate = 0;
36  m_sample_rate_isSet = false;
37  log2_decim = 0;
38  m_log2_decim_isSet = false;
39  fc_pos = 0;
40  m_fc_pos_isSet = false;
43  amplitude_bits = 0;
44  m_amplitude_bits_isSet = false;
47  modulation = 0;
48  m_modulation_isSet = false;
49  modulation_tone = 0;
51  am_modulation = 0;
52  m_am_modulation_isSet = false;
53  fm_deviation = 0;
54  m_fm_deviation_isSet = false;
55  dc_factor = 0.0f;
56  m_dc_factor_isSet = false;
57  i_factor = 0.0f;
58  m_i_factor_isSet = false;
59  q_factor = 0.0f;
60  m_q_factor_isSet = false;
61  phase_imbalance = 0.0f;
63  file_record_name = nullptr;
65  use_reverse_api = 0;
67  reverse_api_address = nullptr;
69  reverse_api_port = 0;
73 }

◆ SWGTestSourceSettings() [2/2]

SWGSDRangel::SWGTestSourceSettings::SWGTestSourceSettings ( QString *  json)

Definition at line 25 of file SWGTestSourceSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGTestSourceSettings()

SWGSDRangel::SWGTestSourceSettings::~SWGTestSourceSettings ( )
virtual

Definition at line 75 of file SWGTestSourceSettings.cpp.

References cleanup().

75  {
76  this->cleanup();
77 }
+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGTestSourceSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 210 of file SWGTestSourceSettings.cpp.

References asJsonObject().

211 {
212  QJsonObject* obj = this->asJsonObject();
213 
214  QJsonDocument doc(*obj);
215  QByteArray bytes = doc.toJson();
216  delete obj;
217  return QString(bytes);
218 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 221 of file SWGTestSourceSettings.cpp.

References am_modulation, amplitude_bits, auto_corr_options, center_frequency, dc_factor, fc_pos, file_record_name, fm_deviation, frequency_shift, i_factor, log2_decim, m_am_modulation_isSet, m_amplitude_bits_isSet, m_auto_corr_options_isSet, m_center_frequency_isSet, m_dc_factor_isSet, m_fc_pos_isSet, m_fm_deviation_isSet, m_frequency_shift_isSet, m_i_factor_isSet, m_log2_decim_isSet, m_modulation_isSet, m_modulation_tone_isSet, m_phase_imbalance_isSet, m_q_factor_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_sample_rate_isSet, m_sample_size_index_isSet, m_use_reverse_api_isSet, modulation, modulation_tone, phase_imbalance, q_factor, reverse_api_address, reverse_api_device_index, reverse_api_port, sample_rate, sample_size_index, SWGSDRangel::toJsonValue(), and use_reverse_api.

Referenced by asJson().

221  {
222  QJsonObject* obj = new QJsonObject();
224  obj->insert("centerFrequency", QJsonValue(center_frequency));
225  }
227  obj->insert("frequencyShift", QJsonValue(frequency_shift));
228  }
230  obj->insert("sampleRate", QJsonValue(sample_rate));
231  }
232  if(m_log2_decim_isSet){
233  obj->insert("log2Decim", QJsonValue(log2_decim));
234  }
235  if(m_fc_pos_isSet){
236  obj->insert("fcPos", QJsonValue(fc_pos));
237  }
239  obj->insert("sampleSizeIndex", QJsonValue(sample_size_index));
240  }
242  obj->insert("amplitudeBits", QJsonValue(amplitude_bits));
243  }
245  obj->insert("autoCorrOptions", QJsonValue(auto_corr_options));
246  }
247  if(m_modulation_isSet){
248  obj->insert("modulation", QJsonValue(modulation));
249  }
251  obj->insert("modulationTone", QJsonValue(modulation_tone));
252  }
254  obj->insert("amModulation", QJsonValue(am_modulation));
255  }
257  obj->insert("fmDeviation", QJsonValue(fm_deviation));
258  }
259  if(m_dc_factor_isSet){
260  obj->insert("dcFactor", QJsonValue(dc_factor));
261  }
262  if(m_i_factor_isSet){
263  obj->insert("iFactor", QJsonValue(i_factor));
264  }
265  if(m_q_factor_isSet){
266  obj->insert("qFactor", QJsonValue(q_factor));
267  }
269  obj->insert("phaseImbalance", QJsonValue(phase_imbalance));
270  }
271  if(file_record_name != nullptr && *file_record_name != QString("")){
272  toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
273  }
275  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
276  }
277  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
278  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
279  }
281  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
282  }
284  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
285  }
286 
287  return obj;
288 }
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cleanup()

void SWGSDRangel::SWGTestSourceSettings::cleanup ( )

Definition at line 126 of file SWGTestSourceSettings.cpp.

References file_record_name, and reverse_api_address.

Referenced by ~SWGTestSourceSettings().

126  {
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 
142 
143  if(file_record_name != nullptr) {
144  delete file_record_name;
145  }
146 
147  if(reverse_api_address != nullptr) {
148  delete reverse_api_address;
149  }
150 
151 
152 }
+ Here is the caller graph for this function:

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 155 of file SWGTestSourceSettings.cpp.

References fromJsonObject().

Referenced by SWGTestSourceSettings().

155  {
156  QByteArray array (json.toStdString().c_str());
157  QJsonDocument doc = QJsonDocument::fromJson(array);
158  QJsonObject jsonObject = doc.object();
159  this->fromJsonObject(jsonObject);
160  return this;
161 }
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::SWGTestSourceSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 164 of file SWGTestSourceSettings.cpp.

References am_modulation, amplitude_bits, auto_corr_options, center_frequency, dc_factor, fc_pos, file_record_name, fm_deviation, frequency_shift, i_factor, log2_decim, modulation, modulation_tone, phase_imbalance, q_factor, reverse_api_address, reverse_api_device_index, reverse_api_port, sample_rate, sample_size_index, SWGSDRangel::setValue(), and use_reverse_api.

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

164  {
165  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint32", "");
166 
167  ::SWGSDRangel::setValue(&frequency_shift, pJson["frequencyShift"], "qint32", "");
168 
169  ::SWGSDRangel::setValue(&sample_rate, pJson["sampleRate"], "qint32", "");
170 
171  ::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", "");
172 
173  ::SWGSDRangel::setValue(&fc_pos, pJson["fcPos"], "qint32", "");
174 
175  ::SWGSDRangel::setValue(&sample_size_index, pJson["sampleSizeIndex"], "qint32", "");
176 
177  ::SWGSDRangel::setValue(&amplitude_bits, pJson["amplitudeBits"], "qint32", "");
178 
179  ::SWGSDRangel::setValue(&auto_corr_options, pJson["autoCorrOptions"], "qint32", "");
180 
181  ::SWGSDRangel::setValue(&modulation, pJson["modulation"], "qint32", "");
182 
183  ::SWGSDRangel::setValue(&modulation_tone, pJson["modulationTone"], "qint32", "");
184 
185  ::SWGSDRangel::setValue(&am_modulation, pJson["amModulation"], "qint32", "");
186 
187  ::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "qint32", "");
188 
189  ::SWGSDRangel::setValue(&dc_factor, pJson["dcFactor"], "float", "");
190 
191  ::SWGSDRangel::setValue(&i_factor, pJson["iFactor"], "float", "");
192 
193  ::SWGSDRangel::setValue(&q_factor, pJson["qFactor"], "float", "");
194 
195  ::SWGSDRangel::setValue(&phase_imbalance, pJson["phaseImbalance"], "float", "");
196 
197  ::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
198 
199  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
200 
201  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
202 
203  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
204 
205  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
206 
207 }
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:

◆ getAmModulation()

qint32 SWGSDRangel::SWGTestSourceSettings::getAmModulation ( )

Definition at line 391 of file SWGTestSourceSettings.cpp.

References am_modulation.

Referenced by TestSourceInput::webapiSettingsPutPatch().

391  {
392  return am_modulation;
393 }
+ Here is the caller graph for this function:

◆ getAmplitudeBits()

qint32 SWGSDRangel::SWGTestSourceSettings::getAmplitudeBits ( )

Definition at line 351 of file SWGTestSourceSettings.cpp.

References amplitude_bits.

Referenced by TestSourceInput::webapiSettingsPutPatch().

351  {
352  return amplitude_bits;
353 }
+ Here is the caller graph for this function:

◆ getAutoCorrOptions()

qint32 SWGSDRangel::SWGTestSourceSettings::getAutoCorrOptions ( )

Definition at line 361 of file SWGTestSourceSettings.cpp.

References auto_corr_options.

Referenced by TestSourceInput::webapiSettingsPutPatch().

361  {
362  return auto_corr_options;
363 }
+ Here is the caller graph for this function:

◆ getCenterFrequency()

qint32 SWGSDRangel::SWGTestSourceSettings::getCenterFrequency ( )

Definition at line 291 of file SWGTestSourceSettings.cpp.

References center_frequency.

Referenced by TestSourceInput::webapiSettingsPutPatch().

291  {
292  return center_frequency;
293 }
+ Here is the caller graph for this function:

◆ getDcFactor()

float SWGSDRangel::SWGTestSourceSettings::getDcFactor ( )

Definition at line 411 of file SWGTestSourceSettings.cpp.

References dc_factor.

Referenced by TestSourceInput::webapiSettingsPutPatch().

411  {
412  return dc_factor;
413 }
+ Here is the caller graph for this function:

◆ getFcPos()

qint32 SWGSDRangel::SWGTestSourceSettings::getFcPos ( )

Definition at line 331 of file SWGTestSourceSettings.cpp.

References fc_pos.

Referenced by TestSourceInput::webapiSettingsPutPatch().

331  {
332  return fc_pos;
333 }
+ Here is the caller graph for this function:

◆ getFileRecordName()

QString * SWGSDRangel::SWGTestSourceSettings::getFileRecordName ( )

Definition at line 451 of file SWGTestSourceSettings.cpp.

References file_record_name.

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

451  {
452  return file_record_name;
453 }
+ Here is the caller graph for this function:

◆ getFmDeviation()

qint32 SWGSDRangel::SWGTestSourceSettings::getFmDeviation ( )

Definition at line 401 of file SWGTestSourceSettings.cpp.

References fm_deviation.

Referenced by TestSourceInput::webapiSettingsPutPatch().

401  {
402  return fm_deviation;
403 }
+ Here is the caller graph for this function:

◆ getFrequencyShift()

qint32 SWGSDRangel::SWGTestSourceSettings::getFrequencyShift ( )

Definition at line 301 of file SWGTestSourceSettings.cpp.

References frequency_shift.

Referenced by TestSourceInput::webapiSettingsPutPatch().

301  {
302  return frequency_shift;
303 }
+ Here is the caller graph for this function:

◆ getIFactor()

float SWGSDRangel::SWGTestSourceSettings::getIFactor ( )

Definition at line 421 of file SWGTestSourceSettings.cpp.

References i_factor.

Referenced by TestSourceInput::webapiSettingsPutPatch().

421  {
422  return i_factor;
423 }
+ Here is the caller graph for this function:

◆ getLog2Decim()

qint32 SWGSDRangel::SWGTestSourceSettings::getLog2Decim ( )

Definition at line 321 of file SWGTestSourceSettings.cpp.

References log2_decim.

Referenced by TestSourceInput::webapiSettingsPutPatch().

321  {
322  return log2_decim;
323 }
+ Here is the caller graph for this function:

◆ getModulation()

qint32 SWGSDRangel::SWGTestSourceSettings::getModulation ( )

Definition at line 371 of file SWGTestSourceSettings.cpp.

References modulation.

Referenced by TestSourceInput::webapiSettingsPutPatch().

371  {
372  return modulation;
373 }
+ Here is the caller graph for this function:

◆ getModulationTone()

qint32 SWGSDRangel::SWGTestSourceSettings::getModulationTone ( )

Definition at line 381 of file SWGTestSourceSettings.cpp.

References modulation_tone.

Referenced by TestSourceInput::webapiSettingsPutPatch().

381  {
382  return modulation_tone;
383 }
+ Here is the caller graph for this function:

◆ getPhaseImbalance()

float SWGSDRangel::SWGTestSourceSettings::getPhaseImbalance ( )

Definition at line 441 of file SWGTestSourceSettings.cpp.

References phase_imbalance.

Referenced by TestSourceInput::webapiSettingsPutPatch().

441  {
442  return phase_imbalance;
443 }
+ Here is the caller graph for this function:

◆ getQFactor()

float SWGSDRangel::SWGTestSourceSettings::getQFactor ( )

Definition at line 431 of file SWGTestSourceSettings.cpp.

References q_factor.

Referenced by TestSourceInput::webapiSettingsPutPatch().

431  {
432  return q_factor;
433 }
+ Here is the caller graph for this function:

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGTestSourceSettings::getReverseApiAddress ( )

Definition at line 471 of file SWGTestSourceSettings.cpp.

References reverse_api_address.

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

471  {
472  return reverse_api_address;
473 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGTestSourceSettings::getReverseApiDeviceIndex ( )

Definition at line 491 of file SWGTestSourceSettings.cpp.

References reverse_api_device_index.

Referenced by TestSourceInput::webapiSettingsPutPatch().

491  {
493 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGTestSourceSettings::getReverseApiPort ( )

Definition at line 481 of file SWGTestSourceSettings.cpp.

References reverse_api_port.

Referenced by TestSourceInput::webapiSettingsPutPatch().

481  {
482  return reverse_api_port;
483 }
+ Here is the caller graph for this function:

◆ getSampleRate()

qint32 SWGSDRangel::SWGTestSourceSettings::getSampleRate ( )

Definition at line 311 of file SWGTestSourceSettings.cpp.

References sample_rate.

Referenced by TestSourceInput::webapiSettingsPutPatch().

311  {
312  return sample_rate;
313 }
+ Here is the caller graph for this function:

◆ getSampleSizeIndex()

qint32 SWGSDRangel::SWGTestSourceSettings::getSampleSizeIndex ( )

Definition at line 341 of file SWGTestSourceSettings.cpp.

References sample_size_index.

Referenced by TestSourceInput::webapiSettingsPutPatch().

341  {
342  return sample_size_index;
343 }
+ Here is the caller graph for this function:

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGTestSourceSettings::getUseReverseApi ( )

Definition at line 461 of file SWGTestSourceSettings.cpp.

References use_reverse_api.

Referenced by TestSourceInput::webapiSettingsPutPatch().

461  {
462  return use_reverse_api;
463 }
+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGTestSourceSettings::init ( )

Definition at line 80 of file SWGTestSourceSettings.cpp.

References am_modulation, amplitude_bits, auto_corr_options, center_frequency, dc_factor, fc_pos, file_record_name, fm_deviation, frequency_shift, i_factor, log2_decim, m_am_modulation_isSet, m_amplitude_bits_isSet, m_auto_corr_options_isSet, m_center_frequency_isSet, m_dc_factor_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_fm_deviation_isSet, m_frequency_shift_isSet, m_i_factor_isSet, m_log2_decim_isSet, m_modulation_isSet, m_modulation_tone_isSet, m_phase_imbalance_isSet, m_q_factor_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_sample_rate_isSet, m_sample_size_index_isSet, m_use_reverse_api_isSet, modulation, modulation_tone, phase_imbalance, q_factor, reverse_api_address, reverse_api_device_index, reverse_api_port, sample_rate, sample_size_index, and use_reverse_api.

Referenced by SWGTestSourceSettings(), and TestSourceInput::webapiSettingsGet().

80  {
81  center_frequency = 0;
83  frequency_shift = 0;
85  sample_rate = 0;
86  m_sample_rate_isSet = false;
87  log2_decim = 0;
88  m_log2_decim_isSet = false;
89  fc_pos = 0;
90  m_fc_pos_isSet = false;
93  amplitude_bits = 0;
94  m_amplitude_bits_isSet = false;
97  modulation = 0;
98  m_modulation_isSet = false;
99  modulation_tone = 0;
100  m_modulation_tone_isSet = false;
101  am_modulation = 0;
102  m_am_modulation_isSet = false;
103  fm_deviation = 0;
104  m_fm_deviation_isSet = false;
105  dc_factor = 0.0f;
106  m_dc_factor_isSet = false;
107  i_factor = 0.0f;
108  m_i_factor_isSet = false;
109  q_factor = 0.0f;
110  m_q_factor_isSet = false;
111  phase_imbalance = 0.0f;
112  m_phase_imbalance_isSet = false;
113  file_record_name = new QString("");
114  m_file_record_name_isSet = false;
115  use_reverse_api = 0;
116  m_use_reverse_api_isSet = false;
117  reverse_api_address = new QString("");
119  reverse_api_port = 0;
120  m_reverse_api_port_isSet = false;
123 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGTestSourceSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 502 of file SWGTestSourceSettings.cpp.

References file_record_name, m_am_modulation_isSet, m_amplitude_bits_isSet, m_auto_corr_options_isSet, m_center_frequency_isSet, m_dc_factor_isSet, m_fc_pos_isSet, m_fm_deviation_isSet, m_frequency_shift_isSet, m_i_factor_isSet, m_log2_decim_isSet, m_modulation_isSet, m_modulation_tone_isSet, m_phase_imbalance_isSet, m_q_factor_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_sample_rate_isSet, m_sample_size_index_isSet, m_use_reverse_api_isSet, and reverse_api_address.

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

502  {
503  bool isObjectUpdated = false;
504  do{
505  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
506  if(m_frequency_shift_isSet){ isObjectUpdated = true; break;}
507  if(m_sample_rate_isSet){ isObjectUpdated = true; break;}
508  if(m_log2_decim_isSet){ isObjectUpdated = true; break;}
509  if(m_fc_pos_isSet){ isObjectUpdated = true; break;}
510  if(m_sample_size_index_isSet){ isObjectUpdated = true; break;}
511  if(m_amplitude_bits_isSet){ isObjectUpdated = true; break;}
512  if(m_auto_corr_options_isSet){ isObjectUpdated = true; break;}
513  if(m_modulation_isSet){ isObjectUpdated = true; break;}
514  if(m_modulation_tone_isSet){ isObjectUpdated = true; break;}
515  if(m_am_modulation_isSet){ isObjectUpdated = true; break;}
516  if(m_fm_deviation_isSet){ isObjectUpdated = true; break;}
517  if(m_dc_factor_isSet){ isObjectUpdated = true; break;}
518  if(m_i_factor_isSet){ isObjectUpdated = true; break;}
519  if(m_q_factor_isSet){ isObjectUpdated = true; break;}
520  if(m_phase_imbalance_isSet){ isObjectUpdated = true; break;}
521  if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
522  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
523  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
524  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
525  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
526  }while(false);
527  return isObjectUpdated;
528 }
+ Here is the caller graph for this function:

◆ setAmModulation()

void SWGSDRangel::SWGTestSourceSettings::setAmModulation ( qint32  am_modulation)

Definition at line 395 of file SWGTestSourceSettings.cpp.

References am_modulation, and m_am_modulation_isSet.

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

+ Here is the caller graph for this function:

◆ setAmplitudeBits()

void SWGSDRangel::SWGTestSourceSettings::setAmplitudeBits ( qint32  amplitude_bits)

◆ setAutoCorrOptions()

void SWGSDRangel::SWGTestSourceSettings::setAutoCorrOptions ( qint32  auto_corr_options)

◆ setCenterFrequency()

void SWGSDRangel::SWGTestSourceSettings::setCenterFrequency ( qint32  center_frequency)

◆ setDcFactor()

void SWGSDRangel::SWGTestSourceSettings::setDcFactor ( float  dc_factor)

Definition at line 415 of file SWGTestSourceSettings.cpp.

References dc_factor, and m_dc_factor_isSet.

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

+ Here is the caller graph for this function:

◆ setFcPos()

void SWGSDRangel::SWGTestSourceSettings::setFcPos ( qint32  fc_pos)

Definition at line 335 of file SWGTestSourceSettings.cpp.

References fc_pos, and m_fc_pos_isSet.

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

+ Here is the caller graph for this function:

◆ setFileRecordName()

void SWGSDRangel::SWGTestSourceSettings::setFileRecordName ( QString *  file_record_name)

◆ setFmDeviation()

void SWGSDRangel::SWGTestSourceSettings::setFmDeviation ( qint32  fm_deviation)

Definition at line 405 of file SWGTestSourceSettings.cpp.

References fm_deviation, and m_fm_deviation_isSet.

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

+ Here is the caller graph for this function:

◆ setFrequencyShift()

void SWGSDRangel::SWGTestSourceSettings::setFrequencyShift ( qint32  frequency_shift)

◆ setIFactor()

void SWGSDRangel::SWGTestSourceSettings::setIFactor ( float  i_factor)

Definition at line 425 of file SWGTestSourceSettings.cpp.

References i_factor, and m_i_factor_isSet.

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

+ Here is the caller graph for this function:

◆ setLog2Decim()

void SWGSDRangel::SWGTestSourceSettings::setLog2Decim ( qint32  log2_decim)

Definition at line 325 of file SWGTestSourceSettings.cpp.

References log2_decim, and m_log2_decim_isSet.

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

+ Here is the caller graph for this function:

◆ setModulation()

void SWGSDRangel::SWGTestSourceSettings::setModulation ( qint32  modulation)

Definition at line 375 of file SWGTestSourceSettings.cpp.

References m_modulation_isSet, and modulation.

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

+ Here is the caller graph for this function:

◆ setModulationTone()

void SWGSDRangel::SWGTestSourceSettings::setModulationTone ( qint32  modulation_tone)

◆ setPhaseImbalance()

void SWGSDRangel::SWGTestSourceSettings::setPhaseImbalance ( float  phase_imbalance)

◆ setQFactor()

void SWGSDRangel::SWGTestSourceSettings::setQFactor ( float  q_factor)

Definition at line 435 of file SWGTestSourceSettings.cpp.

References m_q_factor_isSet, and q_factor.

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

+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 475 of file SWGTestSourceSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by TestSourceInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

◆ setReverseApiPort()

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

Definition at line 485 of file SWGTestSourceSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by TestSourceInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setSampleRate()

void SWGSDRangel::SWGTestSourceSettings::setSampleRate ( qint32  sample_rate)

Definition at line 315 of file SWGTestSourceSettings.cpp.

References m_sample_rate_isSet, and sample_rate.

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

+ Here is the caller graph for this function:

◆ setSampleSizeIndex()

void SWGSDRangel::SWGTestSourceSettings::setSampleSizeIndex ( qint32  sample_size_index)

◆ setUseReverseApi()

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

Definition at line 465 of file SWGTestSourceSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by TestSourceInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ am_modulation

qint32 SWGSDRangel::SWGTestSourceSettings::am_modulation
private

◆ amplitude_bits

qint32 SWGSDRangel::SWGTestSourceSettings::amplitude_bits
private

◆ auto_corr_options

qint32 SWGSDRangel::SWGTestSourceSettings::auto_corr_options
private

◆ center_frequency

qint32 SWGSDRangel::SWGTestSourceSettings::center_frequency
private

◆ dc_factor

float SWGSDRangel::SWGTestSourceSettings::dc_factor
private

◆ fc_pos

qint32 SWGSDRangel::SWGTestSourceSettings::fc_pos
private

◆ file_record_name

QString* SWGSDRangel::SWGTestSourceSettings::file_record_name
private

◆ fm_deviation

qint32 SWGSDRangel::SWGTestSourceSettings::fm_deviation
private

◆ frequency_shift

qint32 SWGSDRangel::SWGTestSourceSettings::frequency_shift
private

◆ i_factor

float SWGSDRangel::SWGTestSourceSettings::i_factor
private

◆ log2_decim

qint32 SWGSDRangel::SWGTestSourceSettings::log2_decim
private

◆ m_am_modulation_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_am_modulation_isSet
private

◆ m_amplitude_bits_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_amplitude_bits_isSet
private

◆ m_auto_corr_options_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_auto_corr_options_isSet
private

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_center_frequency_isSet
private

◆ m_dc_factor_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_dc_factor_isSet
private

◆ m_fc_pos_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_fc_pos_isSet
private

Definition at line 125 of file SWGTestSourceSettings.h.

Referenced by asJsonObject(), init(), isSet(), setFcPos(), and SWGTestSourceSettings().

◆ m_file_record_name_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_file_record_name_isSet
private

Definition at line 161 of file SWGTestSourceSettings.h.

Referenced by init(), setFileRecordName(), and SWGTestSourceSettings().

◆ m_fm_deviation_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_fm_deviation_isSet
private

◆ m_frequency_shift_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_frequency_shift_isSet
private

◆ m_i_factor_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_i_factor_isSet
private

Definition at line 152 of file SWGTestSourceSettings.h.

Referenced by asJsonObject(), init(), isSet(), setIFactor(), and SWGTestSourceSettings().

◆ m_log2_decim_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_log2_decim_isSet
private

◆ m_modulation_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_modulation_isSet
private

◆ m_modulation_tone_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_modulation_tone_isSet
private

◆ m_phase_imbalance_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_phase_imbalance_isSet
private

◆ m_q_factor_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_q_factor_isSet
private

Definition at line 155 of file SWGTestSourceSettings.h.

Referenced by asJsonObject(), init(), isSet(), setQFactor(), and SWGTestSourceSettings().

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_reverse_api_address_isSet
private

Definition at line 167 of file SWGTestSourceSettings.h.

Referenced by init(), setReverseApiAddress(), and SWGTestSourceSettings().

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_reverse_api_port_isSet
private

◆ m_sample_rate_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_sample_rate_isSet
private

◆ m_sample_size_index_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_sample_size_index_isSet
private

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGTestSourceSettings::m_use_reverse_api_isSet
private

◆ modulation

qint32 SWGSDRangel::SWGTestSourceSettings::modulation
private

◆ modulation_tone

qint32 SWGSDRangel::SWGTestSourceSettings::modulation_tone
private

◆ phase_imbalance

float SWGSDRangel::SWGTestSourceSettings::phase_imbalance
private

◆ q_factor

float SWGSDRangel::SWGTestSourceSettings::q_factor
private

◆ reverse_api_address

QString* SWGSDRangel::SWGTestSourceSettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGTestSourceSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGTestSourceSettings::reverse_api_port
private

◆ sample_rate

qint32 SWGSDRangel::SWGTestSourceSettings::sample_rate
private

◆ sample_size_index

qint32 SWGSDRangel::SWGTestSourceSettings::sample_size_index
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGTestSourceSettings::use_reverse_api
private

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