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

#include <SWGBladeRF1InputSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGBladeRF1InputSettings:
+ Collaboration diagram for SWGSDRangel::SWGBladeRF1InputSettings:

Public Member Functions

 SWGBladeRF1InputSettings ()
 
 SWGBladeRF1InputSettings (QString *json)
 
virtual ~SWGBladeRF1InputSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGBladeRF1InputSettingsfromJson (QString &jsonString) override
 
qint64 getCenterFrequency ()
 
void setCenterFrequency (qint64 center_frequency)
 
qint32 getDevSampleRate ()
 
void setDevSampleRate (qint32 dev_sample_rate)
 
qint32 getLnaGain ()
 
void setLnaGain (qint32 lna_gain)
 
qint32 getVga1 ()
 
void setVga1 (qint32 vga1)
 
qint32 getVga2 ()
 
void setVga2 (qint32 vga2)
 
qint32 getBandwidth ()
 
void setBandwidth (qint32 bandwidth)
 
qint32 getLog2Decim ()
 
void setLog2Decim (qint32 log2_decim)
 
qint32 getFcPos ()
 
void setFcPos (qint32 fc_pos)
 
qint32 getXb200 ()
 
void setXb200 (qint32 xb200)
 
qint32 getXb200Path ()
 
void setXb200Path (qint32 xb200_path)
 
qint32 getXb200Filter ()
 
void setXb200Filter (qint32 xb200_filter)
 
qint32 getDcBlock ()
 
void setDcBlock (qint32 dc_block)
 
qint32 getIqCorrection ()
 
void setIqCorrection (qint32 iq_correction)
 
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 lna_gain
 
bool m_lna_gain_isSet
 
qint32 vga1
 
bool m_vga1_isSet
 
qint32 vga2
 
bool m_vga2_isSet
 
qint32 bandwidth
 
bool m_bandwidth_isSet
 
qint32 log2_decim
 
bool m_log2_decim_isSet
 
qint32 fc_pos
 
bool m_fc_pos_isSet
 
qint32 xb200
 
bool m_xb200_isSet
 
qint32 xb200_path
 
bool m_xb200_path_isSet
 
qint32 xb200_filter
 
bool m_xb200_filter_isSet
 
qint32 dc_block
 
bool m_dc_block_isSet
 
qint32 iq_correction
 
bool m_iq_correction_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 SWGBladeRF1InputSettings.h.

Constructor & Destructor Documentation

◆ SWGBladeRF1InputSettings() [1/2]

SWGSDRangel::SWGBladeRF1InputSettings::SWGBladeRF1InputSettings ( )

Definition at line 30 of file SWGBladeRF1InputSettings.cpp.

References bandwidth, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, iq_correction, lna_gain, log2_decim, m_bandwidth_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_iq_correction_isSet, m_lna_gain_isSet, m_log2_decim_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_use_reverse_api_isSet, m_vga1_isSet, m_vga2_isSet, m_xb200_filter_isSet, m_xb200_isSet, m_xb200_path_isSet, reverse_api_address, reverse_api_device_index, reverse_api_port, use_reverse_api, vga1, vga2, xb200, xb200_filter, and xb200_path.

30  {
31  center_frequency = 0L;
33  dev_sample_rate = 0;
35  lna_gain = 0;
36  m_lna_gain_isSet = false;
37  vga1 = 0;
38  m_vga1_isSet = false;
39  vga2 = 0;
40  m_vga2_isSet = false;
41  bandwidth = 0;
42  m_bandwidth_isSet = false;
43  log2_decim = 0;
44  m_log2_decim_isSet = false;
45  fc_pos = 0;
46  m_fc_pos_isSet = false;
47  xb200 = 0;
48  m_xb200_isSet = false;
49  xb200_path = 0;
50  m_xb200_path_isSet = false;
51  xb200_filter = 0;
52  m_xb200_filter_isSet = false;
53  dc_block = 0;
54  m_dc_block_isSet = false;
55  iq_correction = 0;
56  m_iq_correction_isSet = false;
57  file_record_name = nullptr;
59  use_reverse_api = 0;
61  reverse_api_address = nullptr;
63  reverse_api_port = 0;
67 }

◆ SWGBladeRF1InputSettings() [2/2]

SWGSDRangel::SWGBladeRF1InputSettings::SWGBladeRF1InputSettings ( QString *  json)

