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

#include <SWGLimeSdrOutputSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGLimeSdrOutputSettings:
+ Collaboration diagram for SWGSDRangel::SWGLimeSdrOutputSettings:

Public Member Functions

 SWGLimeSdrOutputSettings ()
 
 SWGLimeSdrOutputSettings (QString *json)
 
virtual ~SWGLimeSdrOutputSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGLimeSdrOutputSettingsfromJson (QString &jsonString) override
 
qint64 getCenterFrequency ()
 
void setCenterFrequency (qint64 center_frequency)
 
qint32 getDevSampleRate ()
 
void setDevSampleRate (qint32 dev_sample_rate)
 
qint32 getLog2HardInterp ()
 
void setLog2HardInterp (qint32 log2_hard_interp)
 
qint32 getLog2SoftInterp ()
 
void setLog2SoftInterp (qint32 log2_soft_interp)
 
qint32 getLpfBw ()
 
void setLpfBw (qint32 lpf_bw)
 
qint32 getLpfFirEnable ()
 
void setLpfFirEnable (qint32 lpf_fir_enable)
 
qint32 getLpfFirbw ()
 
void setLpfFirbw (qint32 lpf_firbw)
 
qint32 getGain ()
 
void setGain (qint32 gain)
 
qint32 getNcoEnable ()
 
void setNcoEnable (qint32 nco_enable)
 
qint32 getNcoFrequency ()
 
void setNcoFrequency (qint32 nco_frequency)
 
qint32 getAntennaPath ()
 
void setAntennaPath (qint32 antenna_path)
 
qint32 getExtClock ()
 
void setExtClock (qint32 ext_clock)
 
qint32 getExtClockFreq ()
 
void setExtClockFreq (qint32 ext_clock_freq)
 
qint32 getTransverterMode ()
 
void setTransverterMode (qint32 transverter_mode)
 
qint64 getTransverterDeltaFrequency ()
 
void setTransverterDeltaFrequency (qint64 transverter_delta_frequency)
 
qint32 getGpioDir ()
 
void setGpioDir (qint32 gpio_dir)
 
qint32 getGpioPins ()
 
void setGpioPins (qint32 gpio_pins)
 
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 log2_hard_interp
 
bool m_log2_hard_interp_isSet
 
qint32 log2_soft_interp
 
bool m_log2_soft_interp_isSet
 
qint32 lpf_bw
 
bool m_lpf_bw_isSet
 
qint32 lpf_fir_enable
 
bool m_lpf_fir_enable_isSet
 
qint32 lpf_firbw
 
bool m_lpf_firbw_isSet
 
qint32 gain
 
bool m_gain_isSet
 
qint32 nco_enable
 
bool m_nco_enable_isSet
 
qint32 nco_frequency
 
bool m_nco_frequency_isSet
 
qint32 antenna_path
 
bool m_antenna_path_isSet
 
qint32 ext_clock
 
bool m_ext_clock_isSet
 
qint32 ext_clock_freq
 
bool m_ext_clock_freq_isSet
 
qint32 transverter_mode
 
bool m_transverter_mode_isSet
 
qint64 transverter_delta_frequency
 
bool m_transverter_delta_frequency_isSet
 
qint32 gpio_dir
 
bool m_gpio_dir_isSet
 
qint32 gpio_pins
 
bool m_gpio_pins_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 SWGLimeSdrOutputSettings.h.

Constructor & Destructor Documentation

◆ SWGLimeSdrOutputSettings() [1/2]

SWGSDRangel::SWGLimeSdrOutputSettings::SWGLimeSdrOutputSettings ( )

Definition at line 30 of file SWGLimeSdrOutputSettings.cpp.

