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

#include <SWGRtlSdrSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGRtlSdrSettings:
+ Collaboration diagram for SWGSDRangel::SWGRtlSdrSettings:

Public Member Functions

 SWGRtlSdrSettings ()
 
 SWGRtlSdrSettings (QString *json)
 
virtual ~SWGRtlSdrSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGRtlSdrSettingsfromJson (QString &jsonString) override
 
qint32 getDevSampleRate ()
 
void setDevSampleRate (qint32 dev_sample_rate)
 
qint32 getLowSampleRate ()
 
void setLowSampleRate (qint32 low_sample_rate)
 
qint64 getCenterFrequency ()
 
void setCenterFrequency (qint64 center_frequency)
 
qint32 getGain ()
 
void setGain (qint32 gain)
 
qint32 getLoPpmCorrection ()
 
void setLoPpmCorrection (qint32 lo_ppm_correction)
 
qint32 getLog2Decim ()
 
void setLog2Decim (qint32 log2_decim)
 
qint32 getFcPos ()
 
void setFcPos (qint32 fc_pos)
 
qint32 getDcBlock ()
 
void setDcBlock (qint32 dc_block)
 
qint32 getIqImbalance ()
 
void setIqImbalance (qint32 iq_imbalance)
 
qint32 getAgc ()
 
void setAgc (qint32 agc)
 
qint32 getNoModMode ()
 
void setNoModMode (qint32 no_mod_mode)
 
qint32 getOffsetTuning ()
 
void setOffsetTuning (qint32 offset_tuning)
 
qint32 getTransverterMode ()
 
void setTransverterMode (qint32 transverter_mode)
 
qint64 getTransverterDeltaFrequency ()
 
void setTransverterDeltaFrequency (qint64 transverter_delta_frequency)
 
qint32 getRfBandwidth ()
 
void setRfBandwidth (qint32 rf_bandwidth)
 
QString * getFileRecordName ()
 
void setFileRecordName (QString *file_record_name)
 
qint32 getUseReverseApi ()
 
void setUseReverseApi (qint32 use_reverse_api)
 
QString * getReverseApiAddress ()
 
void setReverseApiAddress (QString *reverse_api_address)
 
qint32 getReverseApiPort ()
 
void setReverseApiPort (qint32 reverse_api_port)
 
qint32 getReverseApiDeviceIndex ()
 
void setReverseApiDeviceIndex (qint32 reverse_api_device_index)
 
virtual bool isSet () override
 
- Public Member Functions inherited from SWGSDRangel::SWGObject
virtual ~SWGObject ()
 

Private Attributes

qint32 dev_sample_rate
 
bool m_dev_sample_rate_isSet
 
qint32 low_sample_rate
 
bool m_low_sample_rate_isSet
 
qint64 center_frequency
 
bool m_center_frequency_isSet
 
qint32 gain
 
bool m_gain_isSet
 
qint32 lo_ppm_correction
 
bool m_lo_ppm_correction_isSet
 
qint32 log2_decim
 
bool m_log2_decim_isSet
 
qint32 fc_pos
 
bool m_fc_pos_isSet
 
qint32 dc_block
 
bool m_dc_block_isSet
 
qint32 iq_imbalance
 
bool m_iq_imbalance_isSet
 
qint32 agc
 
bool m_agc_isSet
 
qint32 no_mod_mode
 
bool m_no_mod_mode_isSet
 
qint32 offset_tuning
 
bool m_offset_tuning_isSet
 
qint32 transverter_mode
 
bool m_transverter_mode_isSet
 
qint64 transverter_delta_frequency
 
bool m_transverter_delta_frequency_isSet
 
qint32 rf_bandwidth
 
bool m_rf_bandwidth_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 SWGRtlSdrSettings.h.

Constructor & Destructor Documentation

◆ SWGRtlSdrSettings() [1/2]

SWGSDRangel::SWGRtlSdrSettings::SWGRtlSdrSettings ( )

Definition at line 30 of file SWGRtlSdrSettings.cpp.

References agc, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, gain, iq_imbalance, lo_ppm_correction, log2_decim, low_sample_rate, m_agc_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_gain_isSet, m_iq_imbalance_isSet, m_lo_ppm_correction_isSet, m_log2_decim_isSet, m_low_sample_rate_isSet, m_no_mod_mode_isSet, m_offset_tuning_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_isSet, m_use_reverse_api_isSet, no_mod_mode, offset_tuning, reverse_api_address, reverse_api_device_index, reverse_api_port, rf_bandwidth, transverter_delta_frequency, transverter_mode, and use_reverse_api.

