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

#include <SWGAirspyHFSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGAirspyHFSettings:
+ Collaboration diagram for SWGSDRangel::SWGAirspyHFSettings:

Public Member Functions

 SWGAirspyHFSettings ()
 
 SWGAirspyHFSettings (QString *json)
 
virtual ~SWGAirspyHFSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGAirspyHFSettingsfromJson (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 getLog2Decim ()
 
void setLog2Decim (qint32 log2_decim)
 
qint32 getTransverterMode ()
 
void setTransverterMode (qint32 transverter_mode)
 
qint64 getTransverterDeltaFrequency ()
 
void setTransverterDeltaFrequency (qint64 transverter_delta_frequency)
 
qint32 getBandIndex ()
 
void setBandIndex (qint32 band_index)
 
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)
 
qint32 getUseAgc ()
 
void setUseAgc (qint32 use_agc)
 
qint32 getAgcHigh ()
 
void setAgcHigh (qint32 agc_high)
 
qint32 getUseDsp ()
 
void setUseDsp (qint32 use_dsp)
 
qint32 getUseLna ()
 
void setUseLna (qint32 use_lna)
 
qint32 getAttenuatorSteps ()
 
void setAttenuatorSteps (qint32 attenuator_steps)
 
qint32 getDcBlock ()
 
void setDcBlock (qint32 dc_block)
 
qint32 getIqCorrection ()
 
void setIqCorrection (qint32 iq_correction)
 
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 log2_decim
 
bool m_log2_decim_isSet
 
qint32 transverter_mode
 
bool m_transverter_mode_isSet
 
qint64 transverter_delta_frequency
 
bool m_transverter_delta_frequency_isSet
 
qint32 band_index
 
bool m_band_index_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
 
qint32 use_agc
 
bool m_use_agc_isSet
 
qint32 agc_high
 
bool m_agc_high_isSet
 
qint32 use_dsp
 
bool m_use_dsp_isSet
 
qint32 use_lna
 
bool m_use_lna_isSet
 
qint32 attenuator_steps
 
bool m_attenuator_steps_isSet
 
qint32 dc_block
 
bool m_dc_block_isSet
 
qint32 iq_correction
 
bool m_iq_correction_isSet
 

Detailed Description

Definition at line 32 of file SWGAirspyHFSettings.h.

Constructor & Destructor Documentation

◆ SWGAirspyHFSettings() [1/2]

SWGSDRangel::SWGAirspyHFSettings::SWGAirspyHFSettings ( )

Definition at line 30 of file SWGAirspyHFSettings.cpp.

References agc_high, attenuator_steps, band_index, center_frequency, dc_block, dev_sample_rate_index, file_record_name, iq_correction, l_oppm_tenths, log2_decim, m_agc_high_isSet, m_attenuator_steps_isSet, m_band_index_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_file_record_name_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_decim_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_agc_isSet, m_use_dsp_isSet, m_use_lna_isSet, m_use_reverse_api_isSet, reverse_api_address, reverse_api_device_index, reverse_api_port, transverter_delta_frequency, transverter_mode, use_agc, use_dsp, use_lna, and use_reverse_api.

30  {
31  center_frequency = 0L;
33  l_oppm_tenths = 0;
34  m_l_oppm_tenths_isSet = false;
37  log2_decim = 0;
38  m_log2_decim_isSet = false;
39  transverter_mode = 0;
43  band_index = 0;
44  m_band_index_isSet = false;
45  file_record_name = nullptr;
47  use_reverse_api = 0;
49  reverse_api_address = nullptr;
51  reverse_api_port = 0;
55  use_agc = 0;
56  m_use_agc_isSet = false;
57  agc_high = 0;
58  m_agc_high_isSet = false;
59  use_dsp = 0;
60  m_use_dsp_isSet = false;
61  use_lna = 0;
62  m_use_lna_isSet = false;
63  attenuator_steps = 0;
65  dc_block = 0;
66  m_dc_block_isSet = false;
67  iq_correction = 0;
68  m_iq_correction_isSet = false;
69 }

◆ SWGAirspyHFSettings() [2/2]