References antenna_path, center_frequency, dev_sample_rate, ext_clock, ext_clock_freq, gain, gpio_dir, gpio_pins, log2_hard_interp, log2_soft_interp, lpf_bw, lpf_fir_enable, lpf_firbw, m_antenna_path_isSet, m_center_frequency_isSet, m_dev_sample_rate_isSet, m_ext_clock_freq_isSet, m_ext_clock_isSet, m_gain_isSet, m_gpio_dir_isSet, m_gpio_pins_isSet, m_log2_hard_interp_isSet, m_log2_soft_interp_isSet, m_lpf_bw_isSet, m_lpf_fir_enable_isSet, m_lpf_firbw_isSet, m_nco_enable_isSet, m_nco_frequency_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, nco_enable, nco_frequency, 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  log2_hard_interp = 0;
37  log2_soft_interp = 0;
39  lpf_bw = 0;
40  m_lpf_bw_isSet = false;
41  lpf_fir_enable = 0;
42  m_lpf_fir_enable_isSet = false;
43  lpf_firbw = 0;
44  m_lpf_firbw_isSet = false;
45  gain = 0;
46  m_gain_isSet = false;
47  nco_enable = 0;
48  m_nco_enable_isSet = false;
49  nco_frequency = 0;
50  m_nco_frequency_isSet = false;
51  antenna_path = 0;
52  m_antenna_path_isSet = false;
53  ext_clock = 0;
54  m_ext_clock_isSet = false;
55  ext_clock_freq = 0;
56  m_ext_clock_freq_isSet = false;
57  transverter_mode = 0;
61  gpio_dir = 0;
62  m_gpio_dir_isSet = false;
63  gpio_pins = 0;
64  m_gpio_pins_isSet = false;
65  use_reverse_api = 0;
67  reverse_api_address = nullptr;
69  reverse_api_port = 0;
73 }

◆ SWGLimeSdrOutputSettings() [2/2]

SWGSDRangel::SWGLimeSdrOutputSettings::SWGLimeSdrOutputSettings ( QString *  json)

Definition at line 25 of file SWGLimeSdrOutputSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGLimeSdrOutputSettings()

SWGSDRangel::SWGLimeSdrOutputSettings::~SWGLimeSdrOutputSettings ( )
virtual

Definition at line 75 of file SWGLimeSdrOutputSettings.cpp.

References cleanup().

+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGLimeSdrOutputSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 208 of file SWGLimeSdrOutputSettings.cpp.

References asJsonObject().

209 {
210  QJsonObject* obj = this->asJsonObject();
211 
212  QJsonDocument doc(*obj);
213  QByteArray bytes = doc.toJson();
214  delete obj;
215  return QString(bytes);
216 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 219 of file SWGLimeSdrOutputSettings.cpp.

References antenna_path, center_frequency, dev_sample_rate, ext_clock, ext_clock_freq, gain, gpio_dir, gpio_pins, log2_hard_interp, log2_soft_interp, lpf_bw, lpf_fir_enable, lpf_firbw, m_antenna_path_isSet, m_center_frequency_isSet, m_dev_sample_rate_isSet, m_ext_clock_freq_isSet, m_ext_clock_isSet, m_gain_isSet, m_gpio_dir_isSet, m_gpio_pins_isSet, m_log2_hard_interp_isSet, m_log2_soft_interp_isSet, m_lpf_bw_isSet, m_lpf_fir_enable_isSet, m_lpf_firbw_isSet, m_nco_enable_isSet, m_nco_frequency_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, nco_enable, nco_frequency, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::toJsonValue(), transverter_delta_frequency, transverter_mode, and use_reverse_api.

Referenced by asJson().

219  {
220  QJsonObject* obj = new QJsonObject();
222  obj->insert("centerFrequency", QJsonValue(center_frequency));
223  }
225  obj->insert("devSampleRate", QJsonValue(dev_sample_rate));
226  }
228  obj->insert("log2HardInterp", QJsonValue(log2_hard_interp));
229  }
231  obj->insert("log2SoftInterp", QJsonValue(log2_soft_interp));
232  }
233  if(m_lpf_bw_isSet){
234  obj->insert("lpfBW", QJsonValue(lpf_bw));
235  }
237  obj->insert("lpfFIREnable", QJsonValue(lpf_fir_enable));
238  }
239  if(m_lpf_firbw_isSet){
240  obj->insert("lpfFIRBW", QJsonValue(lpf_firbw));
241  }
242  if(m_gain_isSet){
243  obj->insert("gain", QJsonValue(gain));
244  }
245  if(m_nco_enable_isSet){
246  obj->insert("ncoEnable", QJsonValue(nco_enable));
247  }
249  obj->insert("ncoFrequency", QJsonValue(nco_frequency));
250  }
252  obj->insert("antennaPath", QJsonValue(antenna_path));
253  }
254  if(m_ext_clock_isSet){
255  obj->insert("extClock", QJsonValue(ext_clock));
256  }
258  obj->insert("extClockFreq", QJsonValue(ext_clock_freq));
259  }
261  obj->insert("transverterMode", QJsonValue(transverter_mode));
262  }
264  obj->insert("transverterDeltaFrequency", QJsonValue(transverter_delta_frequency));
265  }
266  if(m_gpio_dir_isSet){
267  obj->insert("gpioDir", QJsonValue(gpio_dir));
268  }
269  if(m_gpio_pins_isSet){
270  obj->insert("gpioPins", QJsonValue(gpio_pins));
271  }
273  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
274  }
275  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
276  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
277  }
279  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
280  }
282  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
283  }
284 
285  return obj;
286 }
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::SWGLimeSdrOutputSettings::cleanup ( )