Definition at line 25 of file SWGBladeRF1InputSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGBladeRF1InputSettings()

SWGSDRangel::SWGBladeRF1InputSettings::~SWGBladeRF1InputSettings ( )
virtual

Definition at line 69 of file SWGBladeRF1InputSettings.cpp.

References cleanup().

+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGBladeRF1InputSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 189 of file SWGBladeRF1InputSettings.cpp.

References asJsonObject().

190 {
191  QJsonObject* obj = this->asJsonObject();
192 
193  QJsonDocument doc(*obj);
194  QByteArray bytes = doc.toJson();
195  delete obj;
196  return QString(bytes);
197 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 200 of file SWGBladeRF1InputSettings.cpp.

References bandwidth, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, iq_correction, lna_gain, log2_decim, m_bandwidth_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_iq_correction_isSet, m_lna_gain_isSet, m_log2_decim_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_use_reverse_api_isSet, m_vga1_isSet, m_vga2_isSet, m_xb200_filter_isSet, m_xb200_isSet, m_xb200_path_isSet, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::toJsonValue(), use_reverse_api, vga1, vga2, xb200, xb200_filter, and xb200_path.

Referenced by asJson().

200  {
201  QJsonObject* obj = new QJsonObject();
203  obj->insert("centerFrequency", QJsonValue(center_frequency));
204  }
206  obj->insert("devSampleRate", QJsonValue(dev_sample_rate));
207  }
208  if(m_lna_gain_isSet){
209  obj->insert("lnaGain", QJsonValue(lna_gain));
210  }
211  if(m_vga1_isSet){
212  obj->insert("vga1", QJsonValue(vga1));
213  }
214  if(m_vga2_isSet){
215  obj->insert("vga2", QJsonValue(vga2));
216  }
217  if(m_bandwidth_isSet){
218  obj->insert("bandwidth", QJsonValue(bandwidth));
219  }
220  if(m_log2_decim_isSet){
221  obj->insert("log2Decim", QJsonValue(log2_decim));
222  }
223  if(m_fc_pos_isSet){
224  obj->insert("fcPos", QJsonValue(fc_pos));
225  }
226  if(m_xb200_isSet){
227  obj->insert("xb200", QJsonValue(xb200));
228  }
229  if(m_xb200_path_isSet){
230  obj->insert("xb200Path", QJsonValue(xb200_path));
231  }
233  obj->insert("xb200Filter", QJsonValue(xb200_filter));
234  }
235  if(m_dc_block_isSet){
236  obj->insert("dcBlock", QJsonValue(dc_block));
237  }
239  obj->insert("iqCorrection", QJsonValue(iq_correction));
240  }
241  if(file_record_name != nullptr && *file_record_name != QString("")){
242  toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
243  }
245  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
246  }
247  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
248  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
249  }
251  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
252  }
254  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
255  }
256 
257  return obj;
258 }
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::SWGBladeRF1InputSettings::cleanup ( )

Definition at line 114 of file SWGBladeRF1InputSettings.cpp.

References file_record_name, and reverse_api_address.

Referenced by ~SWGBladeRF1InputSettings().

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

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 140 of file SWGBladeRF1InputSettings.cpp.

References fromJsonObject().

Referenced by SWGBladeRF1InputSettings().

140  {
141  QByteArray array (json.toStdString().c_str());
142  QJsonDocument doc = QJsonDocument::fromJson(array);
143  QJsonObject jsonObject = doc.object();
144  this->fromJsonObject(jsonObject);
145  return this;
146 }
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::SWGBladeRF1InputSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 149 of file SWGBladeRF1InputSettings.cpp.

References bandwidth, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, iq_correction, lna_gain, log2_decim, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::setValue(), use_reverse_api, vga1, vga2, xb200, xb200_filter, and xb200_path.

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

