1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 23:55:13 -05:00

REST API: implement reverse API settings (3)

This commit is contained in:
f4exb 2019-01-11 14:45:00 +01:00
parent 3e096580b0
commit 0215839220
85 changed files with 2794 additions and 146 deletions

View File

@ -34,8 +34,8 @@ const char *fcd_traits<ProPlus>::displayedName = "FunCube Dongle Pro+";
const char *fcd_traits<Pro>::pluginDisplayedName = "FunCube Pro Input";
const char *fcd_traits<ProPlus>::pluginDisplayedName = "FunCube Pro+ Input";
const char *fcd_traits<Pro>::pluginVersion = "4.4.0";
const char *fcd_traits<ProPlus>::pluginVersion = "4.4.0";
const char *fcd_traits<Pro>::pluginVersion = "4.4.1";
const char *fcd_traits<ProPlus>::pluginVersion = "4.4.1";
const int64_t fcd_traits<Pro>::loLowLimitFreq = 64000000L;
const int64_t fcd_traits<ProPlus>::loLowLimitFreq = 150000L;

View File

@ -566,6 +566,17 @@ void Bladerf1Output::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings&
response.getBladeRf1OutputSettings()->setXb200(settings.m_xb200 ? 1 : 0);
response.getBladeRf1OutputSettings()->setXb200Path((int) settings.m_xb200Path);
response.getBladeRf1OutputSettings()->setXb200Filter((int) settings.m_xb200Filter);
response.getBladeRf1OutputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getBladeRf1OutputSettings()->getReverseApiAddress()) {
*response.getBladeRf1OutputSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getBladeRf1OutputSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getBladeRf1OutputSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getBladeRf1OutputSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
int Bladerf1Output::webapiSettingsPutPatch(
@ -604,6 +615,18 @@ int Bladerf1Output::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("xb200Filter")) {
settings.m_xb200Filter = static_cast<bladerf_xb200_filter>(response.getBladeRf1OutputSettings()->getXb200Filter());
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getBladeRf1OutputSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getBladeRf1OutputSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getBladeRf1OutputSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getBladeRf1OutputSettings()->getReverseApiDeviceIndex();
}
MsgConfigureBladerf1 *msg = MsgConfigureBladerf1::create(settings, force);
m_inputMessageQueue.push(msg);

View File

@ -30,7 +30,7 @@
const PluginDescriptor Bladerf1OutputPlugin::m_pluginDescriptor = {
QString("BladeRF1 Output"),
QString("4.3.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -993,6 +993,18 @@ int BladeRF2Output::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("transverterMode")) {
settings.m_transverterMode = response.getBladeRf2OutputSettings()->getTransverterMode() != 0;
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getBladeRf2OutputSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getBladeRf2OutputSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getBladeRf2OutputSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getBladeRf2OutputSettings()->getReverseApiDeviceIndex();
}
MsgConfigureBladeRF2 *msg = MsgConfigureBladeRF2::create(settings, force);
m_inputMessageQueue.push(msg);
@ -1027,6 +1039,17 @@ void BladeRF2Output::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings&
response.getBladeRf2OutputSettings()->setGlobalGain(settings.m_globalGain);
response.getBladeRf2OutputSettings()->setTransverterDeltaFrequency(settings.m_transverterDeltaFrequency);
response.getBladeRf2OutputSettings()->setTransverterMode(settings.m_transverterMode ? 1 : 0);
response.getBladeRf2OutputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getBladeRf2OutputSettings()->getReverseApiAddress()) {
*response.getBladeRf2OutputSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getBladeRf2OutputSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getBladeRf2OutputSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getBladeRf2OutputSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void BladeRF2Output::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response)

View File

@ -30,7 +30,7 @@
const PluginDescriptor BladeRF2OutputPlugin::m_pluginDescriptor = {
QString("BladeRF2 Output"),
QString("4.3.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -543,6 +543,18 @@ int HackRFOutput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("lnaExt")) {
settings.m_lnaExt = response.getHackRfOutputSettings()->getLnaExt() != 0;
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getHackRfOutputSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getHackRfOutputSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getHackRfOutputSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getHackRfOutputSettings()->getReverseApiDeviceIndex();
}
MsgConfigureHackRF *msg = MsgConfigureHackRF::create(settings, force);
m_inputMessageQueue.push(msg);
@ -567,6 +579,17 @@ void HackRFOutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re
response.getHackRfOutputSettings()->setDevSampleRate(settings.m_devSampleRate);
response.getHackRfOutputSettings()->setBiasT(settings.m_biasT ? 1 : 0);
response.getHackRfOutputSettings()->setLnaExt(settings.m_lnaExt ? 1 : 0);
response.getHackRfOutputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getHackRfOutputSettings()->getReverseApiAddress()) {
*response.getHackRfOutputSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getHackRfOutputSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getHackRfOutputSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getHackRfOutputSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
int HackRFOutput::webapiRunGet(

View File

@ -30,7 +30,7 @@
const PluginDescriptor HackRFOutputPlugin::m_pluginDescriptor = {
QString("HackRF Output"),
QString("3.14.5"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -701,6 +701,18 @@ int PlutoSDROutput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("transverterMode")) {
settings.m_transverterMode = response.getPlutoSdrOutputSettings()->getTransverterMode() != 0;
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getPlutoSdrOutputSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getPlutoSdrOutputSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getPlutoSdrOutputSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getPlutoSdrOutputSettings()->getReverseApiDeviceIndex();
}
MsgConfigurePlutoSDR *msg = MsgConfigurePlutoSDR::create(settings, force);
m_inputMessageQueue.push(msg);
@ -741,6 +753,16 @@ void PlutoSDROutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings&
response.getPlutoSdrOutputSettings()->setAntennaPath((int) settings.m_antennaPath);
response.getPlutoSdrOutputSettings()->setTransverterDeltaFrequency(settings.m_transverterDeltaFrequency);
response.getPlutoSdrOutputSettings()->setTransverterMode(settings.m_transverterMode ? 1 : 0);
response.getPlutoSdrOutputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getPlutoSdrOutputSettings()->getReverseApiAddress()) {
*response.getPlutoSdrOutputSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getPlutoSdrOutputSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getPlutoSdrOutputSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getPlutoSdrOutputSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void PlutoSDROutput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response)

View File

@ -30,7 +30,7 @@ class DeviceSourceAPI;
const PluginDescriptor PlutoSDROutputPlugin::m_pluginDescriptor = {
QString("PlutoSDR Output"),
QString("4.4.0"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -411,6 +411,18 @@ int SDRdaemonSinkOutput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("channelIndex")) {
settings.m_channelIndex = response.getSdrDaemonSinkSettings()->getChannelIndex();
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getSdrDaemonSinkSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getSdrDaemonSinkSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getSdrDaemonSinkSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getSdrDaemonSinkSettings()->getReverseApiDeviceIndex();
}
MsgConfigureSDRdaemonSink *msg = MsgConfigureSDRdaemonSink::create(settings, force);
m_inputMessageQueue.push(msg);
@ -448,6 +460,16 @@ void SDRdaemonSinkOutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSetti
response.getSdrDaemonSinkSettings()->setDataPort(settings.m_dataPort);
response.getSdrDaemonSinkSettings()->setDeviceIndex(settings.m_deviceIndex);
response.getSdrDaemonSinkSettings()->setChannelIndex(settings.m_channelIndex);
response.getSdrDaemonSinkSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getSdrDaemonSinkSettings()->getReverseApiAddress()) {
*response.getSdrDaemonSinkSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getSdrDaemonSinkSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getSdrDaemonSinkSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getSdrDaemonSinkSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void SDRdaemonSinkOutput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response)

View File

@ -29,7 +29,7 @@
const PluginDescriptor SDRdaemonSinkPlugin::m_pluginDescriptor = {
QString("SDRdaemon sink output"),
QString("4.3.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -1450,6 +1450,19 @@ int SoapySDROutput::webapiSettingsPutPatch(
}
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getSoapySdrOutputSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getSoapySdrOutputSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getSoapySdrOutputSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getSoapySdrOutputSettings()->getReverseApiDeviceIndex();
}
MsgConfigureSoapySDROutput *msg = MsgConfigureSoapySDROutput::create(settings, force);
m_inputMessageQueue.push(msg);
@ -1593,6 +1606,17 @@ void SoapySDROutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings&
const QVariant& v = settings.m_deviceArgSettings.value(itName);
webapiFormatArgValue(v, response.getSoapySdrOutputSettings()->getDeviceArgSettings()->back());
}
response.getSoapySdrOutputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getSoapySdrOutputSettings()->getReverseApiAddress()) {
*response.getSoapySdrOutputSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getSoapySdrOutputSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getSoapySdrOutputSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getSoapySdrOutputSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void SoapySDROutput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response)

View File

@ -31,7 +31,7 @@
const PluginDescriptor SoapySDROutputPlugin::m_pluginDescriptor = {
QString("SoapySDR Output"),
QString("4.3.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -946,6 +946,18 @@ int FCDProInput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("fileRecordName")) {
settings.m_fileRecordName = *response.getFcdProSettings()->getFileRecordName();
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getFcdProSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getFcdProSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getFcdProSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getFcdProSettings()->getReverseApiDeviceIndex();
}
MsgConfigureFCDPro *msg = MsgConfigureFCDPro::create(settings, force);
m_inputMessageQueue.push(msg);
@ -992,6 +1004,17 @@ void FCDProInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res
} else {
response.getFcdProSettings()->setFileRecordName(new QString(settings.m_fileRecordName));
}
response.getFcdProSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getFcdProSettings()->getReverseApiAddress()) {
*response.getFcdProSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getFcdProSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getFcdProSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getFcdProSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void FCDProInput::webapiReverseSendSettings(QList<QString>& deviceSettingsKeys, const FCDProSettings& settings, bool force)

View File

@ -646,6 +646,18 @@ int FCDProPlusInput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("fileRecordName")) {
settings.m_fileRecordName = *response.getFcdProPlusSettings()->getFileRecordName();
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getFcdProPlusSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getFcdProPlusSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getFcdProPlusSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getFcdProPlusSettings()->getReverseApiDeviceIndex();
}
MsgConfigureFCDProPlus *msg = MsgConfigureFCDProPlus::create(settings, force);
m_inputMessageQueue.push(msg);
@ -683,6 +695,17 @@ void FCDProPlusInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings&
} else {
response.getFcdProPlusSettings()->setFileRecordName(new QString(settings.m_fileRecordName));
}
response.getFcdProPlusSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getFcdProPlusSettings()->getReverseApiAddress()) {
*response.getFcdProPlusSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getFcdProPlusSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getFcdProPlusSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getFcdProPlusSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void FCDProPlusInput::webapiReverseSendSettings(QList<QString>& deviceSettingsKeys, const FCDProPlusSettings& settings, bool force)

View File

@ -467,6 +467,18 @@ int FileSourceInput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("loop")) {
settings.m_loop = response.getFileSourceSettings()->getLoop() != 0;
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getFileSourceSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getFileSourceSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getFileSourceSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getFileSourceSettings()->getReverseApiDeviceIndex();
}
MsgConfigureFileSource *msg = MsgConfigureFileSource::create(settings, force);
m_inputMessageQueue.push(msg);
@ -526,6 +538,16 @@ void FileSourceInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings&
response.getFileSourceSettings()->setAccelerationFactor(settings.m_accelerationFactor);
response.getFileSourceSettings()->setLoop(settings.m_loop ? 1 : 0);
response.getFileSourceSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getFileSourceSettings()->getReverseApiAddress()) {
*response.getFileSourceSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getFileSourceSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getFileSourceSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getFileSourceSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void FileSourceInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response)

