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

#include <SWGAirspySettings.h>

+ Inheritance diagram for SWGSDRangel::SWGAirspySettings:
+ Collaboration diagram for SWGSDRangel::SWGAirspySettings:

Public Member Functions

 SWGAirspySettings ()
 
 SWGAirspySettings (QString *json)
 
virtual ~SWGAirspySettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGAirspySettingsfromJson (QString &jsonString) override
 
qint64 getCenterFrequency ()
 
void setCenterFrequency (qint64 center_frequency)
 
qint32 getLOppmTenths ()
 
void setLOppmTenths (qint32 l_oppm_tenths)
 
qint32 getDevSampleRateIndex ()
 
void setDevSampleRateIndex (qint32 dev_sample_rate_index)
 
qint32 getLnaGain ()
 
void setLnaGain (qint32 lna_gain)
 
qint32 getMixerGain ()
 
void setMixerGain (qint32 mixer_gain)
 
qint32 getVgaGain ()
 
void setVgaGain (qint32 vga_gain)
 
qint32 getLnaAgc ()
 
void setLnaAgc (qint32 lna_agc)
 
qint32 getMixerAgc ()
 
void setMixerAgc (qint32 mixer_agc)
 
qint32 getLog2Decim ()
 
void setLog2Decim (qint32 log2_decim)
 
qint32 getFcPos ()
 
void setFcPos (qint32 fc_pos)
 
qint32 getBiasT ()
 
void setBiasT (qint32 bias_t)
 
qint32 getDcBlock ()
 
void setDcBlock (qint32 dc_block)
 
qint32 getIqCorrection ()
 
void setIqCorrection (qint32 iq_correction)
 
qint32 getTransverterMode ()
 
void setTransverterMode (qint32 transverter_mode)
 
qint64 getTransverterDeltaFrequency ()
 
void setTransverterDeltaFrequency (qint64 transverter_delta_frequency)
 
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 l_oppm_tenths
 
bool m_l_oppm_tenths_isSet
 
qint32 dev_sample_rate_index
 
bool m_dev_sample_rate_index_isSet
 
qint32 lna_gain
 
bool m_lna_gain_isSet
 
qint32 mixer_gain
 
bool m_mixer_gain_isSet
 
qint32 vga_gain
 
bool m_vga_gain_isSet
 
qint32 lna_agc
 
bool m_lna_agc_isSet
 
qint32 mixer_agc
 
bool m_mixer_agc_isSet
 
qint32 log2_decim
 
bool m_log2_decim_isSet
 
qint32 fc_pos
 
bool m_fc_pos_isSet
 
qint32 bias_t
 
bool m_bias_t_isSet
 
qint32 dc_block
 
bool m_dc_block_isSet
 
qint32 iq_correction
 
bool m_iq_correction_isSet
 
qint32 transverter_mode
 
bool m_transverter_mode_isSet
 
qint64 transverter_delta_frequency
 
bool m_transverter_delta_frequency_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 SWGAirspySettings.h.

Constructor & Destructor Documentation

◆ SWGAirspySettings() [1/2]

SWGSDRangel::SWGAirspySettings::SWGAirspySettings ( )

Definition at line 30 of file SWGAirspySettings.cpp.

References bias_t, center_frequency, dc_block, dev_sample_rate_index, fc_pos, file_record_name, iq_correction, l_oppm_tenths, lna_agc, lna_gain, log2_decim, m_bias_t_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_lna_agc_isSet, m_lna_gain_isSet, m_log2_decim_isSet, m_mixer_agc_isSet, m_mixer_gain_isSet, m_reverse_api_address_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, m_vga_gain_isSet, mixer_agc, mixer_gain, reverse_api_address, reverse_api_device_index, reverse_api_port, transverter_delta_frequency, transverter_mode, use_reverse_api, and vga_gain.