149  {
150  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint64", "");
151 
152  ::SWGSDRangel::setValue(&dev_sample_rate, pJson["devSampleRate"], "qint32", "");
153 
154  ::SWGSDRangel::setValue(&lna_gain, pJson["lnaGain"], "qint32", "");
155 
156  ::SWGSDRangel::setValue(&vga1, pJson["vga1"], "qint32", "");
157 
158  ::SWGSDRangel::setValue(&vga2, pJson["vga2"], "qint32", "");
159 
160  ::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", "");
161 
162  ::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", "");
163 
164  ::SWGSDRangel::setValue(&fc_pos, pJson["fcPos"], "qint32", "");
165 
166  ::SWGSDRangel::setValue(&xb200, pJson["xb200"], "qint32", "");
167 
168  ::SWGSDRangel::setValue(&xb200_path, pJson["xb200Path"], "qint32", "");
169 
170  ::SWGSDRangel::setValue(&xb200_filter, pJson["xb200Filter"], "qint32", "");
171 
172  ::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", "");
173 
174  ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
175 
176  ::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
177 
178  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
179 
180  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
181 
182  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
185 
186 }
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:

◆ getBandwidth()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getBandwidth ( )

Definition at line 311 of file SWGBladeRF1InputSettings.cpp.

References bandwidth.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ getCenterFrequency()

qint64 SWGSDRangel::SWGBladeRF1InputSettings::getCenterFrequency ( )

Definition at line 261 of file SWGBladeRF1InputSettings.cpp.

References center_frequency.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getDcBlock()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getDcBlock ( )

Definition at line 371 of file SWGBladeRF1InputSettings.cpp.

References dc_block.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ getDevSampleRate()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getDevSampleRate ( )

Definition at line 271 of file SWGBladeRF1InputSettings.cpp.

References dev_sample_rate.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getFcPos()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getFcPos ( )

Definition at line 331 of file SWGBladeRF1InputSettings.cpp.

References fc_pos.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ getFileRecordName()

QString * SWGSDRangel::SWGBladeRF1InputSettings::getFileRecordName ( )

Definition at line 391 of file SWGBladeRF1InputSettings.cpp.

References file_record_name.

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

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

◆ getIqCorrection()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getIqCorrection ( )

Definition at line 381 of file SWGBladeRF1InputSettings.cpp.

References iq_correction.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getLnaGain()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getLnaGain ( )

Definition at line 281 of file SWGBladeRF1InputSettings.cpp.

References lna_gain.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ getLog2Decim()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getLog2Decim ( )

Definition at line 321 of file SWGBladeRF1InputSettings.cpp.

References log2_decim.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGBladeRF1InputSettings::getReverseApiAddress ( )

Definition at line 411 of file SWGBladeRF1InputSettings.cpp.

References reverse_api_address.

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

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

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getReverseApiDeviceIndex ( )

Definition at line 431 of file SWGBladeRF1InputSettings.cpp.

References reverse_api_device_index.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getReverseApiPort ( )

Definition at line 421 of file SWGBladeRF1InputSettings.cpp.

References reverse_api_port.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getUseReverseApi ( )

Definition at line 401 of file SWGBladeRF1InputSettings.cpp.

References use_reverse_api.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getVga1()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getVga1 ( )

Definition at line 291 of file SWGBladeRF1InputSettings.cpp.

References vga1.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ getVga2()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getVga2 ( )

Definition at line 301 of file SWGBladeRF1InputSettings.cpp.

References vga2.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ getXb200()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getXb200 ( )

Definition at line 341 of file SWGBladeRF1InputSettings.cpp.

References xb200.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ getXb200Filter()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getXb200Filter ( )

Definition at line 361 of file SWGBladeRF1InputSettings.cpp.

References xb200_filter.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ getXb200Path()

qint32 SWGSDRangel::SWGBladeRF1InputSettings::getXb200Path ( )

Definition at line 351 of file SWGBladeRF1InputSettings.cpp.

References xb200_path.

Referenced by Bladerf1Input::webapiSettingsPutPatch().

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

◆ init()

void SWGSDRangel::SWGBladeRF1InputSettings::init ( )

Definition at line 74 of file SWGBladeRF1InputSettings.cpp.

References bandwidth, center_frequency, dc_block, dev_sample_rate, fc_pos, file_record_name, iq_correction, lna_gain, log2_decim, m_bandwidth_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_iq_correction_isSet, m_lna_gain_isSet, m_log2_decim_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_use_reverse_api_isSet, m_vga1_isSet, m_vga2_isSet, m_xb200_filter_isSet, m_xb200_isSet, m_xb200_path_isSet, reverse_api_address, reverse_api_device_index, reverse_api_port, use_reverse_api, vga1, vga2, xb200, xb200_filter, and xb200_path.