Definition at line 126 of file SWGLimeSdrOutputSettings.cpp.

References reverse_api_address.

Referenced by ~SWGLimeSdrOutputSettings().

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

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 153 of file SWGLimeSdrOutputSettings.cpp.

References fromJsonObject().

Referenced by SWGLimeSdrOutputSettings().

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 162 of file SWGLimeSdrOutputSettings.cpp.

References antenna_path, center_frequency, dev_sample_rate, ext_clock, ext_clock_freq, gain, gpio_dir, gpio_pins, log2_hard_interp, log2_soft_interp, lpf_bw, lpf_fir_enable, lpf_firbw, nco_enable, nco_frequency, 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().

162  {
163  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint64", "");
164 
165  ::SWGSDRangel::setValue(&dev_sample_rate, pJson["devSampleRate"], "qint32", "");
166 
167  ::SWGSDRangel::setValue(&log2_hard_interp, pJson["log2HardInterp"], "qint32", "");
168 
169  ::SWGSDRangel::setValue(&log2_soft_interp, pJson["log2SoftInterp"], "qint32", "");
170 
171  ::SWGSDRangel::setValue(&lpf_bw, pJson["lpfBW"], "qint32", "");
172 
173  ::SWGSDRangel::setValue(&lpf_fir_enable, pJson["lpfFIREnable"], "qint32", "");
174 
175  ::SWGSDRangel::setValue(&lpf_firbw, pJson["lpfFIRBW"], "qint32", "");
176 
177  ::SWGSDRangel::setValue(&gain, pJson["gain"], "qint32", "");
178 
179  ::SWGSDRangel::setValue(&nco_enable, pJson["ncoEnable"], "qint32", "");
180 
181  ::SWGSDRangel::setValue(&nco_frequency, pJson["ncoFrequency"], "qint32", "");
182 
183  ::SWGSDRangel::setValue(&antenna_path, pJson["antennaPath"], "qint32", "");
184 
185  ::SWGSDRangel::setValue(&ext_clock, pJson["extClock"], "qint32", "");
186 
187  ::SWGSDRangel::setValue(&ext_clock_freq, pJson["extClockFreq"], "qint32", "");
188 
189  ::SWGSDRangel::setValue(&transverter_mode, pJson["transverterMode"], "qint32", "");
190 
191  ::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", "");
192 
193  ::SWGSDRangel::setValue(&gpio_dir, pJson["gpioDir"], "qint32", "");
194 
195  ::SWGSDRangel::setValue(&gpio_pins, pJson["gpioPins"], "qint32", "");
196 
197  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
198 
199  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
200 
201  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
202 
203  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
204 
205 }
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::SWGLimeSdrOutputSettings::getAntennaPath ( )

Definition at line 389 of file SWGLimeSdrOutputSettings.cpp.

References antenna_path.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

389  {
390  return antenna_path;
391 }
+ Here is the caller graph for this function:

◆ getCenterFrequency()

qint64 SWGSDRangel::SWGLimeSdrOutputSettings::getCenterFrequency ( )

Definition at line 289 of file SWGLimeSdrOutputSettings.cpp.

References center_frequency.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getDevSampleRate()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getDevSampleRate ( )

Definition at line 299 of file SWGLimeSdrOutputSettings.cpp.

References dev_sample_rate.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getExtClock()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getExtClock ( )

Definition at line 399 of file SWGLimeSdrOutputSettings.cpp.

References ext_clock.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

399  {
400  return ext_clock;
401 }
+ Here is the caller graph for this function:

◆ getExtClockFreq()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getExtClockFreq ( )

Definition at line 409 of file SWGLimeSdrOutputSettings.cpp.

References ext_clock_freq.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getGain()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getGain ( )

Definition at line 359 of file SWGLimeSdrOutputSettings.cpp.

References gain.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

359  {
360  return gain;
361 }
+ Here is the caller graph for this function:

◆ getGpioDir()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getGpioDir ( )

Definition at line 439 of file SWGLimeSdrOutputSettings.cpp.

References gpio_dir.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

439  {
440  return gpio_dir;
441 }
+ Here is the caller graph for this function:

◆ getGpioPins()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getGpioPins ( )

Definition at line 449 of file SWGLimeSdrOutputSettings.cpp.

References gpio_pins.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

449  {
450  return gpio_pins;
451 }
+ Here is the caller graph for this function:

◆ getLog2HardInterp()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getLog2HardInterp ( )

Definition at line 309 of file SWGLimeSdrOutputSettings.cpp.

References log2_hard_interp.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getLog2SoftInterp()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getLog2SoftInterp ( )

Definition at line 319 of file SWGLimeSdrOutputSettings.cpp.

References log2_soft_interp.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getLpfBw()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getLpfBw ( )

Definition at line 329 of file SWGLimeSdrOutputSettings.cpp.

References lpf_bw.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

329  {
330  return lpf_bw;
331 }
+ Here is the caller graph for this function:

◆ getLpfFirbw()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getLpfFirbw ( )

Definition at line 349 of file SWGLimeSdrOutputSettings.cpp.

References lpf_firbw.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

349  {
350  return lpf_firbw;
351 }
+ Here is the caller graph for this function:

◆ getLpfFirEnable()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getLpfFirEnable ( )

Definition at line 339 of file SWGLimeSdrOutputSettings.cpp.

References lpf_fir_enable.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getNcoEnable()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getNcoEnable ( )

Definition at line 369 of file SWGLimeSdrOutputSettings.cpp.

References nco_enable.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

369  {
370  return nco_enable;
371 }
+ Here is the caller graph for this function:

◆ getNcoFrequency()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getNcoFrequency ( )

Definition at line 379 of file SWGLimeSdrOutputSettings.cpp.

References nco_frequency.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGLimeSdrOutputSettings::getReverseApiAddress ( )

Definition at line 469 of file SWGLimeSdrOutputSettings.cpp.

References reverse_api_address.

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

