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

#include <SWGPlutoSdrInputSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGPlutoSdrInputSettings:
+ Collaboration diagram for SWGSDRangel::SWGPlutoSdrInputSettings:

Public Member Functions

 SWGPlutoSdrInputSettings ()
 
 SWGPlutoSdrInputSettings (QString *json)
 
virtual ~SWGPlutoSdrInputSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGPlutoSdrInputSettingsfromJson (QString &jsonString) override
 
qint64 getCenterFrequency ()
 
void setCenterFrequency (qint64 center_frequency)
 
qint32 getDevSampleRate ()
 
void setDevSampleRate (qint32 dev_sample_rate)
 
qint32 getLOppmTenths ()
 
void setLOppmTenths (qint32 l_oppm_tenths)
 
qint32 getLpfFirEnable ()
 
void setLpfFirEnable (qint32 lpf_fir_enable)
 
qint32 getLpfFirbw ()
 
void setLpfFirbw (qint32 lpf_firbw)
 
qint32 getLpfFiRlog2Decim ()
 
void setLpfFiRlog2Decim (qint32 lpf_fi_rlog2_decim)
 
qint32 getLpfFirGain ()
 
void setLpfFirGain (qint32 lpf_fir_gain)
 
qint32 getFcPos ()
 
void setFcPos (qint32 fc_pos)
 
qint32 getDcBlock ()
 
void setDcBlock (qint32 dc_block)
 
qint32 getIqCorrection ()
 
void setIqCorrection (qint32 iq_correction)
 
qint32 getHwBbdcBlock ()
 
void setHwBbdcBlock (qint32 hw_bbdc_block)
 
qint32 getHwRfdcBlock ()
 
void setHwRfdcBlock (qint32 hw_rfdc_block)
 
qint32 getHwIqCorrection ()
 
void setHwIqCorrection (qint32 hw_iq_correction)
 
qint32 getLog2Decim ()
 
void setLog2Decim (qint32 log2_decim)
 
qint32 getLpfBw ()
 
void setLpfBw (qint32 lpf_bw)
 
qint32 getGain ()
 
void setGain (qint32 gain)
 
qint32 getAntennaPath ()
 
void setAntennaPath (qint32 antenna_path)
 
qint32 getGainMode ()
 
void setGainMode (qint32 gain_mode)
 
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 dev_sample_rate
 
bool m_dev_sample_rate_isSet
 
qint32 l_oppm_tenths
 
bool m_l_oppm_tenths_isSet
 
qint32 lpf_fir_enable
 
bool m_lpf_fir_enable_isSet
 
qint32 lpf_firbw
 
bool m_lpf_firbw_isSet
 
qint32 lpf_fi_rlog2_decim
 
bool m_lpf_fi_rlog2_decim_isSet
 
qint32 lpf_fir_gain
 
bool m_lpf_fir_gain_isSet
 
qint32 fc_pos
 
bool m_fc_pos_isSet
 
qint32 dc_block
 
bool m_dc_block_isSet
 
qint32 iq_correction
 
bool m_iq_correction_isSet
 
qint32 hw_bbdc_block
 
bool m_hw_bbdc_block_isSet
 
qint32 hw_rfdc_block
 
bool m_hw_rfdc_block_isSet
 
qint32 hw_iq_correction
 
bool m_hw_iq_correction_isSet
 
qint32 log2_decim
 
bool m_log2_decim_isSet
 
qint32 lpf_bw
 
bool m_lpf_bw_isSet
 
qint32 gain
 
bool m_gain_isSet
 
qint32 antenna_path
 
bool m_antenna_path_isSet
 
qint32 gain_mode
 
bool m_gain_mode_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 SWGPlutoSdrInputSettings.h.

Constructor & Destructor Documentation

◆ SWGPlutoSdrInputSettings() [1/2]

SWGSDRangel::SWGPlutoSdrInputSettings::SWGPlutoSdrInputSettings ( )

Definition at line 30 of file SWGPlutoSdrInputSettings.cpp.

