mirror of https://github.com/f4exb/sdrangel.git
962 lines
28 KiB
C++
962 lines
28 KiB
C++
/**
|
|
* SDRangel
|
|
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1, USRP and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
|
*
|
|
* OpenAPI spec version: 4.15.0
|
|
* Contact: f4exb06@gmail.com
|
|
*
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
|
|
#include "SWGMetisMISOSettings.h"
|
|
|
|
#include "SWGHelpers.h"
|
|
|
|
#include <QJsonDocument>
|
|
#include <QJsonArray>
|
|
#include <QObject>
|
|
#include <QDebug>
|
|
|
|
namespace SWGSDRangel {
|
|
|
|
SWGMetisMISOSettings::SWGMetisMISOSettings(QString* json) {
|
|
init();
|
|
this->fromJson(*json);
|
|
}
|
|
|
|
SWGMetisMISOSettings::SWGMetisMISOSettings() {
|
|
nb_receivers = 0;
|
|
m_nb_receivers_isSet = false;
|
|
tx_enable = 0;
|
|
m_tx_enable_isSet = false;
|
|
rx1_center_frequency = 0L;
|
|
m_rx1_center_frequency_isSet = false;
|
|
rx2_center_frequency = 0L;
|
|
m_rx2_center_frequency_isSet = false;
|
|
rx3_center_frequency = 0L;
|
|
m_rx3_center_frequency_isSet = false;
|
|
rx4_center_frequency = 0L;
|
|
m_rx4_center_frequency_isSet = false;
|
|
rx5_center_frequency = 0L;
|
|
m_rx5_center_frequency_isSet = false;
|
|
rx6_center_frequency = 0L;
|
|
m_rx6_center_frequency_isSet = false;
|
|
rx7_center_frequency = 0L;
|
|
m_rx7_center_frequency_isSet = false;
|
|
rx8_center_frequency = 0L;
|
|
m_rx8_center_frequency_isSet = false;
|
|
tx_center_frequency = 0L;
|
|
m_tx_center_frequency_isSet = false;
|
|
rx_transverter_mode = 0;
|
|
m_rx_transverter_mode_isSet = false;
|
|
rx_transverter_delta_frequency = 0L;
|
|
m_rx_transverter_delta_frequency_isSet = false;
|
|
tx_transverter_mode = 0;
|
|
m_tx_transverter_mode_isSet = false;
|
|
tx_transverter_delta_frequency = 0L;
|
|
m_tx_transverter_delta_frequency_isSet = false;
|
|
iq_order = 0;
|
|
m_iq_order_isSet = false;
|
|
rx1_subsampling_index = 0;
|
|
m_rx1_subsampling_index_isSet = false;
|
|
rx2_subsampling_index = 0;
|
|
m_rx2_subsampling_index_isSet = false;
|
|
rx3_subsampling_index = 0;
|
|
m_rx3_subsampling_index_isSet = false;
|
|
rx4_subsampling_index = 0;
|
|
m_rx4_subsampling_index_isSet = false;
|
|
rx5_subsampling_index = 0;
|
|
m_rx5_subsampling_index_isSet = false;
|
|
rx6_subsampling_index = 0;
|
|
m_rx6_subsampling_index_isSet = false;
|
|
rx7_subsampling_index = 0;
|
|
m_rx7_subsampling_index_isSet = false;
|
|
rx8_subsampling_index = 0;
|
|
m_rx8_subsampling_index_isSet = false;
|
|
sample_rate_index = 0;
|
|
m_sample_rate_index_isSet = false;
|
|
log2_decim = 0;
|
|
m_log2_decim_isSet = false;
|
|
l_oppm_tenths = 0;
|
|
m_l_oppm_tenths_isSet = false;
|
|
preamp = 0;
|
|
m_preamp_isSet = false;
|
|
random = 0;
|
|
m_random_isSet = false;
|
|
dither = 0;
|
|
m_dither_isSet = false;
|
|
duplex = 0;
|
|
m_duplex_isSet = false;
|
|
dc_block = 0;
|
|
m_dc_block_isSet = false;
|
|
iq_correction = 0;
|
|
m_iq_correction_isSet = false;
|
|
tx_drive = 0;
|
|
m_tx_drive_isSet = false;
|
|
use_reverse_api = 0;
|
|
m_use_reverse_api_isSet = false;
|
|
reverse_api_address = nullptr;
|
|
m_reverse_api_address_isSet = false;
|
|
reverse_api_port = 0;
|
|
m_reverse_api_port_isSet = false;
|
|
reverse_api_device_index = 0;
|
|
m_reverse_api_device_index_isSet = false;
|
|
}
|
|
|
|
SWGMetisMISOSettings::~SWGMetisMISOSettings() {
|
|
this->cleanup();
|
|
}
|
|
|
|
void
|
|
SWGMetisMISOSettings::init() {
|
|
nb_receivers = 0;
|
|
m_nb_receivers_isSet = false;
|
|
tx_enable = 0;
|
|
m_tx_enable_isSet = false;
|
|
rx1_center_frequency = 0L;
|
|
m_rx1_center_frequency_isSet = false;
|
|
rx2_center_frequency = 0L;
|
|
m_rx2_center_frequency_isSet = false;
|
|
rx3_center_frequency = 0L;
|
|
m_rx3_center_frequency_isSet = false;
|
|
rx4_center_frequency = 0L;
|
|
m_rx4_center_frequency_isSet = false;
|
|
rx5_center_frequency = 0L;
|
|
m_rx5_center_frequency_isSet = false;
|
|
rx6_center_frequency = 0L;
|
|
m_rx6_center_frequency_isSet = false;
|
|
rx7_center_frequency = 0L;
|
|
m_rx7_center_frequency_isSet = false;
|
|
rx8_center_frequency = 0L;
|
|
m_rx8_center_frequency_isSet = false;
|
|
tx_center_frequency = 0L;
|
|
m_tx_center_frequency_isSet = false;
|
|
rx_transverter_mode = 0;
|
|
m_rx_transverter_mode_isSet = false;
|
|
rx_transverter_delta_frequency = 0L;
|
|
m_rx_transverter_delta_frequency_isSet = false;
|
|
tx_transverter_mode = 0;
|
|
m_tx_transverter_mode_isSet = false;
|
|
tx_transverter_delta_frequency = 0L;
|
|
m_tx_transverter_delta_frequency_isSet = false;
|
|
iq_order = 0;
|
|
m_iq_order_isSet = false;
|
|
rx1_subsampling_index = 0;
|
|
m_rx1_subsampling_index_isSet = false;
|
|
rx2_subsampling_index = 0;
|
|
m_rx2_subsampling_index_isSet = false;
|
|
rx3_subsampling_index = 0;
|
|
m_rx3_subsampling_index_isSet = false;
|
|
rx4_subsampling_index = 0;
|
|
m_rx4_subsampling_index_isSet = false;
|
|
rx5_subsampling_index = 0;
|
|
m_rx5_subsampling_index_isSet = false;
|
|
rx6_subsampling_index = 0;
|
|
m_rx6_subsampling_index_isSet = false;
|
|
rx7_subsampling_index = 0;
|
|
m_rx7_subsampling_index_isSet = false;
|
|
rx8_subsampling_index = 0;
|
|
m_rx8_subsampling_index_isSet = false;
|
|
sample_rate_index = 0;
|
|
m_sample_rate_index_isSet = false;
|
|
log2_decim = 0;
|
|
m_log2_decim_isSet = false;
|
|
l_oppm_tenths = 0;
|
|
m_l_oppm_tenths_isSet = false;
|
|
preamp = 0;
|
|
m_preamp_isSet = false;
|
|
random = 0;
|
|
m_random_isSet = false;
|
|
dither = 0;
|
|
m_dither_isSet = false;
|
|
duplex = 0;
|
|
m_duplex_isSet = false;
|
|
dc_block = 0;
|
|
m_dc_block_isSet = false;
|
|
iq_correction = 0;
|
|
m_iq_correction_isSet = false;
|
|
tx_drive = 0;
|
|
m_tx_drive_isSet = false;
|
|
use_reverse_api = 0;
|
|
m_use_reverse_api_isSet = false;
|
|
reverse_api_address = new QString("");
|
|
m_reverse_api_address_isSet = false;
|
|
reverse_api_port = 0;
|
|
m_reverse_api_port_isSet = false;
|
|
reverse_api_device_index = 0;
|
|
m_reverse_api_device_index_isSet = false;
|
|
}
|
|
|
|
void
|
|
SWGMetisMISOSettings::cleanup() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(reverse_api_address != nullptr) {
|
|
delete reverse_api_address;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
SWGMetisMISOSettings*
|
|
SWGMetisMISOSettings::fromJson(QString &json) {
|
|
QByteArray array (json.toStdString().c_str());
|
|
QJsonDocument doc = QJsonDocument::fromJson(array);
|
|
QJsonObject jsonObject = doc.object();
|
|
this->fromJsonObject(jsonObject);
|
|
return this;
|
|
}
|
|
|
|
void
|
|
SWGMetisMISOSettings::fromJsonObject(QJsonObject &pJson) {
|
|
::SWGSDRangel::setValue(&nb_receivers, pJson["nbReceivers"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&tx_enable, pJson["txEnable"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx1_center_frequency, pJson["rx1CenterFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&rx2_center_frequency, pJson["rx2CenterFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&rx3_center_frequency, pJson["rx3CenterFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&rx4_center_frequency, pJson["rx4CenterFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&rx5_center_frequency, pJson["rx5CenterFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&rx6_center_frequency, pJson["rx6CenterFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&rx7_center_frequency, pJson["rx7CenterFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&rx8_center_frequency, pJson["rx8CenterFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&tx_center_frequency, pJson["txCenterFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&rx_transverter_mode, pJson["rxTransverterMode"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx_transverter_delta_frequency, pJson["rxTransverterDeltaFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&tx_transverter_mode, pJson["txTransverterMode"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&tx_transverter_delta_frequency, pJson["txTransverterDeltaFrequency"], "qint64", "");
|
|
|
|
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx1_subsampling_index, pJson["rx1SubsamplingIndex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx2_subsampling_index, pJson["rx2SubsamplingIndex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx3_subsampling_index, pJson["rx3SubsamplingIndex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx4_subsampling_index, pJson["rx4SubsamplingIndex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx5_subsampling_index, pJson["rx5SubsamplingIndex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx6_subsampling_index, pJson["rx6SubsamplingIndex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx7_subsampling_index, pJson["rx7SubsamplingIndex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&rx8_subsampling_index, pJson["rx8SubsamplingIndex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&sample_rate_index, pJson["sampleRateIndex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&l_oppm_tenths, pJson["LOppmTenths"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&preamp, pJson["preamp"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&random, pJson["random"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&dither, pJson["dither"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&duplex, pJson["duplex"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&tx_drive, pJson["txDrive"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
|
|
|
|
::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
|
|
|
|
::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
|
|
|
|
}
|
|
|
|
QString
|
|
SWGMetisMISOSettings::asJson ()
|
|
{
|
|
QJsonObject* obj = this->asJsonObject();
|
|
|
|
QJsonDocument doc(*obj);
|
|
QByteArray bytes = doc.toJson();
|
|
delete obj;
|
|
return QString(bytes);
|
|
}
|
|
|
|
QJsonObject*
|
|
SWGMetisMISOSettings::asJsonObject() {
|
|
QJsonObject* obj = new QJsonObject();
|
|
if(m_nb_receivers_isSet){
|
|
obj->insert("nbReceivers", QJsonValue(nb_receivers));
|
|
}
|
|
if(m_tx_enable_isSet){
|
|
obj->insert("txEnable", QJsonValue(tx_enable));
|
|
}
|
|
if(m_rx1_center_frequency_isSet){
|
|
obj->insert("rx1CenterFrequency", QJsonValue(rx1_center_frequency));
|
|
}
|
|
if(m_rx2_center_frequency_isSet){
|
|
obj->insert("rx2CenterFrequency", QJsonValue(rx2_center_frequency));
|
|
}
|
|
if(m_rx3_center_frequency_isSet){
|
|
obj->insert("rx3CenterFrequency", QJsonValue(rx3_center_frequency));
|
|
}
|
|
if(m_rx4_center_frequency_isSet){
|
|
obj->insert("rx4CenterFrequency", QJsonValue(rx4_center_frequency));
|
|
}
|
|
if(m_rx5_center_frequency_isSet){
|
|
obj->insert("rx5CenterFrequency", QJsonValue(rx5_center_frequency));
|
|
}
|
|
if(m_rx6_center_frequency_isSet){
|
|
obj->insert("rx6CenterFrequency", QJsonValue(rx6_center_frequency));
|
|
}
|
|
if(m_rx7_center_frequency_isSet){
|
|
obj->insert("rx7CenterFrequency", QJsonValue(rx7_center_frequency));
|
|
}
|
|
if(m_rx8_center_frequency_isSet){
|
|
obj->insert("rx8CenterFrequency", QJsonValue(rx8_center_frequency));
|
|
}
|
|
if(m_tx_center_frequency_isSet){
|
|
obj->insert("txCenterFrequency", QJsonValue(tx_center_frequency));
|
|
}
|
|
if(m_rx_transverter_mode_isSet){
|
|
obj->insert("rxTransverterMode", QJsonValue(rx_transverter_mode));
|
|
}
|
|
if(m_rx_transverter_delta_frequency_isSet){
|
|
obj->insert("rxTransverterDeltaFrequency", QJsonValue(rx_transverter_delta_frequency));
|
|
}
|
|
if(m_tx_transverter_mode_isSet){
|
|
obj->insert("txTransverterMode", QJsonValue(tx_transverter_mode));
|
|
}
|
|
if(m_tx_transverter_delta_frequency_isSet){
|
|
obj->insert("txTransverterDeltaFrequency", QJsonValue(tx_transverter_delta_frequency));
|
|
}
|
|
if(m_iq_order_isSet){
|
|
obj->insert("iqOrder", QJsonValue(iq_order));
|
|
}
|
|
if(m_rx1_subsampling_index_isSet){
|
|
obj->insert("rx1SubsamplingIndex", QJsonValue(rx1_subsampling_index));
|
|
}
|
|
if(m_rx2_subsampling_index_isSet){
|
|
obj->insert("rx2SubsamplingIndex", QJsonValue(rx2_subsampling_index));
|
|
}
|
|
if(m_rx3_subsampling_index_isSet){
|
|
obj->insert("rx3SubsamplingIndex", QJsonValue(rx3_subsampling_index));
|
|
}
|
|
if(m_rx4_subsampling_index_isSet){
|
|
obj->insert("rx4SubsamplingIndex", QJsonValue(rx4_subsampling_index));
|
|
}
|
|
if(m_rx5_subsampling_index_isSet){
|
|
obj->insert("rx5SubsamplingIndex", QJsonValue(rx5_subsampling_index));
|
|
}
|
|
if(m_rx6_subsampling_index_isSet){
|
|
obj->insert("rx6SubsamplingIndex", QJsonValue(rx6_subsampling_index));
|
|
}
|
|
if(m_rx7_subsampling_index_isSet){
|
|
obj->insert("rx7SubsamplingIndex", QJsonValue(rx7_subsampling_index));
|
|
}
|
|
if(m_rx8_subsampling_index_isSet){
|
|
obj->insert("rx8SubsamplingIndex", QJsonValue(rx8_subsampling_index));
|
|
}
|
|
if(m_sample_rate_index_isSet){
|
|
obj->insert("sampleRateIndex", QJsonValue(sample_rate_index));
|
|
}
|
|
if(m_log2_decim_isSet){
|
|
obj->insert("log2Decim", QJsonValue(log2_decim));
|
|
}
|
|
if(m_l_oppm_tenths_isSet){
|
|
obj->insert("LOppmTenths", QJsonValue(l_oppm_tenths));
|
|
}
|
|
if(m_preamp_isSet){
|
|
obj->insert("preamp", QJsonValue(preamp));
|
|
}
|
|
if(m_random_isSet){
|
|
obj->insert("random", QJsonValue(random));
|
|
}
|
|
if(m_dither_isSet){
|
|
obj->insert("dither", QJsonValue(dither));
|
|
}
|
|
if(m_duplex_isSet){
|
|
obj->insert("duplex", QJsonValue(duplex));
|
|
}
|
|
if(m_dc_block_isSet){
|
|
obj->insert("dcBlock", QJsonValue(dc_block));
|
|
}
|
|
if(m_iq_correction_isSet){
|
|
obj->insert("iqCorrection", QJsonValue(iq_correction));
|
|
}
|
|
if(m_tx_drive_isSet){
|
|
obj->insert("txDrive", QJsonValue(tx_drive));
|
|
}
|
|
if(m_use_reverse_api_isSet){
|
|
obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
|
|
}
|
|
if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
|
|
toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
|
|
}
|
|
if(m_reverse_api_port_isSet){
|
|
obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
|
|
}
|
|
if(m_reverse_api_device_index_isSet){
|
|
obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
|
|
}
|
|
|
|
return obj;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getNbReceivers() {
|
|
return nb_receivers;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setNbReceivers(qint32 nb_receivers) {
|
|
this->nb_receivers = nb_receivers;
|
|
this->m_nb_receivers_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getTxEnable() {
|
|
return tx_enable;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setTxEnable(qint32 tx_enable) {
|
|
this->tx_enable = tx_enable;
|
|
this->m_tx_enable_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getRx1CenterFrequency() {
|
|
return rx1_center_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx1CenterFrequency(qint64 rx1_center_frequency) {
|
|
this->rx1_center_frequency = rx1_center_frequency;
|
|
this->m_rx1_center_frequency_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getRx2CenterFrequency() {
|
|
return rx2_center_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx2CenterFrequency(qint64 rx2_center_frequency) {
|
|
this->rx2_center_frequency = rx2_center_frequency;
|
|
this->m_rx2_center_frequency_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getRx3CenterFrequency() {
|
|
return rx3_center_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx3CenterFrequency(qint64 rx3_center_frequency) {
|
|
this->rx3_center_frequency = rx3_center_frequency;
|
|
this->m_rx3_center_frequency_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getRx4CenterFrequency() {
|
|
return rx4_center_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx4CenterFrequency(qint64 rx4_center_frequency) {
|
|
this->rx4_center_frequency = rx4_center_frequency;
|
|
this->m_rx4_center_frequency_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getRx5CenterFrequency() {
|
|
return rx5_center_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx5CenterFrequency(qint64 rx5_center_frequency) {
|
|
this->rx5_center_frequency = rx5_center_frequency;
|
|
this->m_rx5_center_frequency_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getRx6CenterFrequency() {
|
|
return rx6_center_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx6CenterFrequency(qint64 rx6_center_frequency) {
|
|
this->rx6_center_frequency = rx6_center_frequency;
|
|
this->m_rx6_center_frequency_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getRx7CenterFrequency() {
|
|
return rx7_center_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx7CenterFrequency(qint64 rx7_center_frequency) {
|
|
this->rx7_center_frequency = rx7_center_frequency;
|
|
this->m_rx7_center_frequency_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getRx8CenterFrequency() {
|
|
return rx8_center_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx8CenterFrequency(qint64 rx8_center_frequency) {
|
|
this->rx8_center_frequency = rx8_center_frequency;
|
|
this->m_rx8_center_frequency_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getTxCenterFrequency() {
|
|
return tx_center_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setTxCenterFrequency(qint64 tx_center_frequency) {
|
|
this->tx_center_frequency = tx_center_frequency;
|
|
this->m_tx_center_frequency_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRxTransverterMode() {
|
|
return rx_transverter_mode;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRxTransverterMode(qint32 rx_transverter_mode) {
|
|
this->rx_transverter_mode = rx_transverter_mode;
|
|
this->m_rx_transverter_mode_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getRxTransverterDeltaFrequency() {
|
|
return rx_transverter_delta_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRxTransverterDeltaFrequency(qint64 rx_transverter_delta_frequency) {
|
|
this->rx_transverter_delta_frequency = rx_transverter_delta_frequency;
|
|
this->m_rx_transverter_delta_frequency_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getTxTransverterMode() {
|
|
return tx_transverter_mode;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setTxTransverterMode(qint32 tx_transverter_mode) {
|
|
this->tx_transverter_mode = tx_transverter_mode;
|
|
this->m_tx_transverter_mode_isSet = true;
|
|
}
|
|
|
|
qint64
|
|
SWGMetisMISOSettings::getTxTransverterDeltaFrequency() {
|
|
return tx_transverter_delta_frequency;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setTxTransverterDeltaFrequency(qint64 tx_transverter_delta_frequency) {
|
|
this->tx_transverter_delta_frequency = tx_transverter_delta_frequency;
|
|
this->m_tx_transverter_delta_frequency_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getIqOrder() {
|
|
return iq_order;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setIqOrder(qint32 iq_order) {
|
|
this->iq_order = iq_order;
|
|
this->m_iq_order_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRx1SubsamplingIndex() {
|
|
return rx1_subsampling_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx1SubsamplingIndex(qint32 rx1_subsampling_index) {
|
|
this->rx1_subsampling_index = rx1_subsampling_index;
|
|
this->m_rx1_subsampling_index_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRx2SubsamplingIndex() {
|
|
return rx2_subsampling_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx2SubsamplingIndex(qint32 rx2_subsampling_index) {
|
|
this->rx2_subsampling_index = rx2_subsampling_index;
|
|
this->m_rx2_subsampling_index_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRx3SubsamplingIndex() {
|
|
return rx3_subsampling_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx3SubsamplingIndex(qint32 rx3_subsampling_index) {
|
|
this->rx3_subsampling_index = rx3_subsampling_index;
|
|
this->m_rx3_subsampling_index_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRx4SubsamplingIndex() {
|
|
return rx4_subsampling_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx4SubsamplingIndex(qint32 rx4_subsampling_index) {
|
|
this->rx4_subsampling_index = rx4_subsampling_index;
|
|
this->m_rx4_subsampling_index_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRx5SubsamplingIndex() {
|
|
return rx5_subsampling_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx5SubsamplingIndex(qint32 rx5_subsampling_index) {
|
|
this->rx5_subsampling_index = rx5_subsampling_index;
|
|
this->m_rx5_subsampling_index_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRx6SubsamplingIndex() {
|
|
return rx6_subsampling_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx6SubsamplingIndex(qint32 rx6_subsampling_index) {
|
|
this->rx6_subsampling_index = rx6_subsampling_index;
|
|
this->m_rx6_subsampling_index_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRx7SubsamplingIndex() {
|
|
return rx7_subsampling_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx7SubsamplingIndex(qint32 rx7_subsampling_index) {
|
|
this->rx7_subsampling_index = rx7_subsampling_index;
|
|
this->m_rx7_subsampling_index_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRx8SubsamplingIndex() {
|
|
return rx8_subsampling_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRx8SubsamplingIndex(qint32 rx8_subsampling_index) {
|
|
this->rx8_subsampling_index = rx8_subsampling_index;
|
|
this->m_rx8_subsampling_index_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getSampleRateIndex() {
|
|
return sample_rate_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setSampleRateIndex(qint32 sample_rate_index) {
|
|
this->sample_rate_index = sample_rate_index;
|
|
this->m_sample_rate_index_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getLog2Decim() {
|
|
return log2_decim;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setLog2Decim(qint32 log2_decim) {
|
|
this->log2_decim = log2_decim;
|
|
this->m_log2_decim_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getLOppmTenths() {
|
|
return l_oppm_tenths;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setLOppmTenths(qint32 l_oppm_tenths) {
|
|
this->l_oppm_tenths = l_oppm_tenths;
|
|
this->m_l_oppm_tenths_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getPreamp() {
|
|
return preamp;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setPreamp(qint32 preamp) {
|
|
this->preamp = preamp;
|
|
this->m_preamp_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getRandom() {
|
|
return random;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setRandom(qint32 random) {
|
|
this->random = random;
|
|
this->m_random_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getDither() {
|
|
return dither;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setDither(qint32 dither) {
|
|
this->dither = dither;
|
|
this->m_dither_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getDuplex() {
|
|
return duplex;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setDuplex(qint32 duplex) {
|
|
this->duplex = duplex;
|
|
this->m_duplex_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getDcBlock() {
|
|
return dc_block;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setDcBlock(qint32 dc_block) {
|
|
this->dc_block = dc_block;
|
|
this->m_dc_block_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getIqCorrection() {
|
|
return iq_correction;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setIqCorrection(qint32 iq_correction) {
|
|
this->iq_correction = iq_correction;
|
|
this->m_iq_correction_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getTxDrive() {
|
|
return tx_drive;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setTxDrive(qint32 tx_drive) {
|
|
this->tx_drive = tx_drive;
|
|
this->m_tx_drive_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getUseReverseApi() {
|
|
return use_reverse_api;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setUseReverseApi(qint32 use_reverse_api) {
|
|
this->use_reverse_api = use_reverse_api;
|
|
this->m_use_reverse_api_isSet = true;
|
|
}
|
|
|
|
QString*
|
|
SWGMetisMISOSettings::getReverseApiAddress() {
|
|
return reverse_api_address;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setReverseApiAddress(QString* reverse_api_address) {
|
|
this->reverse_api_address = reverse_api_address;
|
|
this->m_reverse_api_address_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getReverseApiPort() {
|
|
return reverse_api_port;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setReverseApiPort(qint32 reverse_api_port) {
|
|
this->reverse_api_port = reverse_api_port;
|
|
this->m_reverse_api_port_isSet = true;
|
|
}
|
|
|
|
qint32
|
|
SWGMetisMISOSettings::getReverseApiDeviceIndex() {
|
|
return reverse_api_device_index;
|
|
}
|
|
void
|
|
SWGMetisMISOSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
|
|
this->reverse_api_device_index = reverse_api_device_index;
|
|
this->m_reverse_api_device_index_isSet = true;
|
|
}
|
|
|
|
|
|
bool
|
|
SWGMetisMISOSettings::isSet(){
|
|
bool isObjectUpdated = false;
|
|
do{
|
|
if(m_nb_receivers_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_tx_enable_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx1_center_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx2_center_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx3_center_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx4_center_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx5_center_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx6_center_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx7_center_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx8_center_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_tx_center_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx_transverter_mode_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx_transverter_delta_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_tx_transverter_mode_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_tx_transverter_delta_frequency_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_iq_order_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx1_subsampling_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx2_subsampling_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx3_subsampling_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx4_subsampling_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx5_subsampling_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx6_subsampling_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx7_subsampling_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_rx8_subsampling_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_sample_rate_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_log2_decim_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_l_oppm_tenths_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_preamp_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_random_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_dither_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_duplex_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_dc_block_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_iq_correction_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_tx_drive_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_use_reverse_api_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(reverse_api_address && *reverse_api_address != QString("")){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_reverse_api_port_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
if(m_reverse_api_device_index_isSet){
|
|
isObjectUpdated = true; break;
|
|
}
|
|
}while(false);
|
|
return isObjectUpdated;
|
|
}
|
|
}
|
|
|