View File

@ -29,7 +29,7 @@
const PluginDescriptor FileSourcePlugin::m_pluginDescriptor = {
QString("File source input"),
QString("4.2.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -632,6 +632,18 @@ int HackRFInput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("fileRecordName")) {
settings.m_fileRecordName = *response.getHackRfInputSettings()->getFileRecordName();
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getHackRfInputSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getHackRfInputSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getHackRfInputSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getHackRfInputSettings()->getReverseApiDeviceIndex();
}
MsgConfigureHackRF *msg = MsgConfigureHackRF::create(settings, force);
m_inputMessageQueue.push(msg);
@ -667,6 +679,17 @@ void HackRFInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res
} else {
response.getHackRfInputSettings()->setFileRecordName(new QString(settings.m_fileRecordName));
}
response.getHackRfInputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getHackRfInputSettings()->getReverseApiAddress()) {
*response.getHackRfInputSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getHackRfInputSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getHackRfInputSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getHackRfInputSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
int HackRFInput::webapiRunGet(

View File

@ -32,7 +32,7 @@
const PluginDescriptor HackRFInputPlugin::m_pluginDescriptor = {
QString("HackRF Input"),
QString("4.3.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -530,6 +530,18 @@ int PerseusInput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("fileRecordName")) {
settings.m_fileRecordName = *response.getPerseusSettings()->getFileRecordName();
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getPerseusSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getPerseusSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getPerseusSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getPerseusSettings()->getReverseApiDeviceIndex();
}
MsgConfigurePerseus *msg = MsgConfigurePerseus::create(settings, force);
m_inputMessageQueue.push(msg);
@ -573,6 +585,17 @@ void PerseusInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re
} else {
response.getPerseusSettings()->setFileRecordName(new QString(settings.m_fileRecordName));
}
response.getPerseusSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getPerseusSettings()->getReverseApiAddress()) {
*response.getPerseusSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getPerseusSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getPerseusSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getPerseusSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void PerseusInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response)

View File

@ -30,7 +30,7 @@
const PluginDescriptor PerseusPlugin::m_pluginDescriptor = {
QString("Perseus Input"),
QString("4.3.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -814,6 +814,18 @@ int PlutoSDRInput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("fileRecordName")) {
settings.m_fileRecordName = *response.getPlutoSdrInputSettings()->getFileRecordName();
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getPlutoSdrInputSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getPlutoSdrInputSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getPlutoSdrInputSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getPlutoSdrInputSettings()->getReverseApiDeviceIndex();
}
MsgConfigurePlutoSDR *msg = MsgConfigurePlutoSDR::create(settings, force);
m_inputMessageQueue.push(msg);
@ -864,6 +876,17 @@ void PlutoSDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& r
} else {
response.getPlutoSdrInputSettings()->setFileRecordName(new QString(settings.m_fileRecordName));
}
response.getPlutoSdrInputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getPlutoSdrInputSettings()->getReverseApiAddress()) {
*response.getPlutoSdrInputSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getPlutoSdrInputSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getPlutoSdrInputSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getPlutoSdrInputSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void PlutoSDRInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response)

View File

@ -30,7 +30,7 @@ class DeviceSourceAPI;
const PluginDescriptor PlutoSDRInputPlugin::m_pluginDescriptor = {
QString("PlutoSDR Input"),
QString("4.4.0"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -353,6 +353,18 @@ int SDRdaemonSourceInput::webapiSettingsPutPatch(
if (deviceSettingsKeys.contains("fileRecordName")) {
settings.m_fileRecordName = *response.getSdrDaemonSourceSettings()->getFileRecordName();
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getSdrDaemonSourceSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getSdrDaemonSourceSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getSdrDaemonSourceSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getSdrDaemonSourceSettings()->getReverseApiDeviceIndex();
}
MsgConfigureSDRdaemonSource *msg = MsgConfigureSDRdaemonSource::create(settings, force);
m_inputMessageQueue.push(msg);
@ -381,6 +393,17 @@ void SDRdaemonSourceInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSett
} else {
response.getSdrDaemonSourceSettings()->setFileRecordName(new QString(settings.m_fileRecordName));
}
response.getSdrDaemonSourceSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getSdrDaemonSourceSettings()->getReverseApiAddress()) {
*response.getSdrDaemonSourceSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getSdrDaemonSourceSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getSdrDaemonSourceSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getSdrDaemonSourceSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
int SDRdaemonSourceInput::webapiReportGet(

View File

@ -29,7 +29,7 @@
const PluginDescriptor SDRdaemonSourcePlugin::m_pluginDescriptor = {
QString("SDRdaemon source input"),
QString("4.3.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -731,7 +731,19 @@ int SDRPlayInput::webapiSettingsPutPatch(
settings.m_basebandGain = response.getSdrPlaySettings()->getBasebandGain();
}
if (deviceSettingsKeys.contains("fileRecordName")) {
settings.m_fileRecordName = *response.getRtlSdrSettings()->getFileRecordName();
settings.m_fileRecordName = *response.getSdrPlaySettings()->getFileRecordName();
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getSdrPlaySettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getSdrPlaySettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getSdrPlaySettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getSdrPlaySettings()->getReverseApiDeviceIndex();
}
MsgConfigureSDRPlay *msg = MsgConfigureSDRPlay::create(settings, force);
@ -770,6 +782,17 @@ void SDRPlayInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re
} else {
response.getSdrPlaySettings()->setFileRecordName(new QString(settings.m_fileRecordName));
}
response.getSdrPlaySettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getSdrPlaySettings()->getReverseApiAddress()) {
*response.getSdrPlaySettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getSdrPlaySettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getSdrPlaySettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getSdrPlaySettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
int SDRPlayInput::webapiReportGet(

View File

@ -28,7 +28,7 @@
const PluginDescriptor SDRPlayPlugin::m_pluginDescriptor = {
QString("SDRPlay RSP1 Input"),
QString("4.3.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -1525,6 +1525,19 @@ int SoapySDRInput::webapiSettingsPutPatch(
}
}
if (deviceSettingsKeys.contains("useReverseAPI")) {
settings.m_useReverseAPI = response.getSoapySdrInputSettings()->getUseReverseApi() != 0;
}
if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getSoapySdrInputSettings()->getReverseApiAddress();
}
if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getSoapySdrInputSettings()->getReverseApiPort();
}
if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) {
settings.m_reverseAPIDeviceIndex = response.getSoapySdrInputSettings()->getReverseApiDeviceIndex();
}
MsgConfigureSoapySDRInput *msg = MsgConfigureSoapySDRInput::create(settings, force);
m_inputMessageQueue.push(msg);
@ -1677,6 +1690,17 @@ void SoapySDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& r
const QVariant& v = settings.m_deviceArgSettings.value(itName);
webapiFormatArgValue(v, response.getSoapySdrInputSettings()->getDeviceArgSettings()->back());
}
response.getSoapySdrInputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getSoapySdrInputSettings()->getReverseApiAddress()) {
*response.getSoapySdrInputSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else {
response.getSoapySdrInputSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
}
response.getSoapySdrInputSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getSoapySdrInputSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
}
void SoapySDRInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response)