References antenna_path, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, gain, gain_mode, hw_bbdc_block, hw_iq_correction, hw_rfdc_block, iq_correction, l_oppm_tenths, log2_decim, lpf_bw, lpf_fi_rlog2_decim, lpf_fir_enable, lpf_fir_gain, lpf_firbw, m_antenna_path_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_gain_mode_isSet, m_hw_bbdc_block_isSet, m_hw_iq_correction_isSet, m_hw_rfdc_block_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_decim_isSet, m_lpf_bw_isSet, m_lpf_fi_rlog2_decim_isSet, m_lpf_fir_enable_isSet, m_lpf_fir_gain_isSet, m_lpf_firbw_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, reverse_api_address, reverse_api_device_index, reverse_api_port, transverter_delta_frequency, transverter_mode, and use_reverse_api.

30  {
31  center_frequency = 0L;
33  dev_sample_rate = 0;
35  l_oppm_tenths = 0;
36  m_l_oppm_tenths_isSet = false;
37  lpf_fir_enable = 0;
38  m_lpf_fir_enable_isSet = false;
39  lpf_firbw = 0;
40  m_lpf_firbw_isSet = false;
43  lpf_fir_gain = 0;
44  m_lpf_fir_gain_isSet = false;
45  fc_pos = 0;
46  m_fc_pos_isSet = false;
47  dc_block = 0;
48  m_dc_block_isSet = false;
49  iq_correction = 0;
50  m_iq_correction_isSet = false;
51  hw_bbdc_block = 0;
52  m_hw_bbdc_block_isSet = false;
53  hw_rfdc_block = 0;
54  m_hw_rfdc_block_isSet = false;
55  hw_iq_correction = 0;
57  log2_decim = 0;
58  m_log2_decim_isSet = false;
59  lpf_bw = 0;
60  m_lpf_bw_isSet = false;
61  gain = 0;
62  m_gain_isSet = false;
63  antenna_path = 0;
64  m_antenna_path_isSet = false;
65  gain_mode = 0;
66  m_gain_mode_isSet = false;
67  transverter_mode = 0;
71  file_record_name = nullptr;
73  use_reverse_api = 0;
75  reverse_api_address = nullptr;
77  reverse_api_port = 0;
81 }

◆ SWGPlutoSdrInputSettings() [2/2]

SWGSDRangel::SWGPlutoSdrInputSettings::SWGPlutoSdrInputSettings ( QString *  json)

Definition at line 25 of file SWGPlutoSdrInputSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGPlutoSdrInputSettings()

SWGSDRangel::SWGPlutoSdrInputSettings::~SWGPlutoSdrInputSettings ( )
virtual

Definition at line 83 of file SWGPlutoSdrInputSettings.cpp.

References cleanup().

+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGPlutoSdrInputSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 238 of file SWGPlutoSdrInputSettings.cpp.

References asJsonObject().