SWGSDRangel::SWGAirspyHFSettings::SWGAirspyHFSettings ( QString *  json)

Definition at line 25 of file SWGAirspyHFSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGAirspyHFSettings()

SWGSDRangel::SWGAirspyHFSettings::~SWGAirspyHFSettings ( )
virtual

Definition at line 71 of file SWGAirspyHFSettings.cpp.

References cleanup().

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

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGAirspyHFSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 196 of file SWGAirspyHFSettings.cpp.

References asJsonObject().

197 {
198  QJsonObject* obj = this->asJsonObject();
199 
200  QJsonDocument doc(*obj);
201  QByteArray bytes = doc.toJson();
202  delete obj;
203  return QString(bytes);
204 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 207 of file SWGAirspyHFSettings.cpp.

References agc_high, attenuator_steps, band_index, center_frequency, dc_block, dev_sample_rate_index, file_record_name, iq_correction, l_oppm_tenths, log2_decim, m_agc_high_isSet, m_attenuator_steps_isSet, m_band_index_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_decim_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_isSet, m_use_agc_isSet, m_use_dsp_isSet, m_use_lna_isSet, m_use_reverse_api_isSet, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::toJsonValue(), transverter_delta_frequency, transverter_mode, use_agc, use_dsp, use_lna, and use_reverse_api.

Referenced by asJson().

207  {
208  QJsonObject* obj = new QJsonObject();
210  obj->insert("centerFrequency", QJsonValue(center_frequency));
211  }
213  obj->insert("LOppmTenths", QJsonValue(l_oppm_tenths));
214  }
216  obj->insert("devSampleRateIndex", QJsonValue(dev_sample_rate_index));
217  }
218  if(m_log2_decim_isSet){
219  obj->insert("log2Decim", QJsonValue(log2_decim));
220  }
222  obj->insert("transverterMode", QJsonValue(transverter_mode));
223  }
225  obj->insert("transverterDeltaFrequency", QJsonValue(transverter_delta_frequency));
226  }
227  if(m_band_index_isSet){
228  obj->insert("bandIndex", QJsonValue(band_index));
229  }
230  if(file_record_name != nullptr && *file_record_name != QString("")){
231  toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
232  }
234  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
235  }
236  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
237  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
238  }
240  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
241  }
243  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
244  }
245  if(m_use_agc_isSet){
246  obj->insert("useAGC", QJsonValue(use_agc));
247  }
248  if(m_agc_high_isSet){
249  obj->insert("agcHigh", QJsonValue(agc_high));
250  }
251  if(m_use_dsp_isSet){
252  obj->insert("useDSP", QJsonValue(use_dsp));
253  }
254  if(m_use_lna_isSet){
255  obj->insert("useLNA", QJsonValue(use_lna));
256  }
258  obj->insert("attenuatorSteps", QJsonValue(attenuator_steps));
259  }
260  if(m_dc_block_isSet){
261  obj->insert("dcBlock", QJsonValue(dc_block));
262  }
264  obj->insert("iqCorrection", QJsonValue(iq_correction));
265  }
266 
267  return obj;
268 }
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::SWGAirspyHFSettings::cleanup ( )

Definition at line 118 of file SWGAirspyHFSettings.cpp.

References file_record_name, and reverse_api_address.

Referenced by ~SWGAirspyHFSettings().

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

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 145 of file SWGAirspyHFSettings.cpp.

References fromJsonObject().

Referenced by SWGAirspyHFSettings().

145  {
146  QByteArray array (json.toStdString().c_str());
147  QJsonDocument doc = QJsonDocument::fromJson(array);
148  QJsonObject jsonObject = doc.object();
149  this->fromJsonObject(jsonObject);
150  return this;
151 }
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::SWGAirspyHFSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 154 of file SWGAirspyHFSettings.cpp.

References agc_high, attenuator_steps, band_index, center_frequency, dc_block, dev_sample_rate_index, file_record_name, iq_correction, l_oppm_tenths, log2_decim, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::setValue(), transverter_delta_frequency, transverter_mode, use_agc, use_dsp, use_lna, and use_reverse_api.

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

