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

#include <SWGXtrxInputSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGXtrxInputSettings:
+ Collaboration diagram for SWGSDRangel::SWGXtrxInputSettings:

Public Member Functions

 SWGXtrxInputSettings ()
 
 SWGXtrxInputSettings (QString *json)
 
virtual ~SWGXtrxInputSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGXtrxInputSettingsfromJson (QString &jsonString) override
 
qint64 getCenterFrequency ()
 
void setCenterFrequency (qint64 center_frequency)
 
qint32 getDevSampleRate ()
 
void setDevSampleRate (qint32 dev_sample_rate)
 
qint32 getLog2HardDecim ()
 
void setLog2HardDecim (qint32 log2_hard_decim)
 
qint32 getDcBlock ()
 
void setDcBlock (qint32 dc_block)
 
qint32 getIqCorrection ()
 
void setIqCorrection (qint32 iq_correction)
 
qint32 getLog2SoftDecim ()
 
void setLog2SoftDecim (qint32 log2_soft_decim)
 
qint32 getLpfBw ()
 
void setLpfBw (qint32 lpf_bw)
 
qint32 getGain ()
 
void setGain (qint32 gain)
 
qint32 getNcoEnable ()
 
void setNcoEnable (qint32 nco_enable)
 
qint32 getNcoFrequency ()
 
void setNcoFrequency (qint32 nco_frequency)
 
qint32 getAntennaPath ()
 
void setAntennaPath (qint32 antenna_path)
 
qint32 getGainMode ()
 
void setGainMode (qint32 gain_mode)
 
qint32 getLnaGain ()
 
void setLnaGain (qint32 lna_gain)
 
qint32 getTiaGain ()
 
void setTiaGain (qint32 tia_gain)
 
qint32 getPgaGain ()
 
void setPgaGain (qint32 pga_gain)
 
qint32 getExtClock ()
 
void setExtClock (qint32 ext_clock)
 
qint32 getExtClockFreq ()
 
void setExtClockFreq (qint32 ext_clock_freq)
 
qint32 getPwrmode ()
 
void setPwrmode (qint32 pwrmode)
 
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

qint64 center_frequency
 
bool m_center_frequency_isSet
 
qint32 dev_sample_rate
 
bool m_dev_sample_rate_isSet
 
qint32 log2_hard_decim
 
bool m_log2_hard_decim_isSet
 
qint32 dc_block
 
bool m_dc_block_isSet
 
qint32 iq_correction
 
bool m_iq_correction_isSet
 
qint32 log2_soft_decim
 
bool m_log2_soft_decim_isSet
 
qint32 lpf_bw
 
bool m_lpf_bw_isSet
 
qint32 gain
 
bool m_gain_isSet
 
qint32 nco_enable
 
bool m_nco_enable_isSet
 
qint32 nco_frequency
 
bool m_nco_frequency_isSet
 
qint32 antenna_path
 
bool m_antenna_path_isSet
 
qint32 gain_mode
 
bool m_gain_mode_isSet
 
qint32 lna_gain
 
bool m_lna_gain_isSet
 
qint32 tia_gain
 
bool m_tia_gain_isSet
 
qint32 pga_gain
 
bool m_pga_gain_isSet
 
qint32 ext_clock
 
bool m_ext_clock_isSet
 
qint32 ext_clock_freq
 
bool m_ext_clock_freq_isSet
 
qint32 pwrmode
 
bool m_pwrmode_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 SWGXtrxInputSettings.h.

Constructor & Destructor Documentation

◆ SWGXtrxInputSettings() [1/2]

SWGSDRangel::SWGXtrxInputSettings::SWGXtrxInputSettings ( )

Definition at line 30 of file SWGXtrxInputSettings.cpp.

References antenna_path, center_frequency, dc_block, dev_sample_rate, ext_clock, ext_clock_freq, file_record_name, gain, gain_mode, iq_correction, lna_gain, log2_hard_decim, log2_soft_decim, lpf_bw, m_antenna_path_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_ext_clock_freq_isSet, m_ext_clock_isSet, m_file_record_name_isSet, m_gain_isSet, m_gain_mode_isSet, m_iq_correction_isSet, m_lna_gain_isSet, m_log2_hard_decim_isSet, m_log2_soft_decim_isSet, m_lpf_bw_isSet, m_nco_enable_isSet, m_nco_frequency_isSet, m_pga_gain_isSet, m_pwrmode_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_tia_gain_isSet, m_use_reverse_api_isSet, nco_enable, nco_frequency, pga_gain, pwrmode, reverse_api_address, reverse_api_device_index, reverse_api_port, tia_gain, and use_reverse_api.