239 {
240  QJsonObject* obj = this->asJsonObject();
241 
242  QJsonDocument doc(*obj);
243  QByteArray bytes = doc.toJson();
244  delete obj;
245  return QString(bytes);
246 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 249 of file SWGPlutoSdrInputSettings.cpp.

References antenna_path, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, gain, gain_mode, hw_bbdc_block, hw_iq_correction, hw_rfdc_block, iq_correction, l_oppm_tenths, log2_decim, lpf_bw, lpf_fi_rlog2_decim, lpf_fir_enable, lpf_fir_gain, lpf_firbw, m_antenna_path_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_gain_isSet, m_gain_mode_isSet, m_hw_bbdc_block_isSet, m_hw_iq_correction_isSet, m_hw_rfdc_block_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_decim_isSet, m_lpf_bw_isSet, m_lpf_fi_rlog2_decim_isSet, m_lpf_fir_enable_isSet, m_lpf_fir_gain_isSet, m_lpf_firbw_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, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::toJsonValue(), transverter_delta_frequency, transverter_mode, and use_reverse_api.

Referenced by asJson().

249  {
250  QJsonObject* obj = new QJsonObject();
252  obj->insert("centerFrequency", QJsonValue(center_frequency));
253  }
255  obj->insert("devSampleRate", QJsonValue(dev_sample_rate));
256  }
258  obj->insert("LOppmTenths", QJsonValue(l_oppm_tenths));
259  }
261  obj->insert("lpfFIREnable", QJsonValue(lpf_fir_enable));
262  }
263  if(m_lpf_firbw_isSet){
264  obj->insert("lpfFIRBW", QJsonValue(lpf_firbw));
265  }
267  obj->insert("lpfFIRlog2Decim", QJsonValue(lpf_fi_rlog2_decim));
268  }
270  obj->insert("lpfFIRGain", QJsonValue(lpf_fir_gain));
271  }
272  if(m_fc_pos_isSet){
273  obj->insert("fcPos", QJsonValue(fc_pos));
274  }
275  if(m_dc_block_isSet){
276  obj->insert("dcBlock", QJsonValue(dc_block));
277  }
279  obj->insert("iqCorrection", QJsonValue(iq_correction));
280  }
282  obj->insert("hwBBDCBlock", QJsonValue(hw_bbdc_block));
283  }
285  obj->insert("hwRFDCBlock", QJsonValue(hw_rfdc_block));
286  }
288  obj->insert("hwIQCorrection", QJsonValue(hw_iq_correction));
289  }
290  if(m_log2_decim_isSet){
291  obj->insert("log2Decim", QJsonValue(log2_decim));
292  }
293  if(m_lpf_bw_isSet){
294  obj->insert("lpfBW", QJsonValue(lpf_bw));
295  }
296  if(m_gain_isSet){
297  obj->insert("gain", QJsonValue(gain));
298  }
300  obj->insert("antennaPath", QJsonValue(antenna_path));
301  }
302  if(m_gain_mode_isSet){
303  obj->insert("gainMode", QJsonValue(gain_mode));
304  }
306  obj->insert("transverterMode", QJsonValue(transverter_mode));
307  }
309  obj->insert("transverterDeltaFrequency", QJsonValue(transverter_delta_frequency));
310  }
311  if(file_record_name != nullptr && *file_record_name != QString("")){
312  toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
313  }
315  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
316  }
317  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
318  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
319  }
321  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
322  }
324  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
325  }
326 
327  return obj;
328 }
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::SWGPlutoSdrInputSettings::cleanup ( )

Definition at line 142 of file SWGPlutoSdrInputSettings.cpp.

References file_record_name, and reverse_api_address.

Referenced by ~SWGPlutoSdrInputSettings().

142  {
143 
144 
145 
146 
147 
148 
149 
150 
151 
152 
153 
154 
155 
156 
157 
158 
159 
160 
161 
162 
163  if(file_record_name != nullptr) {
164  delete file_record_name;
165  }
166 
167  if(reverse_api_address != nullptr) {
168  delete reverse_api_address;
169  }
170 
171 
172 }
+ Here is the caller graph for this function:

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 175 of file SWGPlutoSdrInputSettings.cpp.

References fromJsonObject().

Referenced by SWGPlutoSdrInputSettings().

175  {
176  QByteArray array (json.toStdString().c_str());
177  QJsonDocument doc = QJsonDocument::fromJson(array);
178  QJsonObject jsonObject = doc.object();
179  this->fromJsonObject(jsonObject);
180  return this;
181 }
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::SWGPlutoSdrInputSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 184 of file SWGPlutoSdrInputSettings.cpp.

References antenna_path, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, gain, gain_mode, hw_bbdc_block, hw_iq_correction, hw_rfdc_block, iq_correction, l_oppm_tenths, log2_decim, lpf_bw, lpf_fi_rlog2_decim, lpf_fir_enable, lpf_fir_gain, lpf_firbw, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::setValue(), transverter_delta_frequency, transverter_mode, and use_reverse_api.

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