30  {
31  dev_sample_rate = 0;
33  low_sample_rate = 0;
35  center_frequency = 0L;
37  gain = 0;
38  m_gain_isSet = false;
41  log2_decim = 0;
42  m_log2_decim_isSet = false;
43  fc_pos = 0;
44  m_fc_pos_isSet = false;
45  dc_block = 0;
46  m_dc_block_isSet = false;
47  iq_imbalance = 0;
48  m_iq_imbalance_isSet = false;
49  agc = 0;
50  m_agc_isSet = false;
51  no_mod_mode = 0;
52  m_no_mod_mode_isSet = false;
53  offset_tuning = 0;
54  m_offset_tuning_isSet = false;
55  transverter_mode = 0;
59  rf_bandwidth = 0;
60  m_rf_bandwidth_isSet = false;
61  file_record_name = nullptr;
63  use_reverse_api = 0;
65  reverse_api_address = nullptr;
67  reverse_api_port = 0;
71 }

◆ SWGRtlSdrSettings() [2/2]

SWGSDRangel::SWGRtlSdrSettings::SWGRtlSdrSettings ( QString *  json)

Definition at line 25 of file SWGRtlSdrSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGRtlSdrSettings()

SWGSDRangel::SWGRtlSdrSettings::~SWGRtlSdrSettings ( )
virtual

Definition at line 73 of file SWGRtlSdrSettings.cpp.

References cleanup().

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

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGRtlSdrSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 203 of file SWGRtlSdrSettings.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::SWGRtlSdrSettings::asJsonObject ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 214 of file SWGRtlSdrSettings.cpp.

References agc, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, gain, iq_imbalance, lo_ppm_correction, log2_decim, low_sample_rate, m_agc_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_gain_isSet, m_iq_imbalance_isSet, m_lo_ppm_correction_isSet, m_log2_decim_isSet, m_low_sample_rate_isSet, m_no_mod_mode_isSet, m_offset_tuning_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_isSet, m_use_reverse_api_isSet, no_mod_mode, offset_tuning, reverse_api_address, reverse_api_device_index, reverse_api_port, rf_bandwidth, SWGSDRangel::toJsonValue(), transverter_delta_frequency, transverter_mode, and use_reverse_api.

Referenced by asJson().

214  {
215  QJsonObject* obj = new QJsonObject();
217  obj->insert("devSampleRate", QJsonValue(dev_sample_rate));
218  }
220  obj->insert("lowSampleRate", QJsonValue(low_sample_rate));
221  }
223  obj->insert("centerFrequency", QJsonValue(center_frequency));
224  }
225  if(m_gain_isSet){
226  obj->insert("gain", QJsonValue(gain));
227  }
229  obj->insert("loPpmCorrection", QJsonValue(lo_ppm_correction));
230  }
231  if(m_log2_decim_isSet){
232  obj->insert("log2Decim", QJsonValue(log2_decim));
233  }
234  if(m_fc_pos_isSet){
235  obj->insert("fcPos", QJsonValue(fc_pos));
236  }
237  if(m_dc_block_isSet){
238  obj->insert("dcBlock", QJsonValue(dc_block));
239  }
241  obj->insert("iqImbalance", QJsonValue(iq_imbalance));
242  }
243  if(m_agc_isSet){
244  obj->insert("agc", QJsonValue(agc));
245  }
247  obj->insert("noModMode", QJsonValue(no_mod_mode));
248  }
250  obj->insert("offsetTuning", QJsonValue(offset_tuning));
251  }
253  obj->insert("transverterMode", QJsonValue(transverter_mode));
254  }
256  obj->insert("transverterDeltaFrequency", QJsonValue(transverter_delta_frequency));
257  }
259  obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
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::SWGRtlSdrSettings::cleanup ( )

Definition at line 122 of file SWGRtlSdrSettings.cpp.

References file_record_name, and reverse_api_address.

Referenced by ~SWGRtlSdrSettings().

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()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 150 of file SWGRtlSdrSettings.cpp.

References fromJsonObject().

Referenced by SWGRtlSdrSettings().

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::SWGRtlSdrSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 159 of file SWGRtlSdrSettings.cpp.

References agc, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, gain, iq_imbalance, lo_ppm_correction, log2_decim, low_sample_rate, no_mod_mode, offset_tuning, reverse_api_address, reverse_api_device_index, reverse_api_port, rf_bandwidth, SWGSDRangel::setValue(), transverter_delta_frequency, transverter_mode, and use_reverse_api.

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