154  {
155  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint64", "");
156 
157  ::SWGSDRangel::setValue(&l_oppm_tenths, pJson["LOppmTenths"], "qint32", "");
158 
159  ::SWGSDRangel::setValue(&dev_sample_rate_index, pJson["devSampleRateIndex"], "qint32", "");
160 
161  ::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", "");
162 
163  ::SWGSDRangel::setValue(&transverter_mode, pJson["transverterMode"], "qint32", "");
164 
165  ::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", "");
166 
167  ::SWGSDRangel::setValue(&band_index, pJson["bandIndex"], "qint32", "");
168 
169  ::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
170 
171  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
172 
173  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
174 
175  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
176 
177  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
178 
179  ::SWGSDRangel::setValue(&use_agc, pJson["useAGC"], "qint32", "");
180 
181  ::SWGSDRangel::setValue(&agc_high, pJson["agcHigh"], "qint32", "");
182 
183  ::SWGSDRangel::setValue(&use_dsp, pJson["useDSP"], "qint32", "");
184 
185  ::SWGSDRangel::setValue(&use_lna, pJson["useLNA"], "qint32", "");
186 
187  ::SWGSDRangel::setValue(&attenuator_steps, pJson["attenuatorSteps"], "qint32", "");
188 
189  ::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", "");
190 
191  ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
192 
193 }
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:

◆ getAgcHigh()

qint32 SWGSDRangel::SWGAirspyHFSettings::getAgcHigh ( )

Definition at line 401 of file SWGAirspyHFSettings.cpp.

References agc_high.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getAttenuatorSteps()

qint32 SWGSDRangel::SWGAirspyHFSettings::getAttenuatorSteps ( )

Definition at line 431 of file SWGAirspyHFSettings.cpp.

References attenuator_steps.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getBandIndex()

qint32 SWGSDRangel::SWGAirspyHFSettings::getBandIndex ( )

Definition at line 331 of file SWGAirspyHFSettings.cpp.

References band_index.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getCenterFrequency()

qint64 SWGSDRangel::SWGAirspyHFSettings::getCenterFrequency ( )

Definition at line 271 of file SWGAirspyHFSettings.cpp.

References center_frequency.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

271  {
272  return center_frequency;
273 }
+ Here is the caller graph for this function:

◆ getDcBlock()

qint32 SWGSDRangel::SWGAirspyHFSettings::getDcBlock ( )

Definition at line 441 of file SWGAirspyHFSettings.cpp.

References dc_block.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getDevSampleRateIndex()

qint32 SWGSDRangel::SWGAirspyHFSettings::getDevSampleRateIndex ( )

Definition at line 291 of file SWGAirspyHFSettings.cpp.

References dev_sample_rate_index.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getFileRecordName()

QString * SWGSDRangel::SWGAirspyHFSettings::getFileRecordName ( )

Definition at line 341 of file SWGAirspyHFSettings.cpp.

References file_record_name.

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

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

◆ getIqCorrection()

qint32 SWGSDRangel::SWGAirspyHFSettings::getIqCorrection ( )

Definition at line 451 of file SWGAirspyHFSettings.cpp.

References iq_correction.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getLog2Decim()

qint32 SWGSDRangel::SWGAirspyHFSettings::getLog2Decim ( )

Definition at line 301 of file SWGAirspyHFSettings.cpp.

References log2_decim.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getLOppmTenths()

qint32 SWGSDRangel::SWGAirspyHFSettings::getLOppmTenths ( )

Definition at line 281 of file SWGAirspyHFSettings.cpp.

References l_oppm_tenths.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGAirspyHFSettings::getReverseApiAddress ( )

Definition at line 361 of file SWGAirspyHFSettings.cpp.

References reverse_api_address.

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

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

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGAirspyHFSettings::getReverseApiDeviceIndex ( )

Definition at line 381 of file SWGAirspyHFSettings.cpp.

References reverse_api_device_index.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