184  {
185  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint64", "");
186 
187  ::SWGSDRangel::setValue(&dev_sample_rate, pJson["devSampleRate"], "qint32", "");
188 
189  ::SWGSDRangel::setValue(&l_oppm_tenths, pJson["LOppmTenths"], "qint32", "");
190 
191  ::SWGSDRangel::setValue(&lpf_fir_enable, pJson["lpfFIREnable"], "qint32", "");
192 
193  ::SWGSDRangel::setValue(&lpf_firbw, pJson["lpfFIRBW"], "qint32", "");
194 
195  ::SWGSDRangel::setValue(&lpf_fi_rlog2_decim, pJson["lpfFIRlog2Decim"], "qint32", "");
196 
197  ::SWGSDRangel::setValue(&lpf_fir_gain, pJson["lpfFIRGain"], "qint32", "");
198 
199  ::SWGSDRangel::setValue(&fc_pos, pJson["fcPos"], "qint32", "");
200 
201  ::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", "");
202 
203  ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
204 
205  ::SWGSDRangel::setValue(&hw_bbdc_block, pJson["hwBBDCBlock"], "qint32", "");
206 
207  ::SWGSDRangel::setValue(&hw_rfdc_block, pJson["hwRFDCBlock"], "qint32", "");
208 
209  ::SWGSDRangel::setValue(&hw_iq_correction, pJson["hwIQCorrection"], "qint32", "");
210 
211  ::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", "");
212 
213  ::SWGSDRangel::setValue(&lpf_bw, pJson["lpfBW"], "qint32", "");
214 
215  ::SWGSDRangel::setValue(&gain, pJson["gain"], "qint32", "");
216 
217  ::SWGSDRangel::setValue(&antenna_path, pJson["antennaPath"], "qint32", "");
218 
219  ::SWGSDRangel::setValue(&gain_mode, pJson["gainMode"], "qint32", "");
220 
221  ::SWGSDRangel::setValue(&transverter_mode, pJson["transverterMode"], "qint32", "");
222 
223  ::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", "");
224 
225  ::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
226 
227  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
228 
229  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
230 
231  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
232 
233  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
234 
235 }
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAntennaPath()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getAntennaPath ( )

Definition at line 491 of file SWGPlutoSdrInputSettings.cpp.

References antenna_path.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

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

◆ getCenterFrequency()

qint64 SWGSDRangel::SWGPlutoSdrInputSettings::getCenterFrequency ( )

Definition at line 331 of file SWGPlutoSdrInputSettings.cpp.

References center_frequency.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getDcBlock()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getDcBlock ( )

Definition at line 411 of file SWGPlutoSdrInputSettings.cpp.

References dc_block.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

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

◆ getDevSampleRate()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getDevSampleRate ( )

Definition at line 341 of file SWGPlutoSdrInputSettings.cpp.

References dev_sample_rate.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getFcPos()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getFcPos ( )

Definition at line 401 of file SWGPlutoSdrInputSettings.cpp.

References fc_pos.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

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

◆ getFileRecordName()

QString * SWGSDRangel::SWGPlutoSdrInputSettings::getFileRecordName ( )

Definition at line 531 of file SWGPlutoSdrInputSettings.cpp.

References file_record_name.

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

531  {
532  return file_record_name;
533 }
+ Here is the caller graph for this function:

◆ getGain()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getGain ( )

Definition at line 481 of file SWGPlutoSdrInputSettings.cpp.

References gain.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

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

◆ getGainMode()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getGainMode ( )

Definition at line 501 of file SWGPlutoSdrInputSettings.cpp.

References gain_mode.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

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

◆ getHwBbdcBlock()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getHwBbdcBlock ( )

Definition at line 431 of file SWGPlutoSdrInputSettings.cpp.

References hw_bbdc_block.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getHwIqCorrection()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getHwIqCorrection ( )

Definition at line 451 of file SWGPlutoSdrInputSettings.cpp.

References hw_iq_correction.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getHwRfdcBlock()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getHwRfdcBlock ( )

Definition at line 441 of file SWGPlutoSdrInputSettings.cpp.

References hw_rfdc_block.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getIqCorrection()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getIqCorrection ( )

Definition at line 421 of file SWGPlutoSdrInputSettings.cpp.

References iq_correction.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getLog2Decim()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getLog2Decim ( )

Definition at line 461 of file SWGPlutoSdrInputSettings.cpp.

References log2_decim.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

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

◆ getLOppmTenths()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getLOppmTenths ( )

Definition at line 351 of file SWGPlutoSdrInputSettings.cpp.

References l_oppm_tenths.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getLpfBw()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getLpfBw ( )

Definition at line 471 of file SWGPlutoSdrInputSettings.cpp.

References lpf_bw.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

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

◆ getLpfFirbw()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getLpfFirbw ( )

Definition at line 371 of file SWGPlutoSdrInputSettings.cpp.

References lpf_firbw.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

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

◆ getLpfFirEnable()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getLpfFirEnable ( )

Definition at line 361 of file SWGPlutoSdrInputSettings.cpp.