30  {
31  center_frequency = 0L;
33  l_oppm_tenths = 0;
34  m_l_oppm_tenths_isSet = false;
37  lna_gain = 0;
38  m_lna_gain_isSet = false;
39  mixer_gain = 0;
40  m_mixer_gain_isSet = false;
41  vga_gain = 0;
42  m_vga_gain_isSet = false;
43  lna_agc = 0;
44  m_lna_agc_isSet = false;
45  mixer_agc = 0;
46  m_mixer_agc_isSet = false;
47  log2_decim = 0;
48  m_log2_decim_isSet = false;
49  fc_pos = 0;
50  m_fc_pos_isSet = false;
51  bias_t = 0;
52  m_bias_t_isSet = false;
53  dc_block = 0;
54  m_dc_block_isSet = false;
55  iq_correction = 0;
56  m_iq_correction_isSet = false;
57  transverter_mode = 0;
61  file_record_name = nullptr;
63  use_reverse_api = 0;
65  reverse_api_address = nullptr;
67  reverse_api_port = 0;
71 }

◆ SWGAirspySettings() [2/2]

SWGSDRangel::SWGAirspySettings::SWGAirspySettings ( QString *  json)

Definition at line 25 of file SWGAirspySettings.cpp.

References fromJson(), and init().

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

◆ ~SWGAirspySettings()

SWGSDRangel::SWGAirspySettings::~SWGAirspySettings ( )
virtual

Definition at line 73 of file SWGAirspySettings.cpp.

References cleanup().

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

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGAirspySettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 203 of file SWGAirspySettings.cpp.

References asJsonObject().

204 {
205  QJsonObject* obj = this->asJsonObject();
206 
207  QJsonDocument doc(*obj);
208  QByteArray bytes = doc.toJson();
209  delete obj;
210  return QString(bytes);
211 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 214 of file SWGAirspySettings.cpp.

References bias_t, center_frequency, dc_block, dev_sample_rate_index, fc_pos, file_record_name, iq_correction, l_oppm_tenths, lna_agc, lna_gain, log2_decim, m_bias_t_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_fc_pos_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_lna_agc_isSet, m_lna_gain_isSet, m_log2_decim_isSet, m_mixer_agc_isSet, m_mixer_gain_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, m_vga_gain_isSet, mixer_agc, mixer_gain, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::toJsonValue(), transverter_delta_frequency, transverter_mode, use_reverse_api, and vga_gain.

Referenced by asJson().

214  {
215  QJsonObject* obj = new QJsonObject();
217  obj->insert("centerFrequency", QJsonValue(center_frequency));
218  }
220  obj->insert("LOppmTenths", QJsonValue(l_oppm_tenths));
221  }
223  obj->insert("devSampleRateIndex", QJsonValue(dev_sample_rate_index));
224  }
225  if(m_lna_gain_isSet){
226  obj->insert("lnaGain", QJsonValue(lna_gain));
227  }
228  if(m_mixer_gain_isSet){
229  obj->insert("mixerGain", QJsonValue(mixer_gain));
230  }
231  if(m_vga_gain_isSet){
232  obj->insert("vgaGain", QJsonValue(vga_gain));
233  }
234  if(m_lna_agc_isSet){
235  obj->insert("lnaAGC", QJsonValue(lna_agc));
236  }
237  if(m_mixer_agc_isSet){
238  obj->insert("mixerAGC", QJsonValue(mixer_agc));
239  }
240  if(m_log2_decim_isSet){
241  obj->insert("log2Decim", QJsonValue(log2_decim));
242  }
243  if(m_fc_pos_isSet){
244  obj->insert("fcPos", QJsonValue(fc_pos));
245  }
246  if(m_bias_t_isSet){
247  obj->insert("biasT", QJsonValue(bias_t));
248  }
249  if(m_dc_block_isSet){
250  obj->insert("dcBlock", QJsonValue(dc_block));
251  }
253  obj->insert("iqCorrection", QJsonValue(iq_correction));
254  }
256  obj->insert("transverterMode", QJsonValue(transverter_mode));
257  }
259  obj->insert("transverterDeltaFrequency", QJsonValue(transverter_delta_frequency));
260  }
261  if(file_record_name != nullptr && *file_record_name != QString("")){
262  toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
263  }
265  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
266  }
267  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
268  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
269  }
271  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
272  }
274  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
275  }
276 
277  return obj;
278 }
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::SWGAirspySettings::cleanup ( )