381  {
383 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGAirspyHFSettings::getReverseApiPort ( )

Definition at line 371 of file SWGAirspyHFSettings.cpp.

References reverse_api_port.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getTransverterDeltaFrequency()

qint64 SWGSDRangel::SWGAirspyHFSettings::getTransverterDeltaFrequency ( )

Definition at line 321 of file SWGAirspyHFSettings.cpp.

References transverter_delta_frequency.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

321  {
323 }
+ Here is the caller graph for this function:

◆ getTransverterMode()

qint32 SWGSDRangel::SWGAirspyHFSettings::getTransverterMode ( )

Definition at line 311 of file SWGAirspyHFSettings.cpp.

References transverter_mode.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getUseAgc()

qint32 SWGSDRangel::SWGAirspyHFSettings::getUseAgc ( )

Definition at line 391 of file SWGAirspyHFSettings.cpp.

References use_agc.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getUseDsp()

qint32 SWGSDRangel::SWGAirspyHFSettings::getUseDsp ( )

Definition at line 411 of file SWGAirspyHFSettings.cpp.

References use_dsp.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getUseLna()

qint32 SWGSDRangel::SWGAirspyHFSettings::getUseLna ( )

Definition at line 421 of file SWGAirspyHFSettings.cpp.

References use_lna.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGAirspyHFSettings::getUseReverseApi ( )

Definition at line 351 of file SWGAirspyHFSettings.cpp.

References use_reverse_api.

Referenced by AirspyHFInput::webapiSettingsPutPatch().

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

◆ init()

void SWGSDRangel::SWGAirspyHFSettings::init ( )

Definition at line 76 of file SWGAirspyHFSettings.cpp.

References agc_high, attenuator_steps, band_index, center_frequency, dc_block, dev_sample_rate_index, file_record_name, iq_correction, l_oppm_tenths, log2_decim, m_agc_high_isSet, m_attenuator_steps_isSet, m_band_index_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_file_record_name_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_decim_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_agc_isSet, m_use_dsp_isSet, m_use_lna_isSet, m_use_reverse_api_isSet, reverse_api_address, reverse_api_device_index, reverse_api_port, transverter_delta_frequency, transverter_mode, use_agc, use_dsp, use_lna, and use_reverse_api.

Referenced by SWGAirspyHFSettings(), and AirspyHFInput::webapiSettingsGet().

76  {
77  center_frequency = 0L;
79  l_oppm_tenths = 0;
80  m_l_oppm_tenths_isSet = false;
83  log2_decim = 0;
84  m_log2_decim_isSet = false;
85  transverter_mode = 0;
89  band_index = 0;
90  m_band_index_isSet = false;
91  file_record_name = new QString("");
93  use_reverse_api = 0;
95  reverse_api_address = new QString("");
97  reverse_api_port = 0;
101  use_agc = 0;
102  m_use_agc_isSet = false;
103  agc_high = 0;
104  m_agc_high_isSet = false;
105  use_dsp = 0;
106  m_use_dsp_isSet = false;
107  use_lna = 0;
108  m_use_lna_isSet = false;
109  attenuator_steps = 0;
110  m_attenuator_steps_isSet = false;
111  dc_block = 0;
112  m_dc_block_isSet = false;
113  iq_correction = 0;
114  m_iq_correction_isSet = false;
115 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGAirspyHFSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 462 of file SWGAirspyHFSettings.cpp.

References file_record_name, m_agc_high_isSet, m_attenuator_steps_isSet, m_band_index_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_decim_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_isSet, m_use_agc_isSet, m_use_dsp_isSet, m_use_lna_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().

462  {
463  bool isObjectUpdated = false;
464  do{
465  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
466  if(m_l_oppm_tenths_isSet){ isObjectUpdated = true; break;}
467  if(m_dev_sample_rate_index_isSet){ isObjectUpdated = true; break;}
468  if(m_log2_decim_isSet){ isObjectUpdated = true; break;}
469  if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
470  if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
471  if(m_band_index_isSet){ isObjectUpdated = true; break;}
472  if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
473  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
474  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
475  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
476  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
477  if(m_use_agc_isSet){ isObjectUpdated = true; break;}
478  if(m_agc_high_isSet){ isObjectUpdated = true; break;}
479  if(m_use_dsp_isSet){ isObjectUpdated = true; break;}
480  if(m_use_lna_isSet){ isObjectUpdated = true; break;}
481  if(m_attenuator_steps_isSet){ isObjectUpdated = true; break;}
482  if(m_dc_block_isSet){ isObjectUpdated = true; break;}
483  if(m_iq_correction_isSet){ isObjectUpdated = true; break;}
484  }while(false);
485  return isObjectUpdated;
486 }
+ Here is the caller graph for this function:

◆ setAgcHigh()

void SWGSDRangel::SWGAirspyHFSettings::setAgcHigh ( qint32  agc_high)

Definition at line 405 of file SWGAirspyHFSettings.cpp.

References agc_high, and m_agc_high_isSet.

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

+ Here is the caller graph for this function:

◆ setAttenuatorSteps()

void SWGSDRangel::SWGAirspyHFSettings::setAttenuatorSteps ( qint32  attenuator_steps)

Definition at line 435 of file SWGAirspyHFSettings.cpp.

References attenuator_steps, and m_attenuator_steps_isSet.

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

+ Here is the caller graph for this function:

◆ setBandIndex()

void SWGSDRangel::SWGAirspyHFSettings::setBandIndex ( qint32  band_index)

Definition at line 335 of file SWGAirspyHFSettings.cpp.

References band_index, and m_band_index_isSet.

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

+ Here is the caller graph for this function:

◆ setCenterFrequency()

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

Definition at line 275 of file SWGAirspyHFSettings.cpp.

References center_frequency, and m_center_frequency_isSet.

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

+ Here is the caller graph for this function:

◆ setDcBlock()

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

Definition at line 445 of file SWGAirspyHFSettings.cpp.

References dc_block, and m_dc_block_isSet.

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

+ Here is the caller graph for this function:

◆ setDevSampleRateIndex()

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

◆ setFileRecordName()

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

Definition at line 345 of file SWGAirspyHFSettings.cpp.

References file_record_name, and m_file_record_name_isSet.

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

+ Here is the caller graph for this function:

◆ setIqCorrection()

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

Definition at line 455 of file SWGAirspyHFSettings.cpp.

References iq_correction, and m_iq_correction_isSet.

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

+ Here is the caller graph for this function:

◆ setLog2Decim()

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

Definition at line 305 of file SWGAirspyHFSettings.cpp.

References log2_decim, and m_log2_decim_isSet.

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

+ Here is the caller graph for this function:

◆ setLOppmTenths()

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

Definition at line 285 of file SWGAirspyHFSettings.cpp.

References l_oppm_tenths, and m_l_oppm_tenths_isSet.

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

+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 365 of file SWGAirspyHFSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by AirspyHFInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

Definition at line 385 of file SWGAirspyHFSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by AirspyHFInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 375 of file SWGAirspyHFSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by AirspyHFInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setTransverterDeltaFrequency()

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

◆ setTransverterMode()

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

Definition at line 315 of file SWGAirspyHFSettings.cpp.

References m_transverter_mode_isSet, and transverter_mode.

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

+ Here is the caller graph for this function:

◆ setUseAgc()

void SWGSDRangel::SWGAirspyHFSettings::setUseAgc ( qint32  use_agc)

Definition at line 395 of file SWGAirspyHFSettings.cpp.

References m_use_agc_isSet, and use_agc.

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

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

◆ setUseDsp()

void SWGSDRangel::SWGAirspyHFSettings::setUseDsp ( qint32  use_dsp)

Definition at line 415 of file SWGAirspyHFSettings.cpp.

References m_use_dsp_isSet, and use_dsp.

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

415  {
416  this->use_dsp = use_dsp;
417  this->m_use_dsp_isSet = true;
418 }
+ Here is the caller graph for this function:

◆ setUseLna()

void SWGSDRangel::SWGAirspyHFSettings::setUseLna ( qint32  use_lna)

Definition at line 425 of file SWGAirspyHFSettings.cpp.

References m_use_lna_isSet, and use_lna.

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

425  {
426  this->use_lna = use_lna;
427  this->m_use_lna_isSet = true;
428 }
+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 355 of file SWGAirspyHFSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by AirspyHFInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ agc_high

qint32 SWGSDRangel::SWGAirspyHFSettings::agc_high
private

◆ attenuator_steps

qint32 SWGSDRangel::SWGAirspyHFSettings::attenuator_steps
private

◆ band_index

qint32 SWGSDRangel::SWGAirspyHFSettings::band_index
private

◆ center_frequency

qint64 SWGSDRangel::SWGAirspyHFSettings::center_frequency
private

◆ dc_block

qint32 SWGSDRangel::SWGAirspyHFSettings::dc_block
private

◆ dev_sample_rate_index

qint32 SWGSDRangel::SWGAirspyHFSettings::dev_sample_rate_index
private

◆ file_record_name

QString* SWGSDRangel::SWGAirspyHFSettings::file_record_name
private

◆ iq_correction

qint32 SWGSDRangel::SWGAirspyHFSettings::iq_correction
private

◆ l_oppm_tenths

qint32 SWGSDRangel::SWGAirspyHFSettings::l_oppm_tenths
private

◆ log2_decim

qint32 SWGSDRangel::SWGAirspyHFSettings::log2_decim
private

◆ m_agc_high_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_agc_high_isSet
private

Definition at line 146 of file SWGAirspyHFSettings.h.

Referenced by asJsonObject(), init(), isSet(), setAgcHigh(), and SWGAirspyHFSettings().

◆ m_attenuator_steps_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_attenuator_steps_isSet
private

◆ m_band_index_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_band_index_isSet
private

Definition at line 125 of file SWGAirspyHFSettings.h.

Referenced by asJsonObject(), init(), isSet(), setBandIndex(), and SWGAirspyHFSettings().

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_center_frequency_isSet
private

◆ m_dc_block_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_dc_block_isSet
private

Definition at line 158 of file SWGAirspyHFSettings.h.

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

◆ m_dev_sample_rate_index_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_dev_sample_rate_index_isSet
private

◆ m_file_record_name_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_file_record_name_isSet
private

Definition at line 128 of file SWGAirspyHFSettings.h.

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

◆ m_iq_correction_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_iq_correction_isSet
private

◆ m_l_oppm_tenths_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_l_oppm_tenths_isSet
private

Definition at line 110 of file SWGAirspyHFSettings.h.

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

◆ m_log2_decim_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_log2_decim_isSet
private

Definition at line 116 of file SWGAirspyHFSettings.h.

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

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_reverse_api_address_isSet
private

Definition at line 134 of file SWGAirspyHFSettings.h.

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

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_reverse_api_port_isSet
private

◆ m_transverter_delta_frequency_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_transverter_delta_frequency_isSet
private

◆ m_transverter_mode_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_transverter_mode_isSet
private

◆ m_use_agc_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_use_agc_isSet
private

Definition at line 143 of file SWGAirspyHFSettings.h.

Referenced by asJsonObject(), init(), isSet(), setUseAgc(), and SWGAirspyHFSettings().

◆ m_use_dsp_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_use_dsp_isSet
private

Definition at line 149 of file SWGAirspyHFSettings.h.

Referenced by asJsonObject(), init(), isSet(), setUseDsp(), and SWGAirspyHFSettings().

◆ m_use_lna_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_use_lna_isSet
private

Definition at line 152 of file SWGAirspyHFSettings.h.

Referenced by asJsonObject(), init(), isSet(), setUseLna(), and SWGAirspyHFSettings().

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGAirspyHFSettings::m_use_reverse_api_isSet
private

◆ reverse_api_address

QString* SWGSDRangel::SWGAirspyHFSettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGAirspyHFSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGAirspyHFSettings::reverse_api_port
private

◆ transverter_delta_frequency

qint64 SWGSDRangel::SWGAirspyHFSettings::transverter_delta_frequency
private

◆ transverter_mode

qint32 SWGSDRangel::SWGAirspyHFSettings::transverter_mode
private

◆ use_agc

qint32 SWGSDRangel::SWGAirspyHFSettings::use_agc
private

◆ use_dsp

qint32 SWGSDRangel::SWGAirspyHFSettings::use_dsp
private

◆ use_lna

qint32 SWGSDRangel::SWGAirspyHFSettings::use_lna
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGAirspyHFSettings::use_reverse_api
private

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