References lpf_fir_enable.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getLpfFirGain()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getLpfFirGain ( )

Definition at line 391 of file SWGPlutoSdrInputSettings.cpp.

References lpf_fir_gain.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

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

◆ getLpfFiRlog2Decim()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getLpfFiRlog2Decim ( )

Definition at line 381 of file SWGPlutoSdrInputSettings.cpp.

References lpf_fi_rlog2_decim.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGPlutoSdrInputSettings::getReverseApiAddress ( )

Definition at line 551 of file SWGPlutoSdrInputSettings.cpp.

References reverse_api_address.

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

551  {
552  return reverse_api_address;
553 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getReverseApiDeviceIndex ( )

Definition at line 571 of file SWGPlutoSdrInputSettings.cpp.

References reverse_api_device_index.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getReverseApiPort ( )

Definition at line 561 of file SWGPlutoSdrInputSettings.cpp.

References reverse_api_port.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getTransverterDeltaFrequency()

qint64 SWGSDRangel::SWGPlutoSdrInputSettings::getTransverterDeltaFrequency ( )

Definition at line 521 of file SWGPlutoSdrInputSettings.cpp.

References transverter_delta_frequency.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getTransverterMode()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getTransverterMode ( )

Definition at line 511 of file SWGPlutoSdrInputSettings.cpp.

References transverter_mode.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::getUseReverseApi ( )

Definition at line 541 of file SWGPlutoSdrInputSettings.cpp.

References use_reverse_api.

Referenced by PlutoSDRInput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGPlutoSdrInputSettings::init ( )

Definition at line 88 of file SWGPlutoSdrInputSettings.cpp.

References antenna_path, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, gain, gain_mode, hw_bbdc_block, hw_iq_correction, hw_rfdc_block, iq_correction, l_oppm_tenths, log2_decim, lpf_bw, lpf_fi_rlog2_decim, lpf_fir_enable, lpf_fir_gain, lpf_firbw, m_antenna_path_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_gain_mode_isSet, m_hw_bbdc_block_isSet, m_hw_iq_correction_isSet, m_hw_rfdc_block_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_decim_isSet, m_lpf_bw_isSet, m_lpf_fi_rlog2_decim_isSet, m_lpf_fir_enable_isSet, m_lpf_fir_gain_isSet, m_lpf_firbw_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, reverse_api_address, reverse_api_device_index, reverse_api_port, transverter_delta_frequency, transverter_mode, and use_reverse_api.

Referenced by SWGPlutoSdrInputSettings(), and PlutoSDRInput::webapiSettingsGet().

88  {
89  center_frequency = 0L;
91  dev_sample_rate = 0;
93  l_oppm_tenths = 0;
94  m_l_oppm_tenths_isSet = false;
95  lpf_fir_enable = 0;
96  m_lpf_fir_enable_isSet = false;
97  lpf_firbw = 0;
98  m_lpf_firbw_isSet = false;
101  lpf_fir_gain = 0;
102  m_lpf_fir_gain_isSet = false;
103  fc_pos = 0;
104  m_fc_pos_isSet = false;
105  dc_block = 0;
106  m_dc_block_isSet = false;
107  iq_correction = 0;
108  m_iq_correction_isSet = false;
109  hw_bbdc_block = 0;
110  m_hw_bbdc_block_isSet = false;
111  hw_rfdc_block = 0;
112  m_hw_rfdc_block_isSet = false;
113  hw_iq_correction = 0;
114  m_hw_iq_correction_isSet = false;
115  log2_decim = 0;
116  m_log2_decim_isSet = false;
117  lpf_bw = 0;
118  m_lpf_bw_isSet = false;
119  gain = 0;
120  m_gain_isSet = false;
121  antenna_path = 0;
122  m_antenna_path_isSet = false;
123  gain_mode = 0;
124  m_gain_mode_isSet = false;
125  transverter_mode = 0;
126  m_transverter_mode_isSet = false;
129  file_record_name = new QString("");
130  m_file_record_name_isSet = false;
131  use_reverse_api = 0;
132  m_use_reverse_api_isSet = false;
133  reverse_api_address = new QString("");
135  reverse_api_port = 0;
136  m_reverse_api_port_isSet = false;
139 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGPlutoSdrInputSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 582 of file SWGPlutoSdrInputSettings.cpp.

References file_record_name, m_antenna_path_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_gain_isSet, m_gain_mode_isSet, m_hw_bbdc_block_isSet, m_hw_iq_correction_isSet, m_hw_rfdc_block_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_log2_decim_isSet, m_lpf_bw_isSet, m_lpf_fi_rlog2_decim_isSet, m_lpf_fir_enable_isSet, m_lpf_fir_gain_isSet, m_lpf_firbw_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, and reverse_api_address.

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

582  {
583  bool isObjectUpdated = false;
584  do{
585  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
586  if(m_dev_sample_rate_isSet){ isObjectUpdated = true; break;}
587  if(m_l_oppm_tenths_isSet){ isObjectUpdated = true; break;}
588  if(m_lpf_fir_enable_isSet){ isObjectUpdated = true; break;}
589  if(m_lpf_firbw_isSet){ isObjectUpdated = true; break;}
590  if(m_lpf_fi_rlog2_decim_isSet){ isObjectUpdated = true; break;}
591  if(m_lpf_fir_gain_isSet){ isObjectUpdated = true; break;}
592  if(m_fc_pos_isSet){ isObjectUpdated = true; break;}
593  if(m_dc_block_isSet){ isObjectUpdated = true; break;}
594  if(m_iq_correction_isSet){ isObjectUpdated = true; break;}
595  if(m_hw_bbdc_block_isSet){ isObjectUpdated = true; break;}
596  if(m_hw_rfdc_block_isSet){ isObjectUpdated = true; break;}
597  if(m_hw_iq_correction_isSet){ isObjectUpdated = true; break;}
598  if(m_log2_decim_isSet){ isObjectUpdated = true; break;}
599  if(m_lpf_bw_isSet){ isObjectUpdated = true; break;}
600  if(m_gain_isSet){ isObjectUpdated = true; break;}
601  if(m_antenna_path_isSet){ isObjectUpdated = true; break;}
602  if(m_gain_mode_isSet){ isObjectUpdated = true; break;}
603  if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
604  if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
605  if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
606  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
607  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
608  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
609  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
610  }while(false);
611  return isObjectUpdated;
612 }
+ Here is the caller graph for this function:

◆ setAntennaPath()

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

◆ setCenterFrequency()

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

◆ setDcBlock()

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

Definition at line 415 of file SWGPlutoSdrInputSettings.cpp.

References dc_block, and m_dc_block_isSet.

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

+ Here is the caller graph for this function:

◆ setDevSampleRate()

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

◆ setFcPos()

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

Definition at line 405 of file SWGPlutoSdrInputSettings.cpp.

References fc_pos, and m_fc_pos_isSet.

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

+ Here is the caller graph for this function:

◆ setFileRecordName()

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

◆ setGain()

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

Definition at line 485 of file SWGPlutoSdrInputSettings.cpp.

References gain, and m_gain_isSet.

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

+ Here is the caller graph for this function:

◆ setGainMode()

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

Definition at line 505 of file SWGPlutoSdrInputSettings.cpp.

References gain_mode, and m_gain_mode_isSet.

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

+ Here is the caller graph for this function:

◆ setHwBbdcBlock()

void SWGSDRangel::SWGPlutoSdrInputSettings::setHwBbdcBlock ( qint32  hw_bbdc_block)

◆ setHwIqCorrection()

void SWGSDRangel::SWGPlutoSdrInputSettings::setHwIqCorrection ( qint32  hw_iq_correction)

◆ setHwRfdcBlock()

void SWGSDRangel::SWGPlutoSdrInputSettings::setHwRfdcBlock ( qint32  hw_rfdc_block)

◆ setIqCorrection()

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

◆ setLog2Decim()

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

Definition at line 465 of file SWGPlutoSdrInputSettings.cpp.

References log2_decim, and m_log2_decim_isSet.

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

+ Here is the caller graph for this function:

◆ setLOppmTenths()

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

◆ setLpfBw()

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

Definition at line 475 of file SWGPlutoSdrInputSettings.cpp.

References lpf_bw, and m_lpf_bw_isSet.

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

+ Here is the caller graph for this function:

◆ setLpfFirbw()

void SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFirbw ( qint32  lpf_firbw)

Definition at line 375 of file SWGPlutoSdrInputSettings.cpp.

References lpf_firbw, and m_lpf_firbw_isSet.

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

+ Here is the caller graph for this function:

◆ setLpfFirEnable()

void SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFirEnable ( qint32  lpf_fir_enable)

◆ setLpfFirGain()

void SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFirGain ( qint32  lpf_fir_gain)

◆ setLpfFiRlog2Decim()

void SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFiRlog2Decim ( qint32  lpf_fi_rlog2_decim)

◆ setReverseApiAddress()

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

Definition at line 555 of file SWGPlutoSdrInputSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by PlutoSDRInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

◆ setReverseApiPort()

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

Definition at line 565 of file SWGPlutoSdrInputSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by PlutoSDRInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setTransverterDeltaFrequency()

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

◆ setTransverterMode()

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

◆ setUseReverseApi()

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

Definition at line 545 of file SWGPlutoSdrInputSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by PlutoSDRInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ antenna_path

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::antenna_path
private

◆ center_frequency

qint64 SWGSDRangel::SWGPlutoSdrInputSettings::center_frequency
private

◆ dc_block

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::dc_block
private

◆ dev_sample_rate

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::dev_sample_rate
private

◆ fc_pos

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::fc_pos
private

◆ file_record_name

QString* SWGSDRangel::SWGPlutoSdrInputSettings::file_record_name
private

◆ gain

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::gain
private

◆ gain_mode

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::gain_mode
private

◆ hw_bbdc_block

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::hw_bbdc_block
private

◆ hw_iq_correction

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::hw_iq_correction
private

◆ hw_rfdc_block

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::hw_rfdc_block
private

◆ iq_correction

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::iq_correction
private

◆ l_oppm_tenths

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::l_oppm_tenths
private

◆ log2_decim

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::log2_decim
private

◆ lpf_bw

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::lpf_bw
private

◆ lpf_fi_rlog2_decim

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::lpf_fi_rlog2_decim
private

◆ lpf_fir_enable

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::lpf_fir_enable
private

◆ lpf_fir_gain

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::lpf_fir_gain
private

◆ lpf_firbw

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::lpf_firbw
private

◆ m_antenna_path_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_antenna_path_isSet
private

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_center_frequency_isSet
private

◆ m_dc_block_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_dc_block_isSet
private

◆ m_dev_sample_rate_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_dev_sample_rate_isSet
private

◆ m_fc_pos_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_fc_pos_isSet
private

◆ m_file_record_name_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_file_record_name_isSet
private

Definition at line 185 of file SWGPlutoSdrInputSettings.h.

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

◆ m_gain_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_gain_isSet
private

◆ m_gain_mode_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_gain_mode_isSet
private

◆ m_hw_bbdc_block_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_hw_bbdc_block_isSet
private

◆ m_hw_iq_correction_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_hw_iq_correction_isSet
private

◆ m_hw_rfdc_block_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_hw_rfdc_block_isSet
private

◆ m_iq_correction_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_iq_correction_isSet
private

◆ m_l_oppm_tenths_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_l_oppm_tenths_isSet
private

◆ m_log2_decim_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_log2_decim_isSet
private

◆ m_lpf_bw_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_lpf_bw_isSet
private

◆ m_lpf_fi_rlog2_decim_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_lpf_fi_rlog2_decim_isSet
private

◆ m_lpf_fir_enable_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_lpf_fir_enable_isSet
private

◆ m_lpf_fir_gain_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_lpf_fir_gain_isSet
private

◆ m_lpf_firbw_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_lpf_firbw_isSet
private

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_reverse_api_address_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_reverse_api_port_isSet
private

◆ m_transverter_delta_frequency_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_transverter_delta_frequency_isSet
private

◆ m_transverter_mode_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_transverter_mode_isSet
private

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGPlutoSdrInputSettings::m_use_reverse_api_isSet
private

◆ reverse_api_address

QString* SWGSDRangel::SWGPlutoSdrInputSettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::reverse_api_port
private

◆ transverter_delta_frequency

qint64 SWGSDRangel::SWGPlutoSdrInputSettings::transverter_delta_frequency
private

◆ transverter_mode

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::transverter_mode
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGPlutoSdrInputSettings::use_reverse_api
private

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