Definition at line 122 of file SWGAirspySettings.cpp.

References file_record_name, and reverse_api_address.

Referenced by ~SWGAirspySettings().

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

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 150 of file SWGAirspySettings.cpp.

References fromJsonObject().

Referenced by SWGAirspySettings().

150  {
151  QByteArray array (json.toStdString().c_str());
152  QJsonDocument doc = QJsonDocument::fromJson(array);
153  QJsonObject jsonObject = doc.object();
154  this->fromJsonObject(jsonObject);
155  return this;
156 }
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::SWGAirspySettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 159 of file SWGAirspySettings.cpp.

References bias_t, center_frequency, dc_block, dev_sample_rate_index, fc_pos, file_record_name, iq_correction, l_oppm_tenths, lna_agc, lna_gain, log2_decim, mixer_agc, mixer_gain, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::setValue(), transverter_delta_frequency, transverter_mode, use_reverse_api, and vga_gain.

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

159  {
160  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint64", "");
161 
162  ::SWGSDRangel::setValue(&l_oppm_tenths, pJson["LOppmTenths"], "qint32", "");
163 
164  ::SWGSDRangel::setValue(&dev_sample_rate_index, pJson["devSampleRateIndex"], "qint32", "");
165 
166  ::SWGSDRangel::setValue(&lna_gain, pJson["lnaGain"], "qint32", "");
167 
168  ::SWGSDRangel::setValue(&mixer_gain, pJson["mixerGain"], "qint32", "");
169 
170  ::SWGSDRangel::setValue(&vga_gain, pJson["vgaGain"], "qint32", "");
171 
172  ::SWGSDRangel::setValue(&lna_agc, pJson["lnaAGC"], "qint32", "");
173 
174  ::SWGSDRangel::setValue(&mixer_agc, pJson["mixerAGC"], "qint32", "");
175 
176  ::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", "");
177 
178  ::SWGSDRangel::setValue(&fc_pos, pJson["fcPos"], "qint32", "");
179 
180  ::SWGSDRangel::setValue(&bias_t, pJson["biasT"], "qint32", "");
181 
182  ::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
185 
186  ::SWGSDRangel::setValue(&transverter_mode, pJson["transverterMode"], "qint32", "");
187 
188  ::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", "");
189 
190  ::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
191 
192  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
193 
194  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
195 
196  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
197 
198  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
199 
200 }
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:

◆ getBiasT()

qint32 SWGSDRangel::SWGAirspySettings::getBiasT ( )

Definition at line 381 of file SWGAirspySettings.cpp.

References bias_t.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getCenterFrequency()

qint64 SWGSDRangel::SWGAirspySettings::getCenterFrequency ( )

Definition at line 281 of file SWGAirspySettings.cpp.

References center_frequency.

Referenced by AirspyInput::webapiSettingsPutPatch().

281  {
282  return center_frequency;
283 }
+ Here is the caller graph for this function:

◆ getDcBlock()

qint32 SWGSDRangel::SWGAirspySettings::getDcBlock ( )

Definition at line 391 of file SWGAirspySettings.cpp.

References dc_block.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getDevSampleRateIndex()

qint32 SWGSDRangel::SWGAirspySettings::getDevSampleRateIndex ( )

Definition at line 301 of file SWGAirspySettings.cpp.

References dev_sample_rate_index.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getFcPos()

qint32 SWGSDRangel::SWGAirspySettings::getFcPos ( )

Definition at line 371 of file SWGAirspySettings.cpp.

References fc_pos.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getFileRecordName()

QString * SWGSDRangel::SWGAirspySettings::getFileRecordName ( )

Definition at line 431 of file SWGAirspySettings.cpp.

References file_record_name.

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

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

◆ getIqCorrection()

qint32 SWGSDRangel::SWGAirspySettings::getIqCorrection ( )

Definition at line 401 of file SWGAirspySettings.cpp.