469  {
470  return reverse_api_address;
471 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getReverseApiDeviceIndex ( )

Definition at line 489 of file SWGLimeSdrOutputSettings.cpp.

References reverse_api_device_index.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getReverseApiPort ( )

Definition at line 479 of file SWGLimeSdrOutputSettings.cpp.

References reverse_api_port.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getTransverterDeltaFrequency()

qint64 SWGSDRangel::SWGLimeSdrOutputSettings::getTransverterDeltaFrequency ( )

Definition at line 429 of file SWGLimeSdrOutputSettings.cpp.

References transverter_delta_frequency.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getTransverterMode()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getTransverterMode ( )

Definition at line 419 of file SWGLimeSdrOutputSettings.cpp.

References transverter_mode.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::getUseReverseApi ( )

Definition at line 459 of file SWGLimeSdrOutputSettings.cpp.

References use_reverse_api.

Referenced by LimeSDROutput::webapiSettingsPutPatch().

+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGLimeSdrOutputSettings::init ( )

Definition at line 80 of file SWGLimeSdrOutputSettings.cpp.

References antenna_path, center_frequency, dev_sample_rate, ext_clock, ext_clock_freq, gain, gpio_dir, gpio_pins, log2_hard_interp, log2_soft_interp, lpf_bw, lpf_fir_enable, lpf_firbw, m_antenna_path_isSet, m_center_frequency_isSet, m_dev_sample_rate_isSet, m_ext_clock_freq_isSet, m_ext_clock_isSet, m_gain_isSet, m_gpio_dir_isSet, m_gpio_pins_isSet, m_log2_hard_interp_isSet, m_log2_soft_interp_isSet, m_lpf_bw_isSet, m_lpf_fir_enable_isSet, m_lpf_firbw_isSet, m_nco_enable_isSet, m_nco_frequency_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, nco_enable, nco_frequency, reverse_api_address, reverse_api_device_index, reverse_api_port, transverter_delta_frequency, transverter_mode, and use_reverse_api.

Referenced by SWGLimeSdrOutputSettings(), and LimeSDROutput::webapiSettingsGet().

80  {
81  center_frequency = 0L;
83  dev_sample_rate = 0;
85  log2_hard_interp = 0;
87  log2_soft_interp = 0;
89  lpf_bw = 0;
90  m_lpf_bw_isSet = false;
91  lpf_fir_enable = 0;
92  m_lpf_fir_enable_isSet = false;
93  lpf_firbw = 0;
94  m_lpf_firbw_isSet = false;
95  gain = 0;
96  m_gain_isSet = false;
97  nco_enable = 0;
98  m_nco_enable_isSet = false;
99  nco_frequency = 0;
100  m_nco_frequency_isSet = false;
101  antenna_path = 0;
102  m_antenna_path_isSet = false;
103  ext_clock = 0;
104  m_ext_clock_isSet = false;
105  ext_clock_freq = 0;
106  m_ext_clock_freq_isSet = false;
107  transverter_mode = 0;
108  m_transverter_mode_isSet = false;
111  gpio_dir = 0;
112  m_gpio_dir_isSet = false;
113  gpio_pins = 0;
114  m_gpio_pins_isSet = false;
115  use_reverse_api = 0;
116  m_use_reverse_api_isSet = false;
117  reverse_api_address = new QString("");
119  reverse_api_port = 0;
120  m_reverse_api_port_isSet = false;
123 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGLimeSdrOutputSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 500 of file SWGLimeSdrOutputSettings.cpp.

References m_antenna_path_isSet, m_center_frequency_isSet, m_dev_sample_rate_isSet, m_ext_clock_freq_isSet, m_ext_clock_isSet, m_gain_isSet, m_gpio_dir_isSet, m_gpio_pins_isSet, m_log2_hard_interp_isSet, m_log2_soft_interp_isSet, m_lpf_bw_isSet, m_lpf_fir_enable_isSet, m_lpf_firbw_isSet, m_nco_enable_isSet, m_nco_frequency_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().

500  {
501  bool isObjectUpdated = false;
502  do{
503  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
504  if(m_dev_sample_rate_isSet){ isObjectUpdated = true; break;}
505  if(m_log2_hard_interp_isSet){ isObjectUpdated = true; break;}
506  if(m_log2_soft_interp_isSet){ isObjectUpdated = true; break;}
507  if(m_lpf_bw_isSet){ isObjectUpdated = true; break;}
508  if(m_lpf_fir_enable_isSet){ isObjectUpdated = true; break;}
509  if(m_lpf_firbw_isSet){ isObjectUpdated = true; break;}
510  if(m_gain_isSet){ isObjectUpdated = true; break;}
511  if(m_nco_enable_isSet){ isObjectUpdated = true; break;}
512  if(m_nco_frequency_isSet){ isObjectUpdated = true; break;}
513  if(m_antenna_path_isSet){ isObjectUpdated = true; break;}
514  if(m_ext_clock_isSet){ isObjectUpdated = true; break;}
515  if(m_ext_clock_freq_isSet){ isObjectUpdated = true; break;}
516  if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
517  if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
518  if(m_gpio_dir_isSet){ isObjectUpdated = true; break;}
519  if(m_gpio_pins_isSet){ isObjectUpdated = true; break;}
520  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
521  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
522  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
523  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
524  }while(false);
525  return isObjectUpdated;
526 }
+ Here is the caller graph for this function:

◆ setAntennaPath()

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

◆ setCenterFrequency()

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

◆ setDevSampleRate()

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

◆ setExtClock()

void SWGSDRangel::SWGLimeSdrOutputSettings::setExtClock ( qint32  ext_clock)

Definition at line 403 of file SWGLimeSdrOutputSettings.cpp.

References ext_clock, and m_ext_clock_isSet.

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

+ Here is the caller graph for this function:

◆ setExtClockFreq()

void SWGSDRangel::SWGLimeSdrOutputSettings::setExtClockFreq ( qint32  ext_clock_freq)

◆ setGain()

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

Definition at line 363 of file SWGLimeSdrOutputSettings.cpp.

References gain, and m_gain_isSet.

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

+ Here is the caller graph for this function:

◆ setGpioDir()

void SWGSDRangel::SWGLimeSdrOutputSettings::setGpioDir ( qint32  gpio_dir)

Definition at line 443 of file SWGLimeSdrOutputSettings.cpp.

References gpio_dir, and m_gpio_dir_isSet.

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

+ Here is the caller graph for this function:

◆ setGpioPins()

void SWGSDRangel::SWGLimeSdrOutputSettings::setGpioPins ( qint32  gpio_pins)

Definition at line 453 of file SWGLimeSdrOutputSettings.cpp.

References gpio_pins, and m_gpio_pins_isSet.

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

+ Here is the caller graph for this function:

◆ setLog2HardInterp()

void SWGSDRangel::SWGLimeSdrOutputSettings::setLog2HardInterp ( qint32  log2_hard_interp)

◆ setLog2SoftInterp()

void SWGSDRangel::SWGLimeSdrOutputSettings::setLog2SoftInterp ( qint32  log2_soft_interp)

◆ setLpfBw()

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

Definition at line 333 of file SWGLimeSdrOutputSettings.cpp.

References lpf_bw, and m_lpf_bw_isSet.

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

+ Here is the caller graph for this function:

◆ setLpfFirbw()

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

Definition at line 353 of file SWGLimeSdrOutputSettings.cpp.

References lpf_firbw, and m_lpf_firbw_isSet.

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

+ Here is the caller graph for this function:

◆ setLpfFirEnable()

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

◆ setNcoEnable()

void SWGSDRangel::SWGLimeSdrOutputSettings::setNcoEnable ( qint32  nco_enable)

Definition at line 373 of file SWGLimeSdrOutputSettings.cpp.

References m_nco_enable_isSet, and nco_enable.

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

+ Here is the caller graph for this function:

◆ setNcoFrequency()

void SWGSDRangel::SWGLimeSdrOutputSettings::setNcoFrequency ( qint32  nco_frequency)

◆ setReverseApiAddress()

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

Definition at line 473 of file SWGLimeSdrOutputSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by LimeSDROutput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

◆ setReverseApiPort()

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

Definition at line 483 of file SWGLimeSdrOutputSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by LimeSDROutput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setTransverterDeltaFrequency()

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

◆ setTransverterMode()

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

◆ setUseReverseApi()

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

Definition at line 463 of file SWGLimeSdrOutputSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by LimeSDROutput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ antenna_path

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::antenna_path
private

◆ center_frequency

qint64 SWGSDRangel::SWGLimeSdrOutputSettings::center_frequency
private

◆ dev_sample_rate

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::dev_sample_rate
private

◆ ext_clock

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::ext_clock
private

◆ ext_clock_freq

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::ext_clock_freq
private

◆ gain

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::gain
private

◆ gpio_dir

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::gpio_dir
private

◆ gpio_pins

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::gpio_pins
private

◆ log2_hard_interp

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::log2_hard_interp
private

◆ log2_soft_interp

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::log2_soft_interp
private

◆ lpf_bw

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::lpf_bw
private

◆ lpf_fir_enable

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::lpf_fir_enable
private

◆ lpf_firbw

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::lpf_firbw
private

◆ m_antenna_path_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_antenna_path_isSet
private

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_center_frequency_isSet
private

◆ m_dev_sample_rate_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_dev_sample_rate_isSet
private

◆ m_ext_clock_freq_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_ext_clock_freq_isSet
private

◆ m_ext_clock_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_ext_clock_isSet
private

◆ m_gain_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_gain_isSet
private

◆ m_gpio_dir_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_gpio_dir_isSet
private

◆ m_gpio_pins_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_gpio_pins_isSet
private

◆ m_log2_hard_interp_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_log2_hard_interp_isSet
private

◆ m_log2_soft_interp_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_log2_soft_interp_isSet
private

◆ m_lpf_bw_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_lpf_bw_isSet
private

◆ m_lpf_fir_enable_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_lpf_fir_enable_isSet
private

◆ m_lpf_firbw_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_lpf_firbw_isSet
private

◆ m_nco_enable_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_nco_enable_isSet
private

◆ m_nco_frequency_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_nco_frequency_isSet
private

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_reverse_api_address_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_reverse_api_port_isSet
private

◆ m_transverter_delta_frequency_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_transverter_delta_frequency_isSet
private

◆ m_transverter_mode_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_transverter_mode_isSet
private

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGLimeSdrOutputSettings::m_use_reverse_api_isSet
private

◆ nco_enable

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::nco_enable
private

◆ nco_frequency

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::nco_frequency
private

◆ reverse_api_address

QString* SWGSDRangel::SWGLimeSdrOutputSettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::reverse_api_port
private

◆ transverter_delta_frequency

qint64 SWGSDRangel::SWGLimeSdrOutputSettings::transverter_delta_frequency
private

◆ transverter_mode

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::transverter_mode
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGLimeSdrOutputSettings::use_reverse_api
private

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