30  {
31  center_frequency = 0L;
33  dev_sample_rate = 0;
35  log2_hard_decim = 0;
37  dc_block = 0;
38  m_dc_block_isSet = false;
39  iq_correction = 0;
40  m_iq_correction_isSet = false;
41  log2_soft_decim = 0;
43  lpf_bw = 0;
44  m_lpf_bw_isSet = false;
45  gain = 0;
46  m_gain_isSet = false;
47  nco_enable = 0;
48  m_nco_enable_isSet = false;
49  nco_frequency = 0;
50  m_nco_frequency_isSet = false;
51  antenna_path = 0;
52  m_antenna_path_isSet = false;
53  gain_mode = 0;
54  m_gain_mode_isSet = false;
55  lna_gain = 0;
56  m_lna_gain_isSet = false;
57  tia_gain = 0;
58  m_tia_gain_isSet = false;
59  pga_gain = 0;
60  m_pga_gain_isSet = false;
61  ext_clock = 0;
62  m_ext_clock_isSet = false;
63  ext_clock_freq = 0;
64  m_ext_clock_freq_isSet = false;
65  pwrmode = 0;
66  m_pwrmode_isSet = false;
67  file_record_name = nullptr;
69  use_reverse_api = 0;
71  reverse_api_address = nullptr;
73  reverse_api_port = 0;
77 }

◆ SWGXtrxInputSettings() [2/2]

SWGSDRangel::SWGXtrxInputSettings::SWGXtrxInputSettings ( QString *  json)

Definition at line 25 of file SWGXtrxInputSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGXtrxInputSettings()

SWGSDRangel::SWGXtrxInputSettings::~SWGXtrxInputSettings ( )
virtual

Definition at line 79 of file SWGXtrxInputSettings.cpp.

References cleanup().

79  {
80  this->cleanup();
81 }
+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGXtrxInputSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 224 of file SWGXtrxInputSettings.cpp.

References asJsonObject().

225 {
226  QJsonObject* obj = this->asJsonObject();
227 
228  QJsonDocument doc(*obj);
229  QByteArray bytes = doc.toJson();
230  delete obj;
231  return QString(bytes);
232 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 235 of file SWGXtrxInputSettings.cpp.

References antenna_path, center_frequency, dc_block, dev_sample_rate, ext_clock, ext_clock_freq, file_record_name, gain, gain_mode, iq_correction, lna_gain, log2_hard_decim, log2_soft_decim, lpf_bw, m_antenna_path_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_ext_clock_freq_isSet, m_ext_clock_isSet, m_gain_isSet, m_gain_mode_isSet, m_iq_correction_isSet, m_lna_gain_isSet, m_log2_hard_decim_isSet, m_log2_soft_decim_isSet, m_lpf_bw_isSet, m_nco_enable_isSet, m_nco_frequency_isSet, m_pga_gain_isSet, m_pwrmode_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_tia_gain_isSet, m_use_reverse_api_isSet, nco_enable, nco_frequency, pga_gain, pwrmode, reverse_api_address, reverse_api_device_index, reverse_api_port, tia_gain, SWGSDRangel::toJsonValue(), and use_reverse_api.

Referenced by asJson().

235  {
236  QJsonObject* obj = new QJsonObject();
238  obj->insert("centerFrequency", QJsonValue(center_frequency));
239  }
241  obj->insert("devSampleRate", QJsonValue(dev_sample_rate));
242  }
244  obj->insert("log2HardDecim", QJsonValue(log2_hard_decim));
245  }
246  if(m_dc_block_isSet){
247  obj->insert("dcBlock", QJsonValue(dc_block));
248  }
250  obj->insert("iqCorrection", QJsonValue(iq_correction));
251  }
253  obj->insert("log2SoftDecim", QJsonValue(log2_soft_decim));
254  }
255  if(m_lpf_bw_isSet){
256  obj->insert("lpfBW", QJsonValue(lpf_bw));
257  }
258  if(m_gain_isSet){
259  obj->insert("gain", QJsonValue(gain));
260  }
261  if(m_nco_enable_isSet){
262  obj->insert("ncoEnable", QJsonValue(nco_enable));
263  }
265  obj->insert("ncoFrequency", QJsonValue(nco_frequency));
266  }
268  obj->insert("antennaPath", QJsonValue(antenna_path));
269  }
270  if(m_gain_mode_isSet){
271  obj->insert("gainMode", QJsonValue(gain_mode));
272  }
273  if(m_lna_gain_isSet){
274  obj->insert("lnaGain", QJsonValue(lna_gain));
275  }
276  if(m_tia_gain_isSet){
277  obj->insert("tiaGain", QJsonValue(tia_gain));
278  }
279  if(m_pga_gain_isSet){
280  obj->insert("pgaGain", QJsonValue(pga_gain));
281  }
282  if(m_ext_clock_isSet){
283  obj->insert("extClock", QJsonValue(ext_clock));
284  }
286  obj->insert("extClockFreq", QJsonValue(ext_clock_freq));
287  }
288  if(m_pwrmode_isSet){
289  obj->insert("pwrmode", QJsonValue(pwrmode));
290  }
291  if(file_record_name != nullptr && *file_record_name != QString("")){
292  toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
293  }
295  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
296  }
297  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
298  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
299  }
301  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
302  }
304  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
305  }
306 
307  return obj;
308 }
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::SWGXtrxInputSettings::cleanup ( )