References iq_correction.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getLnaAgc()

qint32 SWGSDRangel::SWGAirspySettings::getLnaAgc ( )

Definition at line 341 of file SWGAirspySettings.cpp.

References lna_agc.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getLnaGain()

qint32 SWGSDRangel::SWGAirspySettings::getLnaGain ( )

Definition at line 311 of file SWGAirspySettings.cpp.

References lna_gain.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getLog2Decim()

qint32 SWGSDRangel::SWGAirspySettings::getLog2Decim ( )

Definition at line 361 of file SWGAirspySettings.cpp.

References log2_decim.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getLOppmTenths()

qint32 SWGSDRangel::SWGAirspySettings::getLOppmTenths ( )

Definition at line 291 of file SWGAirspySettings.cpp.

References l_oppm_tenths.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getMixerAgc()

qint32 SWGSDRangel::SWGAirspySettings::getMixerAgc ( )

Definition at line 351 of file SWGAirspySettings.cpp.

References mixer_agc.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getMixerGain()

qint32 SWGSDRangel::SWGAirspySettings::getMixerGain ( )

Definition at line 321 of file SWGAirspySettings.cpp.

References mixer_gain.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGAirspySettings::getReverseApiAddress ( )

Definition at line 451 of file SWGAirspySettings.cpp.

References reverse_api_address.

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

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

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGAirspySettings::getReverseApiDeviceIndex ( )

Definition at line 471 of file SWGAirspySettings.cpp.

References reverse_api_device_index.

Referenced by AirspyInput::webapiSettingsPutPatch().