Referenced by SWGBladeRF1InputSettings(), and Bladerf1Input::webapiSettingsGet().

74  {
75  center_frequency = 0L;
77  dev_sample_rate = 0;
79  lna_gain = 0;
80  m_lna_gain_isSet = false;
81  vga1 = 0;
82  m_vga1_isSet = false;
83  vga2 = 0;
84  m_vga2_isSet = false;
85  bandwidth = 0;
86  m_bandwidth_isSet = false;
87  log2_decim = 0;
88  m_log2_decim_isSet = false;
89  fc_pos = 0;
90  m_fc_pos_isSet = false;
91  xb200 = 0;
92  m_xb200_isSet = false;
93  xb200_path = 0;
94  m_xb200_path_isSet = false;
95  xb200_filter = 0;
96  m_xb200_filter_isSet = false;
97  dc_block = 0;
98  m_dc_block_isSet = false;
99  iq_correction = 0;
100  m_iq_correction_isSet = false;
101  file_record_name = new QString("");
102  m_file_record_name_isSet = false;
103  use_reverse_api = 0;
104  m_use_reverse_api_isSet = false;
105  reverse_api_address = new QString("");
107  reverse_api_port = 0;
108  m_reverse_api_port_isSet = false;
111 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGBladeRF1InputSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 442 of file SWGBladeRF1InputSettings.cpp.

References file_record_name, m_bandwidth_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_isSet, m_fc_pos_isSet, m_iq_correction_isSet, m_lna_gain_isSet, m_log2_decim_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_use_reverse_api_isSet, m_vga1_isSet, m_vga2_isSet, m_xb200_filter_isSet, m_xb200_isSet, m_xb200_path_isSet, and reverse_api_address.

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

442  {
443  bool isObjectUpdated = false;
444  do{
445  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
446  if(m_dev_sample_rate_isSet){ isObjectUpdated = true; break;}
447  if(m_lna_gain_isSet){ isObjectUpdated = true; break;}
448  if(m_vga1_isSet){ isObjectUpdated = true; break;}
449  if(m_vga2_isSet){ isObjectUpdated = true; break;}
450  if(m_bandwidth_isSet){ isObjectUpdated = true; break;}
451  if(m_log2_decim_isSet){ isObjectUpdated = true; break;}
452  if(m_fc_pos_isSet){ isObjectUpdated = true; break;}
453  if(m_xb200_isSet){ isObjectUpdated = true; break;}
454  if(m_xb200_path_isSet){ isObjectUpdated = true; break;}
455  if(m_xb200_filter_isSet){ isObjectUpdated = true; break;}
456  if(m_dc_block_isSet){ isObjectUpdated = true; break;}
457  if(m_iq_correction_isSet){ isObjectUpdated = true; break;}
458  if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
459  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
460  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
461  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
462  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
463  }while(false);
464  return isObjectUpdated;
465 }
+ Here is the caller graph for this function:

◆ setBandwidth()

void SWGSDRangel::SWGBladeRF1InputSettings::setBandwidth ( qint32  bandwidth)

Definition at line 315 of file SWGBladeRF1InputSettings.cpp.

References bandwidth, and m_bandwidth_isSet.

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

+ Here is the caller graph for this function:

◆ setCenterFrequency()

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

◆ setDcBlock()

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

Definition at line 375 of file SWGBladeRF1InputSettings.cpp.

References dc_block, and m_dc_block_isSet.

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

+ Here is the caller graph for this function:

◆ setDevSampleRate()

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

◆ setFcPos()

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

Definition at line 335 of file SWGBladeRF1InputSettings.cpp.

References fc_pos, and m_fc_pos_isSet.

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

+ Here is the caller graph for this function:

◆ setFileRecordName()

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

◆ setIqCorrection()

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

◆ setLnaGain()

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

Definition at line 285 of file SWGBladeRF1InputSettings.cpp.

References lna_gain, and m_lna_gain_isSet.

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

+ Here is the caller graph for this function:

◆ setLog2Decim()

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

Definition at line 325 of file SWGBladeRF1InputSettings.cpp.

References log2_decim, and m_log2_decim_isSet.

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

+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 415 of file SWGBladeRF1InputSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by Bladerf1Input::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

◆ setReverseApiPort()

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

Definition at line 425 of file SWGBladeRF1InputSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by Bladerf1Input::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 405 of file SWGBladeRF1InputSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by Bladerf1Input::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setVga1()

void SWGSDRangel::SWGBladeRF1InputSettings::setVga1 ( qint32  vga1)

Definition at line 295 of file SWGBladeRF1InputSettings.cpp.

References m_vga1_isSet, and vga1.

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

+ Here is the caller graph for this function:

◆ setVga2()

void SWGSDRangel::SWGBladeRF1InputSettings::setVga2 ( qint32  vga2)

Definition at line 305 of file SWGBladeRF1InputSettings.cpp.

References m_vga2_isSet, and vga2.

Referenced by Bladerf1Input::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setXb200()

void SWGSDRangel::SWGBladeRF1InputSettings::setXb200 ( qint32  xb200)

Definition at line 345 of file SWGBladeRF1InputSettings.cpp.

References m_xb200_isSet, and xb200.

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

+ Here is the caller graph for this function:

◆ setXb200Filter()

void SWGSDRangel::SWGBladeRF1InputSettings::setXb200Filter ( qint32  xb200_filter)

◆ setXb200Path()

void SWGSDRangel::SWGBladeRF1InputSettings::setXb200Path ( qint32  xb200_path)

Definition at line 355 of file SWGBladeRF1InputSettings.cpp.

References m_xb200_path_isSet, and xb200_path.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ bandwidth

qint32 SWGSDRangel::SWGBladeRF1InputSettings::bandwidth
private

◆ center_frequency

qint64 SWGSDRangel::SWGBladeRF1InputSettings::center_frequency
private

◆ dc_block

qint32 SWGSDRangel::SWGBladeRF1InputSettings::dc_block
private

◆ dev_sample_rate

qint32 SWGSDRangel::SWGBladeRF1InputSettings::dev_sample_rate
private

◆ fc_pos

qint32 SWGSDRangel::SWGBladeRF1InputSettings::fc_pos
private

◆ file_record_name

QString* SWGSDRangel::SWGBladeRF1InputSettings::file_record_name
private

◆ iq_correction

qint32 SWGSDRangel::SWGBladeRF1InputSettings::iq_correction
private

◆ lna_gain

qint32 SWGSDRangel::SWGBladeRF1InputSettings::lna_gain
private

◆ log2_decim

qint32 SWGSDRangel::SWGBladeRF1InputSettings::log2_decim
private

◆ m_bandwidth_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_bandwidth_isSet
private

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_center_frequency_isSet
private

◆ m_dc_block_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_dc_block_isSet
private

◆ m_dev_sample_rate_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_dev_sample_rate_isSet
private

◆ m_fc_pos_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_fc_pos_isSet
private

◆ m_file_record_name_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_file_record_name_isSet
private

Definition at line 143 of file SWGBladeRF1InputSettings.h.

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

◆ m_iq_correction_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_iq_correction_isSet
private

◆ m_lna_gain_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_lna_gain_isSet
private

◆ m_log2_decim_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_log2_decim_isSet
private

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_reverse_api_address_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_reverse_api_port_isSet
private

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_use_reverse_api_isSet
private

◆ m_vga1_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_vga1_isSet
private

◆ m_vga2_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_vga2_isSet
private

◆ m_xb200_filter_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_xb200_filter_isSet
private

◆ m_xb200_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_xb200_isSet
private

◆ m_xb200_path_isSet

bool SWGSDRangel::SWGBladeRF1InputSettings::m_xb200_path_isSet
private

◆ reverse_api_address

QString* SWGSDRangel::SWGBladeRF1InputSettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGBladeRF1InputSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGBladeRF1InputSettings::reverse_api_port
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGBladeRF1InputSettings::use_reverse_api
private

◆ vga1

qint32 SWGSDRangel::SWGBladeRF1InputSettings::vga1
private

◆ vga2

qint32 SWGSDRangel::SWGBladeRF1InputSettings::vga2
private

◆ xb200

qint32 SWGSDRangel::SWGBladeRF1InputSettings::xb200
private

◆ xb200_filter

qint32 SWGSDRangel::SWGBladeRF1InputSettings::xb200_filter
private

◆ xb200_path

qint32 SWGSDRangel::SWGBladeRF1InputSettings::xb200_path
private

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