View File

@ -30,7 +30,7 @@
const PluginDescriptor SoapySDRInputPlugin::m_pluginDescriptor = {
QString("SoapySDR Input"),
QString("4.3.2"),
QString("4.4.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -1453,6 +1453,19 @@ margin-bottom: 20px;
},
"xb200Filter" : {
"type" : "integer"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "BladeRF1"
@ -1589,6 +1602,19 @@ margin-bottom: 20px;
"transverterDeltaFrequency" : {
"type" : "integer",
"format" : "int64"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "BladeRF2"
@ -2445,6 +2471,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "FCDProPlus"
@ -2527,6 +2566,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "FCDPro"
@ -2572,6 +2624,19 @@ margin-bottom: 20px;
"loop" : {
"type" : "integer",
"description" : "1 if playing in a loop else 0"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "FileSource"
@ -2667,6 +2732,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "HackRF"
@ -2697,6 +2775,19 @@ margin-bottom: 20px;
},
"lnaExt" : {
"type" : "integer"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "HackRF"
@ -3311,6 +3402,19 @@ margin-bottom: 20px;
"attenuator" : {
"type" : "integer",
"description" : "Attenuator setting in Bels (0, 10, 20 30 dB)"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "Perseus"
@ -3397,6 +3501,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "PlutoSDR"
@ -3464,6 +3581,19 @@ margin-bottom: 20px;
"transverterDeltaFrequency" : {
"type" : "integer",
"format" : "int64"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "PlutoSDR"
@ -3848,6 +3978,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SDRplay1"
@ -3900,6 +4043,19 @@ margin-bottom: 20px;
},
"channelIndex" : {
"type" : "integer"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SDRdaemonSink"
@ -3954,6 +4110,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SDRdaemonSource"
@ -4329,6 +4498,19 @@ margin-bottom: 20px;
"items" : {
"$ref" : "#/definitions/ArgValue"
}
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SoapySDR"
@ -4406,6 +4588,19 @@ margin-bottom: 20px;
"items" : {
"$ref" : "#/definitions/ArgValue"
}
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SoapySDR"
@ -24152,7 +24347,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2019-01-10T23:01:08.580+01:00
Generated 2019-01-11T14:37:54.502+01:00
</div>
</div>
</div>

View File

@ -62,3 +62,12 @@ BladeRF1OutputSettings:
type: integer
xb200Filter:
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer

View File

@ -80,6 +80,15 @@ BladeRF2OutputSettings:
transverterDeltaFrequency:
type: integer
format: int64
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
BladeRF2OutputReport:
description: BladeRF2

View File

@ -53,4 +53,13 @@ FCDProSettings:
format: int64
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer

View File

@ -39,3 +39,12 @@ FCDProPlusSettings:
format: int64
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer

View File

@ -10,7 +10,16 @@ FileSourceSettings:
loop:
description: 1 if playing in a loop else 0
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
FileSourceReport:
description: FileSource
properties:
@ -31,4 +40,3 @@ FileSourceReport:
durationTime:
description: Duration time string representation
type: string

View File

@ -1,6 +1,6 @@
HackRFInputSettings:
description: HackRF
properties:
properties:
centerFrequency:
type: integer
format: int64
@ -12,7 +12,7 @@ HackRFInputSettings:
type: integer
vgaGain:
type: integer
log2Decim:
log2Decim:
type: integer
fcPos:
description: 0=Infra 1=Supra 2=Center
@ -31,6 +31,15 @@ HackRFInputSettings:
type: integer
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
HackRFOutputSettings:
description: HackRF
@ -44,7 +53,7 @@ HackRFOutputSettings:
type: integer
vgaGain:
type: integer
log2Interp:
log2Interp:
type: integer
devSampleRate:
type: integer
@ -52,3 +61,12 @@ HackRFOutputSettings:
type: integer
lnaExt:
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer

View File

@ -23,11 +23,20 @@ PerseusSettings:
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
fileRecordName:
type: string
attenuator:
description: Attenuator setting in Bels (0, 10, 20 30 dB)
description: Attenuator setting in Bels (0, 10, 20 30 dB)
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
PerseusReport:
@ -36,5 +45,4 @@ PerseusReport:
sampleRates:
type: array
items:
$ref: "/doc/swagger/include/Structs.yaml#/SampleRate"
$ref: "/doc/swagger/include/Structs.yaml#/SampleRate"

View File

@ -1,6 +1,6 @@
PlutoSdrInputSettings:
description: PlutoSDR
properties:
properties:
centerFrequency:
type: integer
format: int64
@ -11,7 +11,7 @@ PlutoSdrInputSettings:
lpfFIREnable:
description: Low pass FIR filter enable (1 if enabled else 0)
type: integer
lpfFIRBW:
lpfFIRBW:
description: digital lowpass FIR filter bandwidth (Hz)
type: integer
lpfFIRlog2Decim:
@ -30,7 +30,7 @@ PlutoSdrInputSettings:
log2Decim:
type: integer
lpfBW:
description: Analog lowpass filter bandwidth (Hz)
description: Analog lowpass filter bandwidth (Hz)
type: integer
gain:
description: Hardware gain
@ -43,13 +43,22 @@ PlutoSdrInputSettings:
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
PlutoSdrOutputSettings:
description: PlutoSDR
properties:
properties:
centerFrequency:
type: integer
format: int64
@ -60,7 +69,7 @@ PlutoSdrOutputSettings:
lpfFIREnable:
description: Low pass FIR filter enable (1 if enabled else 0)
type: integer
lpfFIRBW:
lpfFIRBW:
description: digital lowpass FIR filter bandwidth (Hz)
type: integer
lpfFIRlog2Interp:
@ -72,7 +81,7 @@ PlutoSdrOutputSettings:
log2Interp:
type: integer
lpfBW:
description: Analog lowpass filter bandwidth (Hz)
description: Analog lowpass filter bandwidth (Hz)
type: integer
att:
description: Hardware attenuator gain in decibel fourths (negative)
@ -83,11 +92,20 @@ PlutoSdrOutputSettings:
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
PlutoSdrInputReport:
description: PlutoSDR
properties:
properties:
adcRate:
type: integer
rssi:
@ -96,15 +114,15 @@ PlutoSdrInputReport:
type: integer
temperature:
type: number
format: float
format: float
PlutoSdrOutputReport:
description: PlutoSDR
properties:
properties:
dacRate:
type: integer
rssi:
type: string
temperature:
type: number
format: float
format: float

View File

@ -26,6 +26,15 @@ SDRdaemonSinkSettings:
channelIndex:
device: remote SDRangel instance channel index
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SDRdaemonSinkReport:
description: SDRdaemonSource
@ -37,4 +46,3 @@ SDRdaemonSinkReport:
sampleCount:
description: count of samples that have been sent
type: integer

View File

@ -15,6 +15,15 @@ SDRdaemonSourceSettings:
type: integer
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SDRdaemonSourceReport:
description: SDRdaemonSource
@ -36,4 +45,3 @@ SDRdaemonSourceReport:
maxNbRecovery:
description: Maximum number of recovery blocks used per frame
type: integer

View File

@ -8,17 +8,17 @@ SDRPlaySettings:
type: integer
LOppmTenths:
type: integer
frequencyBandIndex:
frequencyBandIndex:
type: integer
ifFrequencyIndex:
ifFrequencyIndex:
type: integer
bandwidthIndex:
bandwidthIndex:
type: integer
devSampleRateIndex:
devSampleRateIndex:
type: integer
log2Decim:
log2Decim:
type: integer
fcPos:
fcPos:
type: integer
dcBlock:
type: integer
@ -35,6 +35,15 @@ SDRPlaySettings:
type: integer
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SDRPlayReport:
description: SDRplay1

View File

@ -3,7 +3,7 @@ SoapySDRInputSettings:
properties:
centerFrequency:
type: integer
format: int64
format: int64
LOppmTenths:
type: integer
devSampleRate:
@ -13,17 +13,17 @@ SoapySDRInputSettings:
fcPos:
type: integer
softDCCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
softIQCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
transverterMode:
description: boolean not zero for true
description: boolean not zero for true
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
fileRecordName:
type: string
antenna:
@ -33,21 +33,21 @@ SoapySDRInputSettings:
tunableElements:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
globalGain:
type: integer
individualGains:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
autoGain:
description: boolean not zero for true
description: boolean not zero for true
type: integer
autoDCCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
autoIQCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
dcCorrection:
$ref: "/doc/swagger/include/Structs.yaml#/Complex"
@ -56,18 +56,27 @@ SoapySDRInputSettings:
streamArgSettings:
type: array
items:
$ref: "#/definitions/ArgValue"
deviceArgSettings:
$ref: "#/definitions/ArgValue"
deviceArgSettings:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SoapySDROutputSettings:
description: SoapySDR
properties:
centerFrequency:
type: integer
format: int64
format: int64
LOppmTenths:
type: integer
devSampleRate:
@ -75,11 +84,11 @@ SoapySDROutputSettings:
log2Interp:
type: integer
transverterMode:
description: boolean not zero for true
description: boolean not zero for true
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
antenna:
type: string
bandwidth:
@ -87,21 +96,21 @@ SoapySDROutputSettings:
tunableElements:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
globalGain:
type: integer
individualGains:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
autoGain:
description: boolean not zero for true
description: boolean not zero for true
type: integer
autoDCCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
autoIQCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
dcCorrection:
$ref: "/doc/swagger/include/Structs.yaml#/Complex"
@ -110,12 +119,21 @@ SoapySDROutputSettings:
streamArgSettings:
type: array
items:
$ref: "#/definitions/ArgValue"
deviceArgSettings:
$ref: "#/definitions/ArgValue"
deviceArgSettings:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SoapySDRReport:
description: SoapySDR
properties:
@ -143,7 +161,7 @@ SoapySDRReport:
type: array
items:
type: string
hasAGC:
hasAGC:
description: boolean not zero for true
type: integer
gainRange:
@ -164,13 +182,13 @@ SoapySDRReport:
type: array
items:
$ref: "/doc/swagger/include/Structs.yaml#/RangeFloat"
bandwidthsRanges:
bandwidthsRanges:
type: array
items:
$ref: "/doc/swagger/include/Structs.yaml#/RangeFloat"
definitions:
SoapySDRGainSetting:
description: A named gain setting specified by its range
properties:
@ -178,7 +196,7 @@ definitions:
type: string
range:
$ref: "/doc/swagger/include/Structs.yaml#/RangeFloat"
SoapySDRFrequencySetting:
description: A named frequency setting specified by a range list
properties:
@ -188,7 +206,7 @@ definitions:
type: array
items:
$ref: "/doc/swagger/include/Structs.yaml#/RangeFloat"
ArgValue:
descripion: Generic argument value
properties:
@ -199,7 +217,7 @@ definitions:
enum: [bool, int, float, string]
valueString:
type: string
ArgInfo:
descripion: Generic argument information
properties:
@ -226,6 +244,5 @@ definitions:
type: array
items:
type: string

View File

@ -62,3 +62,12 @@ BladeRF1OutputSettings:
type: integer
xb200Filter:
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer

View File

@ -80,6 +80,15 @@ BladeRF2OutputSettings:
transverterDeltaFrequency:
type: integer
format: int64
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
BladeRF2OutputReport:
description: BladeRF2

View File

@ -53,4 +53,13 @@ FCDProSettings:
format: int64
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer

View File

@ -39,3 +39,12 @@ FCDProPlusSettings:
format: int64
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer

View File

@ -10,7 +10,16 @@ FileSourceSettings:
loop:
description: 1 if playing in a loop else 0
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
FileSourceReport:
description: FileSource
properties:
@ -31,4 +40,3 @@ FileSourceReport:
durationTime:
description: Duration time string representation
type: string

View File

@ -1,6 +1,6 @@
HackRFInputSettings:
description: HackRF
properties:
properties:
centerFrequency:
type: integer
format: int64
@ -12,7 +12,7 @@ HackRFInputSettings:
type: integer
vgaGain:
type: integer
log2Decim:
log2Decim:
type: integer
fcPos:
description: 0=Infra 1=Supra 2=Center
@ -31,6 +31,15 @@ HackRFInputSettings:
type: integer
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
HackRFOutputSettings:
description: HackRF
@ -44,7 +53,7 @@ HackRFOutputSettings:
type: integer
vgaGain:
type: integer
log2Interp:
log2Interp:
type: integer
devSampleRate:
type: integer
@ -52,3 +61,12 @@ HackRFOutputSettings:
type: integer
lnaExt:
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer

View File

@ -23,11 +23,20 @@ PerseusSettings:
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
fileRecordName:
type: string
attenuator:
description: Attenuator setting in Bels (0, 10, 20 30 dB)
description: Attenuator setting in Bels (0, 10, 20 30 dB)
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
PerseusReport:
@ -36,5 +45,4 @@ PerseusReport:
sampleRates:
type: array
items:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/SampleRate"
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/SampleRate"

View File

@ -1,6 +1,6 @@
PlutoSdrInputSettings:
description: PlutoSDR
properties:
properties:
centerFrequency:
type: integer
format: int64
@ -11,7 +11,7 @@ PlutoSdrInputSettings:
lpfFIREnable:
description: Low pass FIR filter enable (1 if enabled else 0)
type: integer
lpfFIRBW:
lpfFIRBW:
description: digital lowpass FIR filter bandwidth (Hz)
type: integer
lpfFIRlog2Decim:
@ -30,7 +30,7 @@ PlutoSdrInputSettings:
log2Decim:
type: integer
lpfBW:
description: Analog lowpass filter bandwidth (Hz)
description: Analog lowpass filter bandwidth (Hz)
type: integer
gain:
description: Hardware gain
@ -43,13 +43,22 @@ PlutoSdrInputSettings:
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
PlutoSdrOutputSettings:
description: PlutoSDR
properties:
properties:
centerFrequency:
type: integer
format: int64
@ -60,7 +69,7 @@ PlutoSdrOutputSettings:
lpfFIREnable:
description: Low pass FIR filter enable (1 if enabled else 0)
type: integer
lpfFIRBW:
lpfFIRBW:
description: digital lowpass FIR filter bandwidth (Hz)
type: integer
lpfFIRlog2Interp:
@ -72,7 +81,7 @@ PlutoSdrOutputSettings:
log2Interp:
type: integer
lpfBW:
description: Analog lowpass filter bandwidth (Hz)
description: Analog lowpass filter bandwidth (Hz)
type: integer
att:
description: Hardware attenuator gain in decibel fourths (negative)
@ -83,11 +92,20 @@ PlutoSdrOutputSettings:
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
PlutoSdrInputReport:
description: PlutoSDR
properties:
properties:
adcRate:
type: integer
rssi:
@ -96,15 +114,15 @@ PlutoSdrInputReport:
type: integer
temperature:
type: number
format: float
format: float
PlutoSdrOutputReport:
description: PlutoSDR
properties:
properties:
dacRate:
type: integer
rssi:
type: string
temperature:
type: number
format: float
format: float

View File

@ -26,6 +26,15 @@ SDRdaemonSinkSettings:
channelIndex:
device: remote SDRangel instance channel index
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SDRdaemonSinkReport:
description: SDRdaemonSource
@ -37,4 +46,3 @@ SDRdaemonSinkReport:
sampleCount:
description: count of samples that have been sent
type: integer

View File

@ -15,6 +15,15 @@ SDRdaemonSourceSettings:
type: integer
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SDRdaemonSourceReport:
description: SDRdaemonSource
@ -36,4 +45,3 @@ SDRdaemonSourceReport:
maxNbRecovery:
description: Maximum number of recovery blocks used per frame
type: integer

View File

@ -8,17 +8,17 @@ SDRPlaySettings:
type: integer
LOppmTenths:
type: integer
frequencyBandIndex:
frequencyBandIndex:
type: integer
ifFrequencyIndex:
ifFrequencyIndex:
type: integer
bandwidthIndex:
bandwidthIndex:
type: integer
devSampleRateIndex:
devSampleRateIndex:
type: integer
log2Decim:
log2Decim:
type: integer
fcPos:
fcPos:
type: integer
dcBlock:
type: integer
@ -35,6 +35,15 @@ SDRPlaySettings:
type: integer
fileRecordName:
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SDRPlayReport:
description: SDRplay1

View File

@ -3,7 +3,7 @@ SoapySDRInputSettings:
properties:
centerFrequency:
type: integer
format: int64
format: int64
LOppmTenths:
type: integer
devSampleRate:
@ -13,17 +13,17 @@ SoapySDRInputSettings:
fcPos:
type: integer
softDCCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
softIQCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
transverterMode:
description: boolean not zero for true
description: boolean not zero for true
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
fileRecordName:
type: string
antenna:
@ -33,21 +33,21 @@ SoapySDRInputSettings:
tunableElements:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
globalGain:
type: integer
individualGains:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
autoGain:
description: boolean not zero for true
description: boolean not zero for true
type: integer
autoDCCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
autoIQCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
dcCorrection:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/Complex"
@ -56,18 +56,27 @@ SoapySDRInputSettings:
streamArgSettings:
type: array
items:
$ref: "#/definitions/ArgValue"
deviceArgSettings:
$ref: "#/definitions/ArgValue"
deviceArgSettings:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SoapySDROutputSettings:
description: SoapySDR
properties:
centerFrequency:
type: integer
format: int64
format: int64
LOppmTenths:
type: integer
devSampleRate:
@ -75,11 +84,11 @@ SoapySDROutputSettings:
log2Interp:
type: integer
transverterMode:
description: boolean not zero for true
description: boolean not zero for true
type: integer
transverterDeltaFrequency:
type: integer
format: int64
format: int64
antenna:
type: string
bandwidth:
@ -87,21 +96,21 @@ SoapySDROutputSettings:
tunableElements:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
globalGain:
type: integer
individualGains:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
autoGain:
description: boolean not zero for true
description: boolean not zero for true
type: integer
autoDCCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
autoIQCorrection:
description: boolean not zero for true
description: boolean not zero for true
type: integer
dcCorrection:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/Complex"
@ -110,12 +119,21 @@ SoapySDROutputSettings:
streamArgSettings:
type: array
items:
$ref: "#/definitions/ArgValue"
deviceArgSettings:
$ref: "#/definitions/ArgValue"
deviceArgSettings:
type: array
items:
$ref: "#/definitions/ArgValue"
$ref: "#/definitions/ArgValue"
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
SoapySDRReport:
description: SoapySDR
properties:
@ -143,7 +161,7 @@ SoapySDRReport:
type: array
items:
type: string
hasAGC:
hasAGC:
description: boolean not zero for true
type: integer
gainRange:
@ -164,13 +182,13 @@ SoapySDRReport:
type: array
items:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/RangeFloat"
bandwidthsRanges:
bandwidthsRanges:
type: array
items:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/RangeFloat"
definitions:
SoapySDRGainSetting:
description: A named gain setting specified by its range
properties:
@ -178,7 +196,7 @@ definitions:
type: string
range:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/RangeFloat"
SoapySDRFrequencySetting:
description: A named frequency setting specified by a range list
properties:
@ -188,7 +206,7 @@ definitions:
type: array
items:
$ref: "http://localhost:8081/api/swagger/include/Structs.yaml#/RangeFloat"
ArgValue:
descripion: Generic argument value
properties:
@ -199,7 +217,7 @@ definitions:
enum: [bool, int, float, string]
valueString:
type: string
ArgInfo:
descripion: Generic argument information
properties:
@ -226,6 +244,5 @@ definitions:
type: array
items:
type: string

View File

@ -1453,6 +1453,19 @@ margin-bottom: 20px;
},
"xb200Filter" : {
"type" : "integer"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "BladeRF1"
@ -1589,6 +1602,19 @@ margin-bottom: 20px;
"transverterDeltaFrequency" : {
"type" : "integer",
"format" : "int64"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "BladeRF2"
@ -2445,6 +2471,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "FCDProPlus"
@ -2527,6 +2566,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "FCDPro"
@ -2572,6 +2624,19 @@ margin-bottom: 20px;
"loop" : {
"type" : "integer",
"description" : "1 if playing in a loop else 0"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "FileSource"
@ -2667,6 +2732,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "HackRF"
@ -2697,6 +2775,19 @@ margin-bottom: 20px;
},
"lnaExt" : {
"type" : "integer"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "HackRF"
@ -3311,6 +3402,19 @@ margin-bottom: 20px;
"attenuator" : {
"type" : "integer",
"description" : "Attenuator setting in Bels (0, 10, 20 30 dB)"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "Perseus"
@ -3397,6 +3501,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "PlutoSDR"
@ -3464,6 +3581,19 @@ margin-bottom: 20px;
"transverterDeltaFrequency" : {
"type" : "integer",
"format" : "int64"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "PlutoSDR"
@ -3848,6 +3978,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SDRplay1"
@ -3900,6 +4043,19 @@ margin-bottom: 20px;
},
"channelIndex" : {
"type" : "integer"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SDRdaemonSink"
@ -3954,6 +4110,19 @@ margin-bottom: 20px;
},
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SDRdaemonSource"
@ -4329,6 +4498,19 @@ margin-bottom: 20px;
"items" : {
"$ref" : "#/definitions/ArgValue"
}
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SoapySDR"
@ -4406,6 +4588,19 @@ margin-bottom: 20px;
"items" : {
"$ref" : "#/definitions/ArgValue"
}
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
}
},
"description" : "SoapySDR"
@ -24152,7 +24347,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2019-01-10T23:01:08.580+01:00
Generated 2019-01-11T14:37:54.502+01:00
</div>
</div>
</div>

View File

@ -46,6 +46,14 @@ SWGBladeRF1OutputSettings::SWGBladeRF1OutputSettings() {
m_xb200_path_isSet = false;
xb200_filter = 0;
m_xb200_filter_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;
}
SWGBladeRF1OutputSettings::~SWGBladeRF1OutputSettings() {
@ -72,6 +80,14 @@ SWGBladeRF1OutputSettings::init() {
m_xb200_path_isSet = false;
xb200_filter = 0;
m_xb200_filter_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
@ -85,6 +101,12 @@ SWGBladeRF1OutputSettings::cleanup() {
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGBladeRF1OutputSettings*
@ -116,6 +138,14 @@ SWGBladeRF1OutputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&xb200_filter, pJson["xb200Filter"], "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
@ -159,6 +189,18 @@ SWGBladeRF1OutputSettings::asJsonObject() {
if(m_xb200_filter_isSet){
obj->insert("xb200Filter", QJsonValue(xb200_filter));
}
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;
}
@ -253,6 +295,46 @@ SWGBladeRF1OutputSettings::setXb200Filter(qint32 xb200_filter) {
this->m_xb200_filter_isSet = true;
}
qint32
SWGBladeRF1OutputSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGBladeRF1OutputSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGBladeRF1OutputSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGBladeRF1OutputSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGBladeRF1OutputSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGBladeRF1OutputSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGBladeRF1OutputSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGBladeRF1OutputSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGBladeRF1OutputSettings::isSet(){
@ -267,6 +349,10 @@ SWGBladeRF1OutputSettings::isSet(){
if(m_xb200_isSet){ isObjectUpdated = true; break;}
if(m_xb200_path_isSet){ isObjectUpdated = true; break;}
if(m_xb200_filter_isSet){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -22,6 +22,7 @@
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
@ -68,6 +69,18 @@ public:
qint32 getXb200Filter();
void setXb200Filter(qint32 xb200_filter);
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;
@ -99,6 +112,18 @@ private:
qint32 xb200_filter;
bool m_xb200_filter_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;
};
}

View File

@ -46,6 +46,14 @@ SWGBladeRF2OutputSettings::SWGBladeRF2OutputSettings() {
m_transverter_mode_isSet = false;
transverter_delta_frequency = 0L;
m_transverter_delta_frequency_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;
}
SWGBladeRF2OutputSettings::~SWGBladeRF2OutputSettings() {
@ -72,6 +80,14 @@ SWGBladeRF2OutputSettings::init() {
m_transverter_mode_isSet = false;
transverter_delta_frequency = 0L;
m_transverter_delta_frequency_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
@ -85,6 +101,12 @@ SWGBladeRF2OutputSettings::cleanup() {
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGBladeRF2OutputSettings*
@ -116,6 +138,14 @@ SWGBladeRF2OutputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", "");
::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
@ -159,6 +189,18 @@ SWGBladeRF2OutputSettings::asJsonObject() {
if(m_transverter_delta_frequency_isSet){
obj->insert("transverterDeltaFrequency", QJsonValue(transverter_delta_frequency));
}
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;
}
@ -253,6 +295,46 @@ SWGBladeRF2OutputSettings::setTransverterDeltaFrequency(qint64 transverter_delta
this->m_transverter_delta_frequency_isSet = true;
}
qint32
SWGBladeRF2OutputSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGBladeRF2OutputSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGBladeRF2OutputSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGBladeRF2OutputSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGBladeRF2OutputSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGBladeRF2OutputSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGBladeRF2OutputSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGBladeRF2OutputSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGBladeRF2OutputSettings::isSet(){
@ -267,6 +349,10 @@ SWGBladeRF2OutputSettings::isSet(){
if(m_log2_interp_isSet){ isObjectUpdated = true; break;}
if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -22,6 +22,7 @@
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
@ -68,6 +69,18 @@ public:
qint64 getTransverterDeltaFrequency();
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
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;
@ -99,6 +112,18 @@ private:
qint64 transverter_delta_frequency;
bool m_transverter_delta_frequency_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;
};
}

View File

@ -60,6 +60,14 @@ SWGFCDProPlusSettings::SWGFCDProPlusSettings() {
m_transverter_delta_frequency_isSet = false;
file_record_name = nullptr;
m_file_record_name_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;
}
SWGFCDProPlusSettings::~SWGFCDProPlusSettings() {
@ -100,6 +108,14 @@ SWGFCDProPlusSettings::init() {
m_transverter_delta_frequency_isSet = false;
file_record_name = new QString("");
m_file_record_name_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
@ -122,6 +138,12 @@ SWGFCDProPlusSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGFCDProPlusSettings*
@ -167,6 +189,14 @@ SWGFCDProPlusSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::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
@ -231,6 +261,18 @@ SWGFCDProPlusSettings::asJsonObject() {
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
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;
}
@ -395,6 +437,46 @@ SWGFCDProPlusSettings::setFileRecordName(QString* file_record_name) {
this->m_file_record_name_isSet = true;
}
qint32
SWGFCDProPlusSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGFCDProPlusSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGFCDProPlusSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGFCDProPlusSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGFCDProPlusSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGFCDProPlusSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGFCDProPlusSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGFCDProPlusSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGFCDProPlusSettings::isSet(){
@ -416,6 +498,10 @@ SWGFCDProPlusSettings::isSet(){
if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -90,6 +90,18 @@ public:
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;
@ -142,6 +154,18 @@ private:
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;
};
}

View File

@ -78,6 +78,14 @@ SWGFCDProSettings::SWGFCDProSettings() {
m_transverter_delta_frequency_isSet = false;
file_record_name = nullptr;
m_file_record_name_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;
}
SWGFCDProSettings::~SWGFCDProSettings() {
@ -136,6 +144,14 @@ SWGFCDProSettings::init() {
m_transverter_delta_frequency_isSet = false;
file_record_name = new QString("");
m_file_record_name_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
@ -167,6 +183,12 @@ SWGFCDProSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGFCDProSettings*
@ -230,6 +252,14 @@ SWGFCDProSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::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
@ -321,6 +351,18 @@ SWGFCDProSettings::asJsonObject() {
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
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;
}
@ -575,6 +617,46 @@ SWGFCDProSettings::setFileRecordName(QString* file_record_name) {
this->m_file_record_name_isSet = true;
}
qint32
SWGFCDProSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGFCDProSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGFCDProSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGFCDProSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGFCDProSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGFCDProSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGFCDProSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGFCDProSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGFCDProSettings::isSet(){
@ -605,6 +687,10 @@ SWGFCDProSettings::isSet(){
if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -117,6 +117,18 @@ public:
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;
@ -196,6 +208,18 @@ private:
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;
};
}

View File

@ -34,6 +34,14 @@ SWGFileSourceSettings::SWGFileSourceSettings() {
m_acceleration_factor_isSet = false;
loop = 0;
m_loop_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;
}
SWGFileSourceSettings::~SWGFileSourceSettings() {
@ -48,6 +56,14 @@ SWGFileSourceSettings::init() {
m_acceleration_factor_isSet = false;
loop = 0;
m_loop_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
@ -57,6 +73,12 @@ SWGFileSourceSettings::cleanup() {
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGFileSourceSettings*
@ -76,6 +98,14 @@ SWGFileSourceSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&loop, pJson["loop"], "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
@ -101,6 +131,18 @@ SWGFileSourceSettings::asJsonObject() {
if(m_loop_isSet){
obj->insert("loop", QJsonValue(loop));
}
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;
}
@ -135,6 +177,46 @@ SWGFileSourceSettings::setLoop(qint32 loop) {
this->m_loop_isSet = true;
}
qint32
SWGFileSourceSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGFileSourceSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGFileSourceSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGFileSourceSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGFileSourceSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGFileSourceSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGFileSourceSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGFileSourceSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGFileSourceSettings::isSet(){
@ -143,6 +225,10 @@ SWGFileSourceSettings::isSet(){
if(file_name != nullptr && *file_name != QString("")){ isObjectUpdated = true; break;}
if(m_acceleration_factor_isSet){ isObjectUpdated = true; break;}
if(m_loop_isSet){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -51,6 +51,18 @@ public:
qint32 getLoop();
void setLoop(qint32 loop);
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;
@ -64,6 +76,18 @@ private:
qint32 loop;
bool m_loop_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;
};
}

View File

@ -56,6 +56,14 @@ SWGHackRFInputSettings::SWGHackRFInputSettings() {
m_link_tx_frequency_isSet = false;
file_record_name = nullptr;
m_file_record_name_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;
}
SWGHackRFInputSettings::~SWGHackRFInputSettings() {
@ -92,6 +100,14 @@ SWGHackRFInputSettings::init() {
m_link_tx_frequency_isSet = false;
file_record_name = new QString("");
m_file_record_name_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
@ -112,6 +128,12 @@ SWGHackRFInputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGHackRFInputSettings*
@ -153,6 +175,14 @@ SWGHackRFInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::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
@ -211,6 +241,18 @@ SWGHackRFInputSettings::asJsonObject() {
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
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;
}
@ -355,6 +397,46 @@ SWGHackRFInputSettings::setFileRecordName(QString* file_record_name) {
this->m_file_record_name_isSet = true;
}
qint32
SWGHackRFInputSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGHackRFInputSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGHackRFInputSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGHackRFInputSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGHackRFInputSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGHackRFInputSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGHackRFInputSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGHackRFInputSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGHackRFInputSettings::isSet(){
@ -374,6 +456,10 @@ SWGHackRFInputSettings::isSet(){
if(m_iq_correction_isSet){ isObjectUpdated = true; break;}
if(m_link_tx_frequency_isSet){ isObjectUpdated = true; break;}
if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -84,6 +84,18 @@ public:
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;
@ -130,6 +142,18 @@ private:
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;
};
}

View File

@ -44,6 +44,14 @@ SWGHackRFOutputSettings::SWGHackRFOutputSettings() {
m_bias_t_isSet = false;
lna_ext = 0;
m_lna_ext_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;
}
SWGHackRFOutputSettings::~SWGHackRFOutputSettings() {
@ -68,6 +76,14 @@ SWGHackRFOutputSettings::init() {
m_bias_t_isSet = false;
lna_ext = 0;
m_lna_ext_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
@ -80,6 +96,12 @@ SWGHackRFOutputSettings::cleanup() {
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGHackRFOutputSettings*
@ -109,6 +131,14 @@ SWGHackRFOutputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&lna_ext, pJson["lnaExt"], "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
@ -149,6 +179,18 @@ SWGHackRFOutputSettings::asJsonObject() {
if(m_lna_ext_isSet){
obj->insert("lnaExt", QJsonValue(lna_ext));
}
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;
}
@ -233,6 +275,46 @@ SWGHackRFOutputSettings::setLnaExt(qint32 lna_ext) {
this->m_lna_ext_isSet = true;
}
qint32
SWGHackRFOutputSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGHackRFOutputSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGHackRFOutputSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGHackRFOutputSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGHackRFOutputSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGHackRFOutputSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGHackRFOutputSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGHackRFOutputSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGHackRFOutputSettings::isSet(){
@ -246,6 +328,10 @@ SWGHackRFOutputSettings::isSet(){
if(m_dev_sample_rate_isSet){ isObjectUpdated = true; break;}
if(m_bias_t_isSet){ isObjectUpdated = true; break;}
if(m_lna_ext_isSet){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -22,6 +22,7 @@
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
@ -65,6 +66,18 @@ public:
qint32 getLnaExt();
void setLnaExt(qint32 lna_ext);
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;
@ -93,6 +106,18 @@ private:
qint32 lna_ext;
bool m_lna_ext_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;
};
}

View File

@ -50,6 +50,14 @@ SWGPerseusSettings::SWGPerseusSettings() {
m_file_record_name_isSet = false;
attenuator = 0;
m_attenuator_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;
}
SWGPerseusSettings::~SWGPerseusSettings() {
@ -80,6 +88,14 @@ SWGPerseusSettings::init() {
m_file_record_name_isSet = false;
attenuator = 0;
m_attenuator_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
@ -97,6 +113,12 @@ SWGPerseusSettings::cleanup() {
delete file_record_name;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGPerseusSettings*
@ -132,6 +154,14 @@ SWGPerseusSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&attenuator, pJson["attenuator"], "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
@ -181,6 +211,18 @@ SWGPerseusSettings::asJsonObject() {
if(m_attenuator_isSet){
obj->insert("attenuator", QJsonValue(attenuator));
}
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;
}
@ -295,6 +337,46 @@ SWGPerseusSettings::setAttenuator(qint32 attenuator) {
this->m_attenuator_isSet = true;
}
qint32
SWGPerseusSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGPerseusSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGPerseusSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGPerseusSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGPerseusSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGPerseusSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGPerseusSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGPerseusSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGPerseusSettings::isSet(){
@ -311,6 +393,10 @@ SWGPerseusSettings::isSet(){
if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
if(m_attenuator_isSet){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -75,6 +75,18 @@ public:
qint32 getAttenuator();
void setAttenuator(qint32 attenuator);
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;
@ -112,6 +124,18 @@ private:
qint32 attenuator;
bool m_attenuator_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;
};
}

View File

@ -64,6 +64,14 @@ SWGPlutoSdrInputSettings::SWGPlutoSdrInputSettings() {
m_transverter_delta_frequency_isSet = false;
file_record_name = nullptr;
m_file_record_name_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;
}
SWGPlutoSdrInputSettings::~SWGPlutoSdrInputSettings() {
@ -108,6 +116,14 @@ SWGPlutoSdrInputSettings::init() {
m_transverter_delta_frequency_isSet = false;
file_record_name = new QString("");
m_file_record_name_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
@ -132,6 +148,12 @@ SWGPlutoSdrInputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGPlutoSdrInputSettings*
@ -181,6 +203,14 @@ SWGPlutoSdrInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::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
@ -251,6 +281,18 @@ SWGPlutoSdrInputSettings::asJsonObject() {
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
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;
}
@ -435,6 +477,46 @@ SWGPlutoSdrInputSettings::setFileRecordName(QString* file_record_name) {
this->m_file_record_name_isSet = true;
}
qint32
SWGPlutoSdrInputSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGPlutoSdrInputSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGPlutoSdrInputSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGPlutoSdrInputSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGPlutoSdrInputSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGPlutoSdrInputSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGPlutoSdrInputSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGPlutoSdrInputSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGPlutoSdrInputSettings::isSet(){
@ -458,6 +540,10 @@ SWGPlutoSdrInputSettings::isSet(){
if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -96,6 +96,18 @@ public:
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;
@ -154,6 +166,18 @@ private:
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;
};
}

View File

@ -54,6 +54,14 @@ SWGPlutoSdrOutputSettings::SWGPlutoSdrOutputSettings() {
m_transverter_mode_isSet = false;
transverter_delta_frequency = 0L;
m_transverter_delta_frequency_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;
}
SWGPlutoSdrOutputSettings::~SWGPlutoSdrOutputSettings() {
@ -88,6 +96,14 @@ SWGPlutoSdrOutputSettings::init() {
m_transverter_mode_isSet = false;
transverter_delta_frequency = 0L;
m_transverter_delta_frequency_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
@ -105,6 +121,12 @@ SWGPlutoSdrOutputSettings::cleanup() {
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGPlutoSdrOutputSettings*
@ -144,6 +166,14 @@ SWGPlutoSdrOutputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", "");
::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
@ -199,6 +229,18 @@ SWGPlutoSdrOutputSettings::asJsonObject() {
if(m_transverter_delta_frequency_isSet){
obj->insert("transverterDeltaFrequency", QJsonValue(transverter_delta_frequency));
}
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;
}
@ -333,6 +375,46 @@ SWGPlutoSdrOutputSettings::setTransverterDeltaFrequency(qint64 transverter_delta
this->m_transverter_delta_frequency_isSet = true;
}
qint32
SWGPlutoSdrOutputSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGPlutoSdrOutputSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGPlutoSdrOutputSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGPlutoSdrOutputSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGPlutoSdrOutputSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGPlutoSdrOutputSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGPlutoSdrOutputSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGPlutoSdrOutputSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGPlutoSdrOutputSettings::isSet(){
@ -351,6 +433,10 @@ SWGPlutoSdrOutputSettings::isSet(){
if(m_antenna_path_isSet){ isObjectUpdated = true; break;}
if(m_transverter_mode_isSet){ isObjectUpdated = true; break;}
if(m_transverter_delta_frequency_isSet){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -22,6 +22,7 @@
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
@ -80,6 +81,18 @@ public:
qint64 getTransverterDeltaFrequency();
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
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;
@ -123,6 +136,18 @@ private:
qint64 transverter_delta_frequency;
bool m_transverter_delta_frequency_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;
};
}

View File

@ -60,6 +60,14 @@ SWGSDRPlaySettings::SWGSDRPlaySettings() {
m_baseband_gain_isSet = false;
file_record_name = nullptr;
m_file_record_name_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;
}
SWGSDRPlaySettings::~SWGSDRPlaySettings() {
@ -100,6 +108,14 @@ SWGSDRPlaySettings::init() {
m_baseband_gain_isSet = false;
file_record_name = new QString("");
m_file_record_name_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
@ -122,6 +138,12 @@ SWGSDRPlaySettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGSDRPlaySettings*
@ -167,6 +189,14 @@ SWGSDRPlaySettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::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
@ -231,6 +261,18 @@ SWGSDRPlaySettings::asJsonObject() {
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
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;
}
@ -395,6 +437,46 @@ SWGSDRPlaySettings::setFileRecordName(QString* file_record_name) {
this->m_file_record_name_isSet = true;
}
qint32
SWGSDRPlaySettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGSDRPlaySettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGSDRPlaySettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGSDRPlaySettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGSDRPlaySettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGSDRPlaySettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGSDRPlaySettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGSDRPlaySettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGSDRPlaySettings::isSet(){
@ -416,6 +498,10 @@ SWGSDRPlaySettings::isSet(){
if(m_mixer_amp_on_isSet){ isObjectUpdated = true; break;}
if(m_baseband_gain_isSet){ isObjectUpdated = true; break;}
if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -90,6 +90,18 @@ public:
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;
@ -142,6 +154,18 @@ private:
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;
};
}

View File

@ -48,6 +48,14 @@ SWGSDRdaemonSinkSettings::SWGSDRdaemonSinkSettings() {
m_device_index_isSet = false;
channel_index = 0;
m_channel_index_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;
}
SWGSDRdaemonSinkSettings::~SWGSDRdaemonSinkSettings() {
@ -76,6 +84,14 @@ SWGSDRdaemonSinkSettings::init() {
m_device_index_isSet = false;
channel_index = 0;
m_channel_index_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
@ -94,6 +110,12 @@ SWGSDRdaemonSinkSettings::cleanup() {
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGSDRdaemonSinkSettings*
@ -127,6 +149,14 @@ SWGSDRdaemonSinkSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&channel_index, pJson["channelIndex"], "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
@ -173,6 +203,18 @@ SWGSDRdaemonSinkSettings::asJsonObject() {
if(m_channel_index_isSet){
obj->insert("channelIndex", QJsonValue(channel_index));
}
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;
}
@ -277,6 +319,46 @@ SWGSDRdaemonSinkSettings::setChannelIndex(qint32 channel_index) {
this->m_channel_index_isSet = true;
}
qint32
SWGSDRdaemonSinkSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGSDRdaemonSinkSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGSDRdaemonSinkSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGSDRdaemonSinkSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGSDRdaemonSinkSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGSDRdaemonSinkSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGSDRdaemonSinkSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGSDRdaemonSinkSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGSDRdaemonSinkSettings::isSet(){
@ -292,6 +374,10 @@ SWGSDRdaemonSinkSettings::isSet(){
if(m_data_port_isSet){ isObjectUpdated = true; break;}
if(m_device_index_isSet){ isObjectUpdated = true; break;}
if(m_channel_index_isSet){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -72,6 +72,18 @@ public:
qint32 getChannelIndex();
void setChannelIndex(qint32 channel_index);
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;
@ -106,6 +118,18 @@ private:
qint32 channel_index;
bool m_channel_index_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;
};
}

View File

@ -42,6 +42,14 @@ SWGSDRdaemonSourceSettings::SWGSDRdaemonSourceSettings() {
m_iq_correction_isSet = false;
file_record_name = nullptr;
m_file_record_name_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;
}
SWGSDRdaemonSourceSettings::~SWGSDRdaemonSourceSettings() {
@ -64,6 +72,14 @@ SWGSDRdaemonSourceSettings::init() {
m_iq_correction_isSet = false;
file_record_name = new QString("");
m_file_record_name_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
@ -81,6 +97,12 @@ SWGSDRdaemonSourceSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGSDRdaemonSourceSettings*
@ -108,6 +130,14 @@ SWGSDRdaemonSourceSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::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
@ -145,6 +175,18 @@ SWGSDRdaemonSourceSettings::asJsonObject() {
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
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;
}
@ -219,6 +261,46 @@ SWGSDRdaemonSourceSettings::setFileRecordName(QString* file_record_name) {
this->m_file_record_name_isSet = true;
}
qint32
SWGSDRdaemonSourceSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGSDRdaemonSourceSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGSDRdaemonSourceSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGSDRdaemonSourceSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGSDRdaemonSourceSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGSDRdaemonSourceSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGSDRdaemonSourceSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGSDRdaemonSourceSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGSDRdaemonSourceSettings::isSet(){
@ -231,6 +313,10 @@ SWGSDRdaemonSourceSettings::isSet(){
if(m_dc_block_isSet){ isObjectUpdated = true; break;}
if(m_iq_correction_isSet){ isObjectUpdated = true; break;}
if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -63,6 +63,18 @@ public:
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;
@ -88,6 +100,18 @@ private:
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;
};
}

View File

@ -72,6 +72,14 @@ SWGSoapySDRInputSettings::SWGSoapySDRInputSettings() {
m_stream_arg_settings_isSet = false;
device_arg_settings = nullptr;
m_device_arg_settings_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;
}
SWGSoapySDRInputSettings::~SWGSoapySDRInputSettings() {
@ -124,6 +132,14 @@ SWGSoapySDRInputSettings::init() {
m_stream_arg_settings_isSet = false;
device_arg_settings = new QList<SWGArgValue*>();
m_device_arg_settings_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
@ -182,6 +198,12 @@ SWGSoapySDRInputSettings::cleanup() {
}
delete device_arg_settings;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGSoapySDRInputSettings*
@ -239,6 +261,14 @@ SWGSoapySDRInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&stream_arg_settings, pJson["streamArgSettings"], "QList", "SWGArgValue");
::SWGSDRangel::setValue(&device_arg_settings, pJson["deviceArgSettings"], "QList", "SWGArgValue");
::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
@ -321,6 +351,18 @@ SWGSoapySDRInputSettings::asJsonObject() {
if(device_arg_settings->size() > 0){
toJsonArray((QList<void*>*)device_arg_settings, obj, "deviceArgSettings", "SWGArgValue");
}
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;
}
@ -545,6 +587,46 @@ SWGSoapySDRInputSettings::setDeviceArgSettings(QList<SWGArgValue*>* device_arg_s
this->m_device_arg_settings_isSet = true;
}
qint32
SWGSoapySDRInputSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGSoapySDRInputSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGSoapySDRInputSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGSoapySDRInputSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGSoapySDRInputSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGSoapySDRInputSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGSoapySDRInputSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGSoapySDRInputSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGSoapySDRInputSettings::isSet(){
@ -572,6 +654,10 @@ SWGSoapySDRInputSettings::isSet(){
if(iq_correction != nullptr && iq_correction->isSet()){ isObjectUpdated = true; break;}
if(stream_arg_settings->size() > 0){ isObjectUpdated = true; break;}
if(device_arg_settings->size() > 0){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -111,6 +111,18 @@ public:
QList<SWGArgValue*>* getDeviceArgSettings();
void setDeviceArgSettings(QList<SWGArgValue*>* device_arg_settings);
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;
@ -181,6 +193,18 @@ private:
QList<SWGArgValue*>* device_arg_settings;
bool m_device_arg_settings_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;
};
}

View File

@ -64,6 +64,14 @@ SWGSoapySDROutputSettings::SWGSoapySDROutputSettings() {
m_stream_arg_settings_isSet = false;
device_arg_settings = nullptr;
m_device_arg_settings_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;
}
SWGSoapySDROutputSettings::~SWGSoapySDROutputSettings() {
@ -108,6 +116,14 @@ SWGSoapySDROutputSettings::init() {
m_stream_arg_settings_isSet = false;
device_arg_settings = new QList<SWGArgValue*>();
m_device_arg_settings_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
@ -160,6 +176,12 @@ SWGSoapySDROutputSettings::cleanup() {
}
delete device_arg_settings;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
}
SWGSoapySDROutputSettings*
@ -209,6 +231,14 @@ SWGSoapySDROutputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&stream_arg_settings, pJson["streamArgSettings"], "QList", "SWGArgValue");
::SWGSDRangel::setValue(&device_arg_settings, pJson["deviceArgSettings"], "QList", "SWGArgValue");
::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
@ -279,6 +309,18 @@ SWGSoapySDROutputSettings::asJsonObject() {
if(device_arg_settings->size() > 0){
toJsonArray((QList<void*>*)device_arg_settings, obj, "deviceArgSettings", "SWGArgValue");
}
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;
}
@ -463,6 +505,46 @@ SWGSoapySDROutputSettings::setDeviceArgSettings(QList<SWGArgValue*>* device_arg_
this->m_device_arg_settings_isSet = true;
}
qint32
SWGSoapySDROutputSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGSoapySDROutputSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGSoapySDROutputSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGSoapySDROutputSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGSoapySDROutputSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGSoapySDROutputSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGSoapySDROutputSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGSoapySDROutputSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
bool
SWGSoapySDROutputSettings::isSet(){
@ -486,6 +568,10 @@ SWGSoapySDROutputSettings::isSet(){
if(iq_correction != nullptr && iq_correction->isSet()){ isObjectUpdated = true; break;}
if(stream_arg_settings->size() > 0){ isObjectUpdated = true; break;}
if(device_arg_settings->size() > 0){ isObjectUpdated = true; break;}
if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
if(reverse_api_address != nullptr && *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;
}

View File

@ -99,6 +99,18 @@ public:
QList<SWGArgValue*>* getDeviceArgSettings();
void setDeviceArgSettings(QList<SWGArgValue*>* device_arg_settings);
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;
@ -157,6 +169,18 @@ private:
QList<SWGArgValue*>* device_arg_settings;
bool m_device_arg_settings_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;
};
}