471  {
473 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGAirspySettings::getReverseApiPort ( )

Definition at line 461 of file SWGAirspySettings.cpp.

References reverse_api_port.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getTransverterDeltaFrequency()

qint64 SWGSDRangel::SWGAirspySettings::getTransverterDeltaFrequency ( )

Definition at line 421 of file SWGAirspySettings.cpp.

References transverter_delta_frequency.

Referenced by AirspyInput::webapiSettingsPutPatch().

421  {
423 }
+ Here is the caller graph for this function:

◆ getTransverterMode()

qint32 SWGSDRangel::SWGAirspySettings::getTransverterMode ( )

Definition at line 411 of file SWGAirspySettings.cpp.

References transverter_mode.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGAirspySettings::getUseReverseApi ( )

Definition at line 441 of file SWGAirspySettings.cpp.

References use_reverse_api.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ getVgaGain()

qint32 SWGSDRangel::SWGAirspySettings::getVgaGain ( )

Definition at line 331 of file SWGAirspySettings.cpp.

References vga_gain.

Referenced by AirspyInput::webapiSettingsPutPatch().

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

◆ init()

void SWGSDRangel::SWGAirspySettings::init ( )

Definition at line 78 of file SWGAirspySettings.cpp.

References bias_t, center_frequency, dc_block, dev_sample_rate_index, fc_pos, file_record_name, iq_correction, l_oppm_tenths, lna_agc, lna_gain, log2_decim, m_bias_t_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_lna_agc_isSet, m_lna_gain_isSet, m_log2_decim_isSet, m_mixer_agc_isSet, m_mixer_gain_isSet, m_reverse_api_address_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, m_vga_gain_isSet, mixer_agc, mixer_gain, reverse_api_address, reverse_api_device_index, reverse_api_port, transverter_delta_frequency, transverter_mode, use_reverse_api, and vga_gain.

Referenced by SWGAirspySettings(), and AirspyInput::webapiSettingsGet().

78  {
79  center_frequency = 0L;
81  l_oppm_tenths = 0;
82  m_l_oppm_tenths_isSet = false;
85  lna_gain = 0;
86  m_lna_gain_isSet = false;
87  mixer_gain = 0;
88  m_mixer_gain_isSet = false;
89  vga_gain = 0;
90  m_vga_gain_isSet = false;
91  lna_agc = 0;
92  m_lna_agc_isSet = false;
93  mixer_agc = 0;
94  m_mixer_agc_isSet = false;
95  log2_decim = 0;
96  m_log2_decim_isSet = false;
97  fc_pos = 0;
98  m_fc_pos_isSet = false;
99  bias_t = 0;
100  m_bias_t_isSet = false;
101  dc_block = 0;
102  m_dc_block_isSet = false;
103  iq_correction = 0;
104  m_iq_correction_isSet = false;
105  transverter_mode = 0;
106  m_transverter_mode_isSet = false;
109  file_record_name = new QString("");
110  m_file_record_name_isSet = false;
111  use_reverse_api = 0;
112  m_use_reverse_api_isSet = false;
113  reverse_api_address = new QString("");
115  reverse_api_port = 0;
116  m_reverse_api_port_isSet = false;
119 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGAirspySettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 482 of file SWGAirspySettings.cpp.

References file_record_name, m_bias_t_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_fc_pos_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_lna_agc_isSet, m_lna_gain_isSet, m_log2_decim_isSet, m_mixer_agc_isSet, m_mixer_gain_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, m_vga_gain_isSet, and reverse_api_address.

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

482  {
483  bool isObjectUpdated = false;
484  do{
485  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
486  if(m_l_oppm_tenths_isSet){ isObjectUpdated = true; break;}
487  if(m_dev_sample_rate_index_isSet){ isObjectUpdated = true; break;}
488  if(m_lna_gain_isSet){ isObjectUpdated = true; break;}
489  if(m_mixer_gain_isSet){ isObjectUpdated = true; break;}
490  if(m_vga_gain_isSet){ isObjectUpdated = true; break;}
491  if(m_lna_agc_isSet){ isObjectUpdated = true; break;}
492  if(m_mixer_agc_isSet){ isObjectUpdated = true; break;}
493  if(m_log2_decim_isSet){ isObjectUpdated = true; break;}
494  if(m_fc_pos_isSet){ isObjectUpdated = true; break;}
495  if(m_bias_t_isSet){ isObjectUpdated = true; break;}
496  if(m_dc_block_isSet){ isObjectUpdated = true; break;}
497  if(m_iq_correction_isSet){ isObjectUpdated = true; break;}
498  if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
499  if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
500  if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
501  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
502  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
503  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
504  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
505  }while(false);
506  return isObjectUpdated;
507 }
+ Here is the caller graph for this function:

◆ setBiasT()

void SWGSDRangel::SWGAirspySettings::setBiasT ( qint32  bias_t)

Definition at line 385 of file SWGAirspySettings.cpp.

References bias_t, and m_bias_t_isSet.

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

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

◆ setCenterFrequency()

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

Definition at line 285 of file SWGAirspySettings.cpp.

References center_frequency, and m_center_frequency_isSet.

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

+ Here is the caller graph for this function:

◆ setDcBlock()

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

Definition at line 395 of file SWGAirspySettings.cpp.

References dc_block, and m_dc_block_isSet.

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

395  {
396  this->dc_block = dc_block;
397  this->m_dc_block_isSet = true;
398 }
+ Here is the caller graph for this function:

◆ setDevSampleRateIndex()

void SWGSDRangel::SWGAirspySettings::setDevSampleRateIndex ( qint32  dev_sample_rate_index)

◆ setFcPos()

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

Definition at line 375 of file SWGAirspySettings.cpp.

References fc_pos, and m_fc_pos_isSet.

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

375  {
376  this->fc_pos = fc_pos;
377  this->m_fc_pos_isSet = true;
378 }
+ Here is the caller graph for this function:

◆ setFileRecordName()

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

Definition at line 435 of file SWGAirspySettings.cpp.

References file_record_name, and m_file_record_name_isSet.

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

+ Here is the caller graph for this function:

◆ setIqCorrection()

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

Definition at line 405 of file SWGAirspySettings.cpp.

References iq_correction, and m_iq_correction_isSet.

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

+ Here is the caller graph for this function:

◆ setLnaAgc()

void SWGSDRangel::SWGAirspySettings::setLnaAgc ( qint32  lna_agc)

Definition at line 345 of file SWGAirspySettings.cpp.

References lna_agc, and m_lna_agc_isSet.

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

345  {
346  this->lna_agc = lna_agc;
347  this->m_lna_agc_isSet = true;
348 }
+ Here is the caller graph for this function:

◆ setLnaGain()

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

Definition at line 315 of file SWGAirspySettings.cpp.

References lna_gain, and m_lna_gain_isSet.

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

315  {
316  this->lna_gain = lna_gain;
317  this->m_lna_gain_isSet = true;
318 }
+ Here is the caller graph for this function:

◆ setLog2Decim()

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

Definition at line 365 of file SWGAirspySettings.cpp.

References log2_decim, and m_log2_decim_isSet.

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

365  {
366  this->log2_decim = log2_decim;
367  this->m_log2_decim_isSet = true;
368 }
+ Here is the caller graph for this function:

◆ setLOppmTenths()

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

Definition at line 295 of file SWGAirspySettings.cpp.

References l_oppm_tenths, and m_l_oppm_tenths_isSet.

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

+ Here is the caller graph for this function:

◆ setMixerAgc()

void SWGSDRangel::SWGAirspySettings::setMixerAgc ( qint32  mixer_agc)

Definition at line 355 of file SWGAirspySettings.cpp.

References m_mixer_agc_isSet, and mixer_agc.

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

355  {
356  this->mixer_agc = mixer_agc;
357  this->m_mixer_agc_isSet = true;
358 }
+ Here is the caller graph for this function:

◆ setMixerGain()

void SWGSDRangel::SWGAirspySettings::setMixerGain ( qint32  mixer_gain)

Definition at line 325 of file SWGAirspySettings.cpp.

References m_mixer_gain_isSet, and mixer_gain.

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

325  {
326  this->mixer_gain = mixer_gain;
327  this->m_mixer_gain_isSet = true;
328 }
+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 455 of file SWGAirspySettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by AirspyInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

Definition at line 475 of file SWGAirspySettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by AirspyInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 465 of file SWGAirspySettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by AirspyInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setTransverterDeltaFrequency()

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

◆ setTransverterMode()

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

Definition at line 415 of file SWGAirspySettings.cpp.

References m_transverter_mode_isSet, and transverter_mode.

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

+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 445 of file SWGAirspySettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by AirspyInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setVgaGain()

void SWGSDRangel::SWGAirspySettings::setVgaGain ( qint32  vga_gain)

Definition at line 335 of file SWGAirspySettings.cpp.

References m_vga_gain_isSet, and vga_gain.

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

335  {
336  this->vga_gain = vga_gain;
337  this->m_vga_gain_isSet = true;
338 }
+ Here is the caller graph for this function:

Member Data Documentation

◆ bias_t

qint32 SWGSDRangel::SWGAirspySettings::bias_t
private

◆ center_frequency

qint64 SWGSDRangel::SWGAirspySettings::center_frequency
private

◆ dc_block

qint32 SWGSDRangel::SWGAirspySettings::dc_block
private

◆ dev_sample_rate_index

qint32 SWGSDRangel::SWGAirspySettings::dev_sample_rate_index
private

◆ fc_pos

qint32 SWGSDRangel::SWGAirspySettings::fc_pos
private

◆ file_record_name

QString* SWGSDRangel::SWGAirspySettings::file_record_name
private

◆ iq_correction

qint32 SWGSDRangel::SWGAirspySettings::iq_correction
private

◆ l_oppm_tenths

qint32 SWGSDRangel::SWGAirspySettings::l_oppm_tenths
private

◆ lna_agc

qint32 SWGSDRangel::SWGAirspySettings::lna_agc
private

◆ lna_gain

qint32 SWGSDRangel::SWGAirspySettings::lna_gain
private

◆ log2_decim

qint32 SWGSDRangel::SWGAirspySettings::log2_decim
private

◆ m_bias_t_isSet

bool SWGSDRangel::SWGAirspySettings::m_bias_t_isSet
private

Definition at line 140 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setBiasT(), and SWGAirspySettings().

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGAirspySettings::m_center_frequency_isSet
private

Definition at line 110 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setCenterFrequency(), and SWGAirspySettings().

◆ m_dc_block_isSet

bool SWGSDRangel::SWGAirspySettings::m_dc_block_isSet
private

Definition at line 143 of file SWGAirspySettings.h.

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

◆ m_dev_sample_rate_index_isSet

bool SWGSDRangel::SWGAirspySettings::m_dev_sample_rate_index_isSet
private

◆ m_fc_pos_isSet

bool SWGSDRangel::SWGAirspySettings::m_fc_pos_isSet
private

Definition at line 137 of file SWGAirspySettings.h.

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

◆ m_file_record_name_isSet

bool SWGSDRangel::SWGAirspySettings::m_file_record_name_isSet
private

Definition at line 155 of file SWGAirspySettings.h.

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

◆ m_iq_correction_isSet

bool SWGSDRangel::SWGAirspySettings::m_iq_correction_isSet
private

Definition at line 146 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setIqCorrection(), and SWGAirspySettings().

◆ m_l_oppm_tenths_isSet

bool SWGSDRangel::SWGAirspySettings::m_l_oppm_tenths_isSet
private

Definition at line 113 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setLOppmTenths(), and SWGAirspySettings().

◆ m_lna_agc_isSet

bool SWGSDRangel::SWGAirspySettings::m_lna_agc_isSet
private

Definition at line 128 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setLnaAgc(), and SWGAirspySettings().

◆ m_lna_gain_isSet

bool SWGSDRangel::SWGAirspySettings::m_lna_gain_isSet
private

Definition at line 119 of file SWGAirspySettings.h.

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

◆ m_log2_decim_isSet

bool SWGSDRangel::SWGAirspySettings::m_log2_decim_isSet
private

Definition at line 134 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setLog2Decim(), and SWGAirspySettings().

◆ m_mixer_agc_isSet

bool SWGSDRangel::SWGAirspySettings::m_mixer_agc_isSet
private

Definition at line 131 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setMixerAgc(), and SWGAirspySettings().

◆ m_mixer_gain_isSet

bool SWGSDRangel::SWGAirspySettings::m_mixer_gain_isSet
private

Definition at line 122 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setMixerGain(), and SWGAirspySettings().

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGAirspySettings::m_reverse_api_address_isSet
private

Definition at line 161 of file SWGAirspySettings.h.

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

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGAirspySettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGAirspySettings::m_reverse_api_port_isSet
private

Definition at line 164 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setReverseApiPort(), and SWGAirspySettings().

◆ m_transverter_delta_frequency_isSet

bool SWGSDRangel::SWGAirspySettings::m_transverter_delta_frequency_isSet
private

◆ m_transverter_mode_isSet

bool SWGSDRangel::SWGAirspySettings::m_transverter_mode_isSet
private

Definition at line 149 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setTransverterMode(), and SWGAirspySettings().

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGAirspySettings::m_use_reverse_api_isSet
private

Definition at line 158 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setUseReverseApi(), and SWGAirspySettings().

◆ m_vga_gain_isSet

bool SWGSDRangel::SWGAirspySettings::m_vga_gain_isSet
private

Definition at line 125 of file SWGAirspySettings.h.

Referenced by asJsonObject(), init(), isSet(), setVgaGain(), and SWGAirspySettings().

◆ mixer_agc

qint32 SWGSDRangel::SWGAirspySettings::mixer_agc
private

◆ mixer_gain

qint32 SWGSDRangel::SWGAirspySettings::mixer_gain
private

◆ reverse_api_address

QString* SWGSDRangel::SWGAirspySettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGAirspySettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGAirspySettings::reverse_api_port
private

◆ transverter_delta_frequency

qint64 SWGSDRangel::SWGAirspySettings::transverter_delta_frequency
private

◆ transverter_mode

qint32 SWGSDRangel::SWGAirspySettings::transverter_mode
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGAirspySettings::use_reverse_api
private

◆ vga_gain

qint32 SWGSDRangel::SWGAirspySettings::vga_gain
private

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