159  {
160  ::SWGSDRangel::setValue(&dev_sample_rate, pJson["devSampleRate"], "qint32", "");
161 
162  ::SWGSDRangel::setValue(&low_sample_rate, pJson["lowSampleRate"], "qint32", "");
163 
164  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint64", "");
165 
166  ::SWGSDRangel::setValue(&gain, pJson["gain"], "qint32", "");
167 
168  ::SWGSDRangel::setValue(&lo_ppm_correction, pJson["loPpmCorrection"], "qint32", "");
169 
170  ::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", "");
171 
172  ::SWGSDRangel::setValue(&fc_pos, pJson["fcPos"], "qint32", "");
173 
174  ::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", "");
175 
176  ::SWGSDRangel::setValue(&iq_imbalance, pJson["iqImbalance"], "qint32", "");
177 
178  ::SWGSDRangel::setValue(&agc, pJson["agc"], "qint32", "");
179 
180  ::SWGSDRangel::setValue(&no_mod_mode, pJson["noModMode"], "qint32", "");
181 
182  ::SWGSDRangel::setValue(&offset_tuning, pJson["offsetTuning"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&transverter_mode, pJson["transverterMode"], "qint32", "");
185 
186  ::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", "");
187 
188  ::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "qint32", "");
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:

◆ getAgc()

qint32 SWGSDRangel::SWGRtlSdrSettings::getAgc ( )

Definition at line 371 of file SWGRtlSdrSettings.cpp.

References agc.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getCenterFrequency()

qint64 SWGSDRangel::SWGRtlSdrSettings::getCenterFrequency ( )

Definition at line 301 of file SWGRtlSdrSettings.cpp.

References center_frequency.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getDcBlock()

qint32 SWGSDRangel::SWGRtlSdrSettings::getDcBlock ( )

Definition at line 351 of file SWGRtlSdrSettings.cpp.

References dc_block.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getDevSampleRate()

qint32 SWGSDRangel::SWGRtlSdrSettings::getDevSampleRate ( )

Definition at line 281 of file SWGRtlSdrSettings.cpp.

References dev_sample_rate.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getFcPos()

qint32 SWGSDRangel::SWGRtlSdrSettings::getFcPos ( )

Definition at line 341 of file SWGRtlSdrSettings.cpp.

References fc_pos.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getFileRecordName()

QString * SWGSDRangel::SWGRtlSdrSettings::getFileRecordName ( )

Definition at line 431 of file SWGRtlSdrSettings.cpp.

References file_record_name.

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

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

◆ getGain()

qint32 SWGSDRangel::SWGRtlSdrSettings::getGain ( )

Definition at line 311 of file SWGRtlSdrSettings.cpp.

References gain.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getIqImbalance()

qint32 SWGSDRangel::SWGRtlSdrSettings::getIqImbalance ( )

Definition at line 361 of file SWGRtlSdrSettings.cpp.

References iq_imbalance.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getLog2Decim()

qint32 SWGSDRangel::SWGRtlSdrSettings::getLog2Decim ( )

Definition at line 331 of file SWGRtlSdrSettings.cpp.

References log2_decim.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getLoPpmCorrection()

qint32 SWGSDRangel::SWGRtlSdrSettings::getLoPpmCorrection ( )

Definition at line 321 of file SWGRtlSdrSettings.cpp.

References lo_ppm_correction.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getLowSampleRate()

qint32 SWGSDRangel::SWGRtlSdrSettings::getLowSampleRate ( )

Definition at line 291 of file SWGRtlSdrSettings.cpp.

References low_sample_rate.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getNoModMode()

qint32 SWGSDRangel::SWGRtlSdrSettings::getNoModMode ( )

Definition at line 381 of file SWGRtlSdrSettings.cpp.

References no_mod_mode.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getOffsetTuning()

qint32 SWGSDRangel::SWGRtlSdrSettings::getOffsetTuning ( )

Definition at line 391 of file SWGRtlSdrSettings.cpp.

References offset_tuning.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGRtlSdrSettings::getReverseApiAddress ( )

Definition at line 451 of file SWGRtlSdrSettings.cpp.

References reverse_api_address.

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

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

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGRtlSdrSettings::getReverseApiDeviceIndex ( )

Definition at line 471 of file SWGRtlSdrSettings.cpp.

References reverse_api_device_index.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGRtlSdrSettings::getReverseApiPort ( )

Definition at line 461 of file SWGRtlSdrSettings.cpp.

References reverse_api_port.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getRfBandwidth()

qint32 SWGSDRangel::SWGRtlSdrSettings::getRfBandwidth ( )

Definition at line 421 of file SWGRtlSdrSettings.cpp.

References rf_bandwidth.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getTransverterDeltaFrequency()

qint64 SWGSDRangel::SWGRtlSdrSettings::getTransverterDeltaFrequency ( )

Definition at line 411 of file SWGRtlSdrSettings.cpp.

References transverter_delta_frequency.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

411  {
413 }
+ Here is the caller graph for this function:

◆ getTransverterMode()

qint32 SWGSDRangel::SWGRtlSdrSettings::getTransverterMode ( )

Definition at line 401 of file SWGRtlSdrSettings.cpp.

References transverter_mode.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGRtlSdrSettings::getUseReverseApi ( )

Definition at line 441 of file SWGRtlSdrSettings.cpp.

References use_reverse_api.

Referenced by RTLSDRInput::webapiSettingsPutPatch().

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

◆ init()

void SWGSDRangel::SWGRtlSdrSettings::init ( )

Definition at line 78 of file SWGRtlSdrSettings.cpp.

References agc, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, gain, iq_imbalance, lo_ppm_correction, log2_decim, low_sample_rate, m_agc_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_gain_isSet, m_iq_imbalance_isSet, m_lo_ppm_correction_isSet, m_log2_decim_isSet, m_low_sample_rate_isSet, m_no_mod_mode_isSet, m_offset_tuning_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_isSet, m_use_reverse_api_isSet, no_mod_mode, offset_tuning, reverse_api_address, reverse_api_device_index, reverse_api_port, rf_bandwidth, transverter_delta_frequency, transverter_mode, and use_reverse_api.

Referenced by SWGRtlSdrSettings(), and RTLSDRInput::webapiSettingsGet().

78  {
79  dev_sample_rate = 0;
81  low_sample_rate = 0;
83  center_frequency = 0L;
85  gain = 0;
86  m_gain_isSet = false;
89  log2_decim = 0;
90  m_log2_decim_isSet = false;
91  fc_pos = 0;
92  m_fc_pos_isSet = false;
93  dc_block = 0;
94  m_dc_block_isSet = false;
95  iq_imbalance = 0;
96  m_iq_imbalance_isSet = false;
97  agc = 0;
98  m_agc_isSet = false;
99  no_mod_mode = 0;
100  m_no_mod_mode_isSet = false;
101  offset_tuning = 0;
102  m_offset_tuning_isSet = false;
103  transverter_mode = 0;
104  m_transverter_mode_isSet = false;
107  rf_bandwidth = 0;
108  m_rf_bandwidth_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::SWGRtlSdrSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 482 of file SWGRtlSdrSettings.cpp.

References file_record_name, m_agc_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_gain_isSet, m_iq_imbalance_isSet, m_lo_ppm_correction_isSet, m_log2_decim_isSet, m_low_sample_rate_isSet, m_no_mod_mode_isSet, m_offset_tuning_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_transverter_delta_frequency_isSet, m_transverter_mode_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().

482  {
483  bool isObjectUpdated = false;
484  do{
485  if(m_dev_sample_rate_isSet){ isObjectUpdated = true; break;}
486  if(m_low_sample_rate_isSet){ isObjectUpdated = true; break;}
487  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
488  if(m_gain_isSet){ isObjectUpdated = true; break;}
489  if(m_lo_ppm_correction_isSet){ isObjectUpdated = true; break;}
490  if(m_log2_decim_isSet){ isObjectUpdated = true; break;}
491  if(m_fc_pos_isSet){ isObjectUpdated = true; break;}
492  if(m_dc_block_isSet){ isObjectUpdated = true; break;}
493  if(m_iq_imbalance_isSet){ isObjectUpdated = true; break;}
494  if(m_agc_isSet){ isObjectUpdated = true; break;}
495  if(m_no_mod_mode_isSet){ isObjectUpdated = true; break;}
496  if(m_offset_tuning_isSet){ isObjectUpdated = true; break;}
497  if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
498  if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
499  if(m_rf_bandwidth_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:

◆ setAgc()

void SWGSDRangel::SWGRtlSdrSettings::setAgc ( qint32  agc)

Definition at line 375 of file SWGRtlSdrSettings.cpp.

References agc, and m_agc_isSet.

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

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

◆ setCenterFrequency()

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

Definition at line 305 of file SWGRtlSdrSettings.cpp.

References center_frequency, and m_center_frequency_isSet.

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

+ Here is the caller graph for this function:

◆ setDcBlock()

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

Definition at line 355 of file SWGRtlSdrSettings.cpp.

References dc_block, and m_dc_block_isSet.

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

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

◆ setDevSampleRate()

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

Definition at line 285 of file SWGRtlSdrSettings.cpp.

References dev_sample_rate, and m_dev_sample_rate_isSet.

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

+ Here is the caller graph for this function:

◆ setFcPos()

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

Definition at line 345 of file SWGRtlSdrSettings.cpp.

References fc_pos, and m_fc_pos_isSet.

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

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

◆ setFileRecordName()

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

Definition at line 435 of file SWGRtlSdrSettings.cpp.

References file_record_name, and m_file_record_name_isSet.

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

+ Here is the caller graph for this function:

◆ setGain()

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

Definition at line 315 of file SWGRtlSdrSettings.cpp.

References gain, and m_gain_isSet.

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

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

◆ setIqImbalance()

void SWGSDRangel::SWGRtlSdrSettings::setIqImbalance ( qint32  iq_imbalance)

Definition at line 365 of file SWGRtlSdrSettings.cpp.

References iq_imbalance, and m_iq_imbalance_isSet.

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

+ Here is the caller graph for this function:

◆ setLog2Decim()

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

Definition at line 335 of file SWGRtlSdrSettings.cpp.

References log2_decim, and m_log2_decim_isSet.

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

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

◆ setLoPpmCorrection()

void SWGSDRangel::SWGRtlSdrSettings::setLoPpmCorrection ( qint32  lo_ppm_correction)

Definition at line 325 of file SWGRtlSdrSettings.cpp.

References lo_ppm_correction, and m_lo_ppm_correction_isSet.

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

+ Here is the caller graph for this function:

◆ setLowSampleRate()

void SWGSDRangel::SWGRtlSdrSettings::setLowSampleRate ( qint32  low_sample_rate)

Definition at line 295 of file SWGRtlSdrSettings.cpp.

References low_sample_rate, and m_low_sample_rate_isSet.

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

+ Here is the caller graph for this function:

◆ setNoModMode()

void SWGSDRangel::SWGRtlSdrSettings::setNoModMode ( qint32  no_mod_mode)

Definition at line 385 of file SWGRtlSdrSettings.cpp.

References m_no_mod_mode_isSet, and no_mod_mode.

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

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

◆ setOffsetTuning()

void SWGSDRangel::SWGRtlSdrSettings::setOffsetTuning ( qint32  offset_tuning)

Definition at line 395 of file SWGRtlSdrSettings.cpp.

References m_offset_tuning_isSet, and offset_tuning.

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

+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 455 of file SWGRtlSdrSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by RTLSDRInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

Definition at line 475 of file SWGRtlSdrSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by RTLSDRInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 465 of file SWGRtlSdrSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by RTLSDRInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setRfBandwidth()

void SWGSDRangel::SWGRtlSdrSettings::setRfBandwidth ( qint32  rf_bandwidth)

Definition at line 425 of file SWGRtlSdrSettings.cpp.

References m_rf_bandwidth_isSet, and rf_bandwidth.

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

+ Here is the caller graph for this function:

◆ setTransverterDeltaFrequency()

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

◆ setTransverterMode()

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

Definition at line 405 of file SWGRtlSdrSettings.cpp.

References m_transverter_mode_isSet, and transverter_mode.

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

+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 445 of file SWGRtlSdrSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by RTLSDRInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ agc

qint32 SWGSDRangel::SWGRtlSdrSettings::agc
private

◆ center_frequency

qint64 SWGSDRangel::SWGRtlSdrSettings::center_frequency
private

◆ dc_block

qint32 SWGSDRangel::SWGRtlSdrSettings::dc_block
private

◆ dev_sample_rate

qint32 SWGSDRangel::SWGRtlSdrSettings::dev_sample_rate
private

◆ fc_pos

qint32 SWGSDRangel::SWGRtlSdrSettings::fc_pos
private

◆ file_record_name

QString* SWGSDRangel::SWGRtlSdrSettings::file_record_name
private

◆ gain

qint32 SWGSDRangel::SWGRtlSdrSettings::gain
private

◆ iq_imbalance

qint32 SWGSDRangel::SWGRtlSdrSettings::iq_imbalance
private

◆ lo_ppm_correction

qint32 SWGSDRangel::SWGRtlSdrSettings::lo_ppm_correction
private

◆ log2_decim

qint32 SWGSDRangel::SWGRtlSdrSettings::log2_decim
private

◆ low_sample_rate

qint32 SWGSDRangel::SWGRtlSdrSettings::low_sample_rate
private

◆ m_agc_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_agc_isSet
private

Definition at line 137 of file SWGRtlSdrSettings.h.

Referenced by asJsonObject(), init(), isSet(), setAgc(), and SWGRtlSdrSettings().

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_center_frequency_isSet
private

Definition at line 116 of file SWGRtlSdrSettings.h.

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

◆ m_dc_block_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_dc_block_isSet
private

Definition at line 131 of file SWGRtlSdrSettings.h.

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

◆ m_dev_sample_rate_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_dev_sample_rate_isSet
private

Definition at line 110 of file SWGRtlSdrSettings.h.

Referenced by asJsonObject(), init(), isSet(), setDevSampleRate(), and SWGRtlSdrSettings().

◆ m_fc_pos_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_fc_pos_isSet
private

Definition at line 128 of file SWGRtlSdrSettings.h.

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

◆ m_file_record_name_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_file_record_name_isSet
private

Definition at line 155 of file SWGRtlSdrSettings.h.

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

◆ m_gain_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_gain_isSet
private

Definition at line 119 of file SWGRtlSdrSettings.h.

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

◆ m_iq_imbalance_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_iq_imbalance_isSet
private

Definition at line 134 of file SWGRtlSdrSettings.h.

Referenced by asJsonObject(), init(), isSet(), setIqImbalance(), and SWGRtlSdrSettings().

◆ m_lo_ppm_correction_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_lo_ppm_correction_isSet
private

Definition at line 122 of file SWGRtlSdrSettings.h.

Referenced by asJsonObject(), init(), isSet(), setLoPpmCorrection(), and SWGRtlSdrSettings().

◆ m_log2_decim_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_log2_decim_isSet
private

Definition at line 125 of file SWGRtlSdrSettings.h.

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

◆ m_low_sample_rate_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_low_sample_rate_isSet
private

Definition at line 113 of file SWGRtlSdrSettings.h.

Referenced by asJsonObject(), init(), isSet(), setLowSampleRate(), and SWGRtlSdrSettings().

◆ m_no_mod_mode_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_no_mod_mode_isSet
private

Definition at line 140 of file SWGRtlSdrSettings.h.

Referenced by asJsonObject(), init(), isSet(), setNoModMode(), and SWGRtlSdrSettings().

◆ m_offset_tuning_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_offset_tuning_isSet
private

Definition at line 143 of file SWGRtlSdrSettings.h.

Referenced by asJsonObject(), init(), isSet(), setOffsetTuning(), and SWGRtlSdrSettings().

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_reverse_api_address_isSet
private

Definition at line 161 of file SWGRtlSdrSettings.h.

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

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_reverse_api_port_isSet
private

Definition at line 164 of file SWGRtlSdrSettings.h.

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

◆ m_rf_bandwidth_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_rf_bandwidth_isSet
private

Definition at line 152 of file SWGRtlSdrSettings.h.

Referenced by asJsonObject(), init(), isSet(), setRfBandwidth(), and SWGRtlSdrSettings().

◆ m_transverter_delta_frequency_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_transverter_delta_frequency_isSet
private

◆ m_transverter_mode_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_transverter_mode_isSet
private

Definition at line 146 of file SWGRtlSdrSettings.h.

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

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGRtlSdrSettings::m_use_reverse_api_isSet
private

Definition at line 158 of file SWGRtlSdrSettings.h.

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

◆ no_mod_mode

qint32 SWGSDRangel::SWGRtlSdrSettings::no_mod_mode
private

◆ offset_tuning

qint32 SWGSDRangel::SWGRtlSdrSettings::offset_tuning
private

◆ reverse_api_address

QString* SWGSDRangel::SWGRtlSdrSettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGRtlSdrSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGRtlSdrSettings::reverse_api_port
private

◆ rf_bandwidth

qint32 SWGSDRangel::SWGRtlSdrSettings::rf_bandwidth
private

◆ transverter_delta_frequency

qint64 SWGSDRangel::SWGRtlSdrSettings::transverter_delta_frequency
private

◆ transverter_mode

qint32 SWGSDRangel::SWGRtlSdrSettings::transverter_mode
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGRtlSdrSettings::use_reverse_api
private

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