Definition at line 134 of file SWGXtrxInputSettings.cpp.

References file_record_name, and reverse_api_address.

Referenced by ~SWGXtrxInputSettings().

134  {
135 
136 
137 
138 
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 
149 
150 
151 
152 
153  if(file_record_name != nullptr) {
154  delete file_record_name;
155  }
156 
157  if(reverse_api_address != nullptr) {
158  delete reverse_api_address;
159  }
160 
161 
162 }
+ Here is the caller graph for this function:

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 165 of file SWGXtrxInputSettings.cpp.

References fromJsonObject().

Referenced by SWGXtrxInputSettings().

165  {
166  QByteArray array (json.toStdString().c_str());
167  QJsonDocument doc = QJsonDocument::fromJson(array);
168  QJsonObject jsonObject = doc.object();
169  this->fromJsonObject(jsonObject);
170  return this;
171 }
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::SWGXtrxInputSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 174 of file SWGXtrxInputSettings.cpp.

References antenna_path, center_frequency, dc_block, dev_sample_rate, ext_clock, ext_clock_freq, file_record_name, gain, gain_mode, iq_correction, lna_gain, log2_hard_decim, log2_soft_decim, lpf_bw, nco_enable, nco_frequency, pga_gain, pwrmode, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::setValue(), tia_gain, and use_reverse_api.

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

174  {
175  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint64", "");
176 
177  ::SWGSDRangel::setValue(&dev_sample_rate, pJson["devSampleRate"], "qint32", "");
178 
179  ::SWGSDRangel::setValue(&log2_hard_decim, pJson["log2HardDecim"], "qint32", "");
180 
181  ::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", "");
182 
183  ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
184 
185  ::SWGSDRangel::setValue(&log2_soft_decim, pJson["log2SoftDecim"], "qint32", "");
186 
187  ::SWGSDRangel::setValue(&lpf_bw, pJson["lpfBW"], "qint32", "");
188 
189  ::SWGSDRangel::setValue(&gain, pJson["gain"], "qint32", "");
190 
191  ::SWGSDRangel::setValue(&nco_enable, pJson["ncoEnable"], "qint32", "");
192 
193  ::SWGSDRangel::setValue(&nco_frequency, pJson["ncoFrequency"], "qint32", "");
194 
195  ::SWGSDRangel::setValue(&antenna_path, pJson["antennaPath"], "qint32", "");
196 
197  ::SWGSDRangel::setValue(&gain_mode, pJson["gainMode"], "qint32", "");
198 
199  ::SWGSDRangel::setValue(&lna_gain, pJson["lnaGain"], "qint32", "");
200 
201  ::SWGSDRangel::setValue(&tia_gain, pJson["tiaGain"], "qint32", "");
202 
203  ::SWGSDRangel::setValue(&pga_gain, pJson["pgaGain"], "qint32", "");
204 
205  ::SWGSDRangel::setValue(&ext_clock, pJson["extClock"], "qint32", "");
206 
207  ::SWGSDRangel::setValue(&ext_clock_freq, pJson["extClockFreq"], "qint32", "");
208 
209  ::SWGSDRangel::setValue(&pwrmode, pJson["pwrmode"], "qint32", "");
210 
211  ::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
212 
213  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
214 
215  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
216 
217  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
218 
219  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
220 
221 }
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:

◆ getAntennaPath()

qint32 SWGSDRangel::SWGXtrxInputSettings::getAntennaPath ( )

Definition at line 411 of file SWGXtrxInputSettings.cpp.

References antenna_path.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getCenterFrequency()

qint64 SWGSDRangel::SWGXtrxInputSettings::getCenterFrequency ( )

Definition at line 311 of file SWGXtrxInputSettings.cpp.

References center_frequency.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getDcBlock()

qint32 SWGSDRangel::SWGXtrxInputSettings::getDcBlock ( )

Definition at line 341 of file SWGXtrxInputSettings.cpp.

References dc_block.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getDevSampleRate()

qint32 SWGSDRangel::SWGXtrxInputSettings::getDevSampleRate ( )

Definition at line 321 of file SWGXtrxInputSettings.cpp.

References dev_sample_rate.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getExtClock()

qint32 SWGSDRangel::SWGXtrxInputSettings::getExtClock ( )

Definition at line 461 of file SWGXtrxInputSettings.cpp.

References ext_clock.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getExtClockFreq()

qint32 SWGSDRangel::SWGXtrxInputSettings::getExtClockFreq ( )

Definition at line 471 of file SWGXtrxInputSettings.cpp.

References ext_clock_freq.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getFileRecordName()

QString * SWGSDRangel::SWGXtrxInputSettings::getFileRecordName ( )

Definition at line 491 of file SWGXtrxInputSettings.cpp.

References file_record_name.

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

491  {
492  return file_record_name;
493 }
+ Here is the caller graph for this function:

◆ getGain()

qint32 SWGSDRangel::SWGXtrxInputSettings::getGain ( )

Definition at line 381 of file SWGXtrxInputSettings.cpp.

References gain.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getGainMode()

qint32 SWGSDRangel::SWGXtrxInputSettings::getGainMode ( )

Definition at line 421 of file SWGXtrxInputSettings.cpp.

References gain_mode.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getIqCorrection()

qint32 SWGSDRangel::SWGXtrxInputSettings::getIqCorrection ( )

Definition at line 351 of file SWGXtrxInputSettings.cpp.

References iq_correction.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getLnaGain()

qint32 SWGSDRangel::SWGXtrxInputSettings::getLnaGain ( )

Definition at line 431 of file SWGXtrxInputSettings.cpp.

References lna_gain.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getLog2HardDecim()

qint32 SWGSDRangel::SWGXtrxInputSettings::getLog2HardDecim ( )

Definition at line 331 of file SWGXtrxInputSettings.cpp.

References log2_hard_decim.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getLog2SoftDecim()

qint32 SWGSDRangel::SWGXtrxInputSettings::getLog2SoftDecim ( )

Definition at line 361 of file SWGXtrxInputSettings.cpp.

References log2_soft_decim.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getLpfBw()

qint32 SWGSDRangel::SWGXtrxInputSettings::getLpfBw ( )

Definition at line 371 of file SWGXtrxInputSettings.cpp.

References lpf_bw.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getNcoEnable()

qint32 SWGSDRangel::SWGXtrxInputSettings::getNcoEnable ( )

Definition at line 391 of file SWGXtrxInputSettings.cpp.

References nco_enable.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getNcoFrequency()

qint32 SWGSDRangel::SWGXtrxInputSettings::getNcoFrequency ( )

Definition at line 401 of file SWGXtrxInputSettings.cpp.

References nco_frequency.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getPgaGain()

qint32 SWGSDRangel::SWGXtrxInputSettings::getPgaGain ( )

