18 #include <QJsonDocument> 154 QByteArray array (json.toStdString().c_str());
155 QJsonDocument doc = QJsonDocument::fromJson(array);
156 QJsonObject jsonObject = doc.object();
212 QJsonDocument doc(*obj);
213 QByteArray bytes = doc.toJson();
215 return QString(bytes);
220 QJsonObject* obj =
new QJsonObject();
234 obj->insert(
"lpfBW", QJsonValue(
lpf_bw));
240 obj->insert(
"lpfFIRBW", QJsonValue(
lpf_firbw));
243 obj->insert(
"gain", QJsonValue(
gain));
246 obj->insert(
"ncoEnable", QJsonValue(
nco_enable));
255 obj->insert(
"extClock", QJsonValue(
ext_clock));
267 obj->insert(
"gpioDir", QJsonValue(
gpio_dir));
270 obj->insert(
"gpioPins", QJsonValue(
gpio_pins));
501 bool isObjectUpdated =
false;
525 return isObjectUpdated;
qint32 getDevSampleRate()
virtual bool isSet() override
qint32 getTransverterMode()
void setLpfBw(qint32 lpf_bw)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
void setReverseApiAddress(QString *reverse_api_address)
bool m_lpf_fir_enable_isSet
void setLpfFirEnable(qint32 lpf_fir_enable)
QString * reverse_api_address
qint32 getReverseApiDeviceIndex()
bool m_transverter_mode_isSet
SWGLimeSdrOutputSettings()
void setLog2SoftInterp(qint32 log2_soft_interp)
virtual ~SWGLimeSdrOutputSettings()
void setExtClockFreq(qint32 ext_clock_freq)
void setGpioPins(qint32 gpio_pins)
virtual QJsonObject * asJsonObject() override
void setLpfFirbw(qint32 lpf_firbw)
bool m_transverter_delta_frequency_isSet
bool m_reverse_api_port_isSet
void setNcoEnable(qint32 nco_enable)
bool m_antenna_path_isSet
qint64 getTransverterDeltaFrequency()
bool m_center_frequency_isSet
void setExtClock(qint32 ext_clock)
QString * getReverseApiAddress()
bool m_reverse_api_address_isSet
virtual QString asJson() override
qint32 getReverseApiPort()
virtual SWGLimeSdrOutputSettings * fromJson(QString &jsonString) override
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency)
qint32 getLog2SoftInterp()
bool m_use_reverse_api_isSet
void setGain(qint32 gain)
void setGpioDir(qint32 gpio_dir)
void setLog2HardInterp(qint32 log2_hard_interp)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setUseReverseApi(qint32 use_reverse_api)
bool m_ext_clock_freq_isSet
virtual void fromJsonObject(QJsonObject &json) override
void setReverseApiPort(qint32 reverse_api_port)
bool m_reverse_api_device_index_isSet
qint32 reverse_api_device_index
qint64 transverter_delta_frequency
void setDevSampleRate(qint32 dev_sample_rate)
qint32 getLog2HardInterp()
qint64 getCenterFrequency()
bool m_log2_hard_interp_isSet
bool m_dev_sample_rate_isSet
void setCenterFrequency(qint64 center_frequency)
void setNcoFrequency(qint32 nco_frequency)
void setTransverterMode(qint32 transverter_mode)
qint32 getUseReverseApi()
bool m_nco_frequency_isSet
void setAntennaPath(qint32 antenna_path)
bool m_log2_soft_interp_isSet