Definition at line 451 of file SWGXtrxInputSettings.cpp.

References pga_gain.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getPwrmode()

qint32 SWGSDRangel::SWGXtrxInputSettings::getPwrmode ( )

Definition at line 481 of file SWGXtrxInputSettings.cpp.

References pwrmode.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGXtrxInputSettings::getReverseApiAddress ( )

Definition at line 511 of file SWGXtrxInputSettings.cpp.

References reverse_api_address.

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

511  {
512  return reverse_api_address;
513 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGXtrxInputSettings::getReverseApiDeviceIndex ( )

Definition at line 531 of file SWGXtrxInputSettings.cpp.

References reverse_api_device_index.

Referenced by XTRXInput::webapiSettingsPutPatch().

531  {
533 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGXtrxInputSettings::getReverseApiPort ( )

Definition at line 521 of file SWGXtrxInputSettings.cpp.

References reverse_api_port.

Referenced by XTRXInput::webapiSettingsPutPatch().

521  {
522  return reverse_api_port;
523 }
+ Here is the caller graph for this function:

◆ getTiaGain()

qint32 SWGSDRangel::SWGXtrxInputSettings::getTiaGain ( )

Definition at line 441 of file SWGXtrxInputSettings.cpp.

References tia_gain.

Referenced by XTRXInput::webapiSettingsPutPatch().

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

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGXtrxInputSettings::getUseReverseApi ( )

Definition at line 501 of file SWGXtrxInputSettings.cpp.

References use_reverse_api.

Referenced by XTRXInput::webapiSettingsPutPatch().

501  {
502  return use_reverse_api;
503 }
+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGXtrxInputSettings::init ( )

Definition at line 84 of file SWGXtrxInputSettings.cpp.

References antenna_path, center_frequency, dc_block, dev_sample_rate, ext_clock, ext_clock_freq, file_record_name, gain, gain_mode, iq_correction, lna_gain, log2_hard_decim, log2_soft_decim, lpf_bw, m_antenna_path_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_ext_clock_freq_isSet, m_ext_clock_isSet, m_file_record_name_isSet, m_gain_isSet, m_gain_mode_isSet, m_iq_correction_isSet, m_lna_gain_isSet, m_log2_hard_decim_isSet, m_log2_soft_decim_isSet, m_lpf_bw_isSet, m_nco_enable_isSet, m_nco_frequency_isSet, m_pga_gain_isSet, m_pwrmode_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_tia_gain_isSet, m_use_reverse_api_isSet, nco_enable, nco_frequency, pga_gain, pwrmode, reverse_api_address, reverse_api_device_index, reverse_api_port, tia_gain, and use_reverse_api.

Referenced by SWGXtrxInputSettings(), and XTRXInput::webapiSettingsGet().

84  {
85  center_frequency = 0L;
87  dev_sample_rate = 0;
89  log2_hard_decim = 0;
91  dc_block = 0;
92  m_dc_block_isSet = false;
93  iq_correction = 0;
94  m_iq_correction_isSet = false;
95  log2_soft_decim = 0;
97  lpf_bw = 0;
98  m_lpf_bw_isSet = false;
99  gain = 0;
100  m_gain_isSet = false;
101  nco_enable = 0;
102  m_nco_enable_isSet = false;
103  nco_frequency = 0;
104  m_nco_frequency_isSet = false;
105  antenna_path = 0;
106  m_antenna_path_isSet = false;
107  gain_mode = 0;
108  m_gain_mode_isSet = false;
109  lna_gain = 0;
110  m_lna_gain_isSet = false;
111  tia_gain = 0;
112  m_tia_gain_isSet = false;
113  pga_gain = 0;
114  m_pga_gain_isSet = false;
115  ext_clock = 0;
116  m_ext_clock_isSet = false;
117  ext_clock_freq = 0;
118  m_ext_clock_freq_isSet = false;
119  pwrmode = 0;
120  m_pwrmode_isSet = false;
121  file_record_name = new QString("");
122  m_file_record_name_isSet = false;
123  use_reverse_api = 0;
124  m_use_reverse_api_isSet = false;
125  reverse_api_address = new QString("");
127  reverse_api_port = 0;
128  m_reverse_api_port_isSet = false;
131 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGXtrxInputSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 542 of file SWGXtrxInputSettings.cpp.

References file_record_name, m_antenna_path_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_ext_clock_freq_isSet, m_ext_clock_isSet, m_gain_isSet, m_gain_mode_isSet, m_iq_correction_isSet, m_lna_gain_isSet, m_log2_hard_decim_isSet, m_log2_soft_decim_isSet, m_lpf_bw_isSet, m_nco_enable_isSet, m_nco_frequency_isSet, m_pga_gain_isSet, m_pwrmode_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_tia_gain_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().

542  {
543  bool isObjectUpdated = false;
544  do{
545  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
546  if(m_dev_sample_rate_isSet){ isObjectUpdated = true; break;}
547  if(m_log2_hard_decim_isSet){ isObjectUpdated = true; break;}
548  if(m_dc_block_isSet){ isObjectUpdated = true; break;}
549  if(m_iq_correction_isSet){ isObjectUpdated = true; break;}
550  if(m_log2_soft_decim_isSet){ isObjectUpdated = true; break;}
551  if(m_lpf_bw_isSet){ isObjectUpdated = true; break;}
552  if(m_gain_isSet){ isObjectUpdated = true; break;}
553  if(m_nco_enable_isSet){ isObjectUpdated = true; break;}
554  if(m_nco_frequency_isSet){ isObjectUpdated = true; break;}
555  if(m_antenna_path_isSet){ isObjectUpdated = true; break;}
556  if(m_gain_mode_isSet){ isObjectUpdated = true; break;}
557  if(m_lna_gain_isSet){ isObjectUpdated = true; break;}
558  if(m_tia_gain_isSet){ isObjectUpdated = true; break;}
559  if(m_pga_gain_isSet){ isObjectUpdated = true; break;}
560  if(m_ext_clock_isSet){ isObjectUpdated = true; break;}
561  if(m_ext_clock_freq_isSet){ isObjectUpdated = true; break;}
562  if(m_pwrmode_isSet){ isObjectUpdated = true; break;}
563  if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
564  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
565  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
566  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
567  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
568  }while(false);
569  return isObjectUpdated;
570 }
+ Here is the caller graph for this function:

◆ setAntennaPath()

void SWGSDRangel::SWGXtrxInputSettings::setAntennaPath ( qint32  antenna_path)

Definition at line 415 of file SWGXtrxInputSettings.cpp.

References antenna_path, and m_antenna_path_isSet.

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

+ Here is the caller graph for this function:

◆ setCenterFrequency()

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

Definition at line 315 of file SWGXtrxInputSettings.cpp.

References center_frequency, and m_center_frequency_isSet.

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

+ Here is the caller graph for this function:

◆ setDcBlock()

void SWGSDRangel::SWGXtrxInputSettings::setDcBlock ( qint32  dc_block)

Definition at line 345 of file SWGXtrxInputSettings.cpp.

References dc_block, and m_dc_block_isSet.

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

+ Here is the caller graph for this function:

◆ setDevSampleRate()

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

Definition at line 325 of file SWGXtrxInputSettings.cpp.

References dev_sample_rate, and m_dev_sample_rate_isSet.

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

+ Here is the caller graph for this function:

◆ setExtClock()

void SWGSDRangel::SWGXtrxInputSettings::setExtClock ( qint32  ext_clock)

Definition at line 465 of file SWGXtrxInputSettings.cpp.

References ext_clock, and m_ext_clock_isSet.

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

+ Here is the caller graph for this function:

◆ setExtClockFreq()

void SWGSDRangel::SWGXtrxInputSettings::setExtClockFreq ( qint32  ext_clock_freq)

Definition at line 475 of file SWGXtrxInputSettings.cpp.

References ext_clock_freq, and m_ext_clock_freq_isSet.

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

+ Here is the caller graph for this function:

◆ setFileRecordName()

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

Definition at line 495 of file SWGXtrxInputSettings.cpp.

References file_record_name, and m_file_record_name_isSet.

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

+ Here is the caller graph for this function:

◆ setGain()

void SWGSDRangel::SWGXtrxInputSettings::setGain ( qint32  gain)

Definition at line 385 of file SWGXtrxInputSettings.cpp.

References gain, and m_gain_isSet.

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

385  {
386  this->gain = gain;
387  this->m_gain_isSet = true;
388 }
+ Here is the caller graph for this function:

◆ setGainMode()

void SWGSDRangel::SWGXtrxInputSettings::setGainMode ( qint32  gain_mode)

Definition at line 425 of file SWGXtrxInputSettings.cpp.

References gain_mode, and m_gain_mode_isSet.

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

+ Here is the caller graph for this function:

◆ setIqCorrection()

void SWGSDRangel::SWGXtrxInputSettings::setIqCorrection ( qint32  iq_correction)

Definition at line 355 of file SWGXtrxInputSettings.cpp.

References iq_correction, and m_iq_correction_isSet.

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

+ Here is the caller graph for this function:

◆ setLnaGain()

void SWGSDRangel::SWGXtrxInputSettings::setLnaGain ( qint32  lna_gain)

Definition at line 435 of file SWGXtrxInputSettings.cpp.

References lna_gain, and m_lna_gain_isSet.

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

+ Here is the caller graph for this function:

◆ setLog2HardDecim()

void SWGSDRangel::SWGXtrxInputSettings::setLog2HardDecim ( qint32  log2_hard_decim)

Definition at line 335 of file SWGXtrxInputSettings.cpp.

References log2_hard_decim, and m_log2_hard_decim_isSet.

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

+ Here is the caller graph for this function:

◆ setLog2SoftDecim()

void SWGSDRangel::SWGXtrxInputSettings::setLog2SoftDecim ( qint32  log2_soft_decim)

Definition at line 365 of file SWGXtrxInputSettings.cpp.

References log2_soft_decim, and m_log2_soft_decim_isSet.

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

+ Here is the caller graph for this function:

◆ setLpfBw()

void SWGSDRangel::SWGXtrxInputSettings::setLpfBw ( qint32  lpf_bw)

Definition at line 375 of file SWGXtrxInputSettings.cpp.

References lpf_bw, and m_lpf_bw_isSet.

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

+ Here is the caller graph for this function:

◆ setNcoEnable()

void SWGSDRangel::SWGXtrxInputSettings::setNcoEnable ( qint32  nco_enable)

Definition at line 395 of file SWGXtrxInputSettings.cpp.

References m_nco_enable_isSet, and nco_enable.

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

+ Here is the caller graph for this function:

◆ setNcoFrequency()

void SWGSDRangel::SWGXtrxInputSettings::setNcoFrequency ( qint32  nco_frequency)

Definition at line 405 of file SWGXtrxInputSettings.cpp.

References m_nco_frequency_isSet, and nco_frequency.

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

+ Here is the caller graph for this function:

◆ setPgaGain()

void SWGSDRangel::SWGXtrxInputSettings::setPgaGain ( qint32  pga_gain)

Definition at line 455 of file SWGXtrxInputSettings.cpp.

References m_pga_gain_isSet, and pga_gain.

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

+ Here is the caller graph for this function:

◆ setPwrmode()

void SWGSDRangel::SWGXtrxInputSettings::setPwrmode ( qint32  pwrmode)

Definition at line 485 of file SWGXtrxInputSettings.cpp.

References m_pwrmode_isSet, and pwrmode.

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

+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 515 of file SWGXtrxInputSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by XTRXInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

Definition at line 535 of file SWGXtrxInputSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by XTRXInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 525 of file SWGXtrxInputSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by XTRXInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setTiaGain()

void SWGSDRangel::SWGXtrxInputSettings::setTiaGain ( qint32  tia_gain)

Definition at line 445 of file SWGXtrxInputSettings.cpp.

References m_tia_gain_isSet, and tia_gain.

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

+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 505 of file SWGXtrxInputSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by XTRXInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ antenna_path

qint32 SWGSDRangel::SWGXtrxInputSettings::antenna_path
private

◆ center_frequency

qint64 SWGSDRangel::SWGXtrxInputSettings::center_frequency
private

◆ dc_block

qint32 SWGSDRangel::SWGXtrxInputSettings::dc_block
private

◆ dev_sample_rate

qint32 SWGSDRangel::SWGXtrxInputSettings::dev_sample_rate
private

◆ ext_clock

qint32 SWGSDRangel::SWGXtrxInputSettings::ext_clock
private

◆ ext_clock_freq

qint32 SWGSDRangel::SWGXtrxInputSettings::ext_clock_freq
private

◆ file_record_name

QString* SWGSDRangel::SWGXtrxInputSettings::file_record_name
private

◆ gain

qint32 SWGSDRangel::SWGXtrxInputSettings::gain
private

◆ gain_mode

qint32 SWGSDRangel::SWGXtrxInputSettings::gain_mode
private

◆ iq_correction

qint32 SWGSDRangel::SWGXtrxInputSettings::iq_correction
private

◆ lna_gain

qint32 SWGSDRangel::SWGXtrxInputSettings::lna_gain
private

◆ log2_hard_decim

qint32 SWGSDRangel::SWGXtrxInputSettings::log2_hard_decim
private

◆ log2_soft_decim

qint32 SWGSDRangel::SWGXtrxInputSettings::log2_soft_decim
private

◆ lpf_bw

qint32 SWGSDRangel::SWGXtrxInputSettings::lpf_bw
private

◆ m_antenna_path_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_antenna_path_isSet
private

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_center_frequency_isSet
private

◆ m_dc_block_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_dc_block_isSet
private

Definition at line 128 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setDcBlock(), and SWGXtrxInputSettings().

◆ m_dev_sample_rate_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_dev_sample_rate_isSet
private

◆ m_ext_clock_freq_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_ext_clock_freq_isSet
private

◆ m_ext_clock_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_ext_clock_isSet
private

Definition at line 164 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setExtClock(), and SWGXtrxInputSettings().

◆ m_file_record_name_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_file_record_name_isSet
private

Definition at line 173 of file SWGXtrxInputSettings.h.

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

◆ m_gain_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_gain_isSet
private

Definition at line 140 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setGain(), and SWGXtrxInputSettings().

◆ m_gain_mode_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_gain_mode_isSet
private

Definition at line 152 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setGainMode(), and SWGXtrxInputSettings().

◆ m_iq_correction_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_iq_correction_isSet
private

◆ m_lna_gain_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_lna_gain_isSet
private

Definition at line 155 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setLnaGain(), and SWGXtrxInputSettings().

◆ m_log2_hard_decim_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_log2_hard_decim_isSet
private

◆ m_log2_soft_decim_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_log2_soft_decim_isSet
private

◆ m_lpf_bw_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_lpf_bw_isSet
private

Definition at line 137 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setLpfBw(), and SWGXtrxInputSettings().

◆ m_nco_enable_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_nco_enable_isSet
private

Definition at line 143 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setNcoEnable(), and SWGXtrxInputSettings().

◆ m_nco_frequency_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_nco_frequency_isSet
private

◆ m_pga_gain_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_pga_gain_isSet
private

Definition at line 161 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setPgaGain(), and SWGXtrxInputSettings().

◆ m_pwrmode_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_pwrmode_isSet
private

Definition at line 170 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setPwrmode(), and SWGXtrxInputSettings().

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_reverse_api_address_isSet
private

Definition at line 179 of file SWGXtrxInputSettings.h.

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

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_reverse_api_port_isSet
private

◆ m_tia_gain_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_tia_gain_isSet
private

Definition at line 158 of file SWGXtrxInputSettings.h.

Referenced by asJsonObject(), init(), isSet(), setTiaGain(), and SWGXtrxInputSettings().

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGXtrxInputSettings::m_use_reverse_api_isSet
private

◆ nco_enable

qint32 SWGSDRangel::SWGXtrxInputSettings::nco_enable
private

◆ nco_frequency

qint32 SWGSDRangel::SWGXtrxInputSettings::nco_frequency
private

◆ pga_gain

qint32 SWGSDRangel::SWGXtrxInputSettings::pga_gain
private

◆ pwrmode

qint32 SWGSDRangel::SWGXtrxInputSettings::pwrmode
private

◆ reverse_api_address

QString* SWGSDRangel::SWGXtrxInputSettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGXtrxInputSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGXtrxInputSettings::reverse_api_port
private

◆ tia_gain

qint32 SWGSDRangel::SWGXtrxInputSettings::tia_gain
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGXtrxInputSettings::use_reverse_api
private

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