1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-17 23:28:50 -05:00

REST API: config: added ATV demodulator

This commit is contained in:
f4exb 2019-08-11 11:35:53 +02:00
parent b980a92995
commit c914de4846
22 changed files with 3034 additions and 9 deletions

View File

@ -2,22 +2,24 @@ project(atv)
set(atv_SOURCES
atvdemod.cpp
atvdemodsettings.cpp
atvdemodsettings.cpp
atvdemodwebapiadapter.cpp
atvdemodgui.cpp
atvdemodplugin.cpp
atvdemodgui.ui
)
set(atv_HEADERS
atvdemod.h
atvdemodsettings.h
atvdemodsettings.h
atvdemodwebapiadapter.h
atvdemodgui.h
atvdemodplugin.h
)
include_directories(
${Boost_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)
add_library(demodatv SHARED
@ -25,8 +27,8 @@ add_library(demodatv SHARED
)
target_link_libraries(demodatv
Qt5::Core
Qt5::Widgets
Qt5::Core
Qt5::Widgets
sdrbase
sdrgui
)

View File

@ -24,11 +24,12 @@
#include "atvdemodgui.h"
#include "atvdemod.h"
#include "atvdemodplugin.h"
#include "atvdemodwebapiadapter.h"
const PluginDescriptor ATVDemodPlugin::m_ptrPluginDescriptor =
{
QString("ATV Demodulator"),
QString("4.3.0"),
QString("4.11.6"),
QString("(c) F4HKW for F4EXB / SDRAngel"),
QString("https://github.com/f4exb/sdrangel"),
true,
@ -70,3 +71,7 @@ ChannelAPI* ATVDemodPlugin::createRxChannelCS(DeviceAPI *deviceAPI) const
return new ATVDemod(deviceAPI);
}
ChannelWebAPIAdapter* ATVDemodPlugin::createChannelWebAPIAdapter() const
{
return new ATVDemodWebAPIAdapter();
}

View File

@ -40,6 +40,7 @@ public:
virtual PluginInstanceGUI* createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) const;
virtual BasebandSampleSink* createRxChannelBS(DeviceAPI *deviceAPI) const;
virtual ChannelAPI* createRxChannelCS(DeviceAPI *deviceAPI) const;
virtual ChannelWebAPIAdapter* createChannelWebAPIAdapter() const;
private:
static const PluginDescriptor m_ptrPluginDescriptor;

View File

@ -0,0 +1,197 @@
///////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2019 Edouard Griffiths, F4EXB. //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation as version 3 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License V3 for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#include "SWGChannelSettings.h"
#include "atvdemodwebapiadapter.h"
ATVDemodWebAPIAdapter::ATVDemodWebAPIAdapter()
{}
ATVDemodWebAPIAdapter::~ATVDemodWebAPIAdapter()
{}
int ATVDemodWebAPIAdapter::webapiSettingsGet(
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage)
{
(void) errorMessage;
response.setAtvDemodSettings(new SWGSDRangel::SWGATVDemodSettings());
response.getAtvDemodSettings()->init();
webapiFormatChannelSettings(response, m_settings);
return 200;
}
int ATVDemodWebAPIAdapter::webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage)
{
(void) force;
(void) errorMessage;
webapiUpdateChannelSettings(m_settings, channelSettingsKeys, response);
return 200;
}
void ATVDemodWebAPIAdapter::webapiFormatChannelSettings(
SWGSDRangel::SWGChannelSettings& response,
const ATVDemodSettings& settings)
{
response.getAtvDemodSettings()->setBlndecimatorEnable(settings.m_blndecimatorEnable ? 1 : 0);
response.getAtvDemodSettings()->setBlnFftFiltering(settings.m_blnFFTFiltering ? 1 : 0);
response.getAtvDemodSettings()->setBlnHSync(settings.m_blnHSync ? 1 : 0);
response.getAtvDemodSettings()->setBlnInvertVideo(settings.m_blnInvertVideo ? 1 : 0);
response.getAtvDemodSettings()->setBlnVSync(settings.m_blnVSync ? 1 : 0);
response.getAtvDemodSettings()->setEnmAtvStandard((int) settings.m_enmATVStandard);
response.getAtvDemodSettings()->setEnmModulation((int) settings.m_enmModulation);
response.getAtvDemodSettings()->setFltBfoFrequency(settings.m_fltBFOFrequency);
response.getAtvDemodSettings()->setFltFramePerS(settings.m_fltFramePerS);
response.getAtvDemodSettings()->setFltLineDuration(settings.m_fltLineDuration);
response.getAtvDemodSettings()->setFltRatioOfRowsToDisplay(settings.m_fltRatioOfRowsToDisplay);
response.getAtvDemodSettings()->setFltRfBandwidth(settings.m_fltRFBandwidth);
response.getAtvDemodSettings()->setFltRfOppBandwidth(settings.m_fltRFOppBandwidth);
response.getAtvDemodSettings()->setFltTopDuration(settings.m_fltTopDuration);
response.getAtvDemodSettings()->setFltVoltLevelSynchroBlack(settings.m_fltVoltLevelSynchroBlack);
response.getAtvDemodSettings()->setFltVoltLevelSynchroTop(settings.m_fltVoltLevelSynchroTop);
response.getAtvDemodSettings()->setFmDeviation(settings.m_fmDeviation);
response.getAtvDemodSettings()->setFpsIndex(settings.m_fpsIndex);
response.getAtvDemodSettings()->setHalfImage(settings.m_halfImage ? 1 : 0);
response.getAtvDemodSettings()->setIntFrequencyOffset(settings.m_intFrequencyOffset);
response.getAtvDemodSettings()->setIntNumberOfLines(settings.m_intNumberOfLines);
response.getAtvDemodSettings()->setIntNumberSamplePerLine(settings.m_intNumberSamplePerLine);
response.getAtvDemodSettings()->setIntSampleRate(settings.m_intSampleRate);
response.getAtvDemodSettings()->setIntTvSampleRate(settings.m_intTVSampleRate);
response.getAtvDemodSettings()->setIntVideoTabIndex(settings.m_intVideoTabIndex);
response.getAtvDemodSettings()->setLineTimeFactor(settings.m_lineTimeFactor);
response.getAtvDemodSettings()->setNbLinesIndex(settings.m_nbLinesIndex);
response.getAtvDemodSettings()->setOppBandwidthFactor(settings.m_OppBandwidthFactor);
response.getAtvDemodSettings()->setRfBandwidthFactor(settings.m_RFBandwidthFactor);
response.getAtvDemodSettings()->setRgbColor(settings.m_rgbColor);
response.getAtvDemodSettings()->setTitle(new QString(settings.m_title));
response.getAtvDemodSettings()->setTopTimeFactor(settings.m_topTimeFactor);
response.getAtvDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress));
response.getAtvDemodSettings()->setUdpPort(settings.m_udpPort);
}
void ATVDemodWebAPIAdapter::webapiUpdateChannelSettings(
ATVDemodSettings& settings,
const QStringList& channelSettingsKeys,
SWGSDRangel::SWGChannelSettings& response)
{
if (channelSettingsKeys.contains("blndecimatorEnable")) {
settings.m_blndecimatorEnable = response.getAtvDemodSettings()->getBlndecimatorEnable() != 0;
}
if (channelSettingsKeys.contains("blnFFTFiltering")) {
settings.m_blnFFTFiltering = response.getAtvDemodSettings()->getBlnFftFiltering() != 0;
}
if (channelSettingsKeys.contains("blnHSync")) {
settings.m_blnHSync = response.getAtvDemodSettings()->getBlnHSync() != 0;
}
if (channelSettingsKeys.contains("blnInvertVideo")) {
settings.m_blnInvertVideo = response.getAtvDemodSettings()->getBlnInvertVideo() != 0;
}
if (channelSettingsKeys.contains("blnVSync")) {
settings.m_blnVSync = response.getAtvDemodSettings()->getBlnVSync() != 0;
}
if (channelSettingsKeys.contains("enmATVStandard")) {
settings.m_enmATVStandard = (ATVDemodSettings::ATVStd) response.getAtvDemodSettings()->getEnmAtvStandard();
}
if (channelSettingsKeys.contains("enmModulation")) {
settings.m_enmModulation = (ATVDemodSettings::ATVModulation) response.getAtvDemodSettings()->getEnmModulation();
}
if (channelSettingsKeys.contains("fltBFOFrequency")) {
settings.m_fltBFOFrequency = response.getAtvDemodSettings()->getFltBfoFrequency();
}
if (channelSettingsKeys.contains("fltFramePerS")) {
settings.m_fltFramePerS = response.getAtvDemodSettings()->getFltFramePerS();
}
if (channelSettingsKeys.contains("fltLineDuration")) {
settings.m_fltLineDuration = response.getAtvDemodSettings()->getFltLineDuration();
}
if (channelSettingsKeys.contains("fltRatioOfRowsToDisplay")) {
settings.m_fltRatioOfRowsToDisplay = response.getAtvDemodSettings()->getFltRatioOfRowsToDisplay();
}
if (channelSettingsKeys.contains("fltRFBandwidth")) {
settings.m_fltRFBandwidth = response.getAtvDemodSettings()->getFltRfBandwidth();
}
if (channelSettingsKeys.contains("fltRFOppBandwidth")) {
settings.m_fltRFOppBandwidth = response.getAtvDemodSettings()->getFltRfOppBandwidth();
}
if (channelSettingsKeys.contains("fltTopDuration")) {
settings.m_fltTopDuration = response.getAtvDemodSettings()->getFltTopDuration();
}
if (channelSettingsKeys.contains("fltVoltLevelSynchroBlack")) {
settings.m_fltVoltLevelSynchroBlack = response.getAtvDemodSettings()->getFltVoltLevelSynchroBlack();
}
if (channelSettingsKeys.contains("fltVoltLevelSynchroTop")) {
settings.m_fltVoltLevelSynchroTop = response.getAtvDemodSettings()->getFltVoltLevelSynchroTop();
}
if (channelSettingsKeys.contains("fmDeviation")) {
settings.m_fmDeviation = response.getAtvDemodSettings()->getFmDeviation();
}
if (channelSettingsKeys.contains("fpsIndex")) {
settings.m_fpsIndex = response.getAtvDemodSettings()->getFpsIndex();
}
if (channelSettingsKeys.contains("halfImage")) {
settings.m_halfImage = response.getAtvDemodSettings()->getHalfImage() != 0;
}
if (channelSettingsKeys.contains("intFrequencyOffset")) {
settings.m_intFrequencyOffset = response.getAtvDemodSettings()->getIntFrequencyOffset();
}
if (channelSettingsKeys.contains("intNumberOfLines")) {
settings.m_intNumberOfLines = response.getAtvDemodSettings()->getIntNumberOfLines();
}
if (channelSettingsKeys.contains("intNumberSamplePerLine")) {
settings.m_intNumberSamplePerLine = response.getAtvDemodSettings()->getIntNumberSamplePerLine();
}
if (channelSettingsKeys.contains("intSampleRate")) {
settings.m_intSampleRate = response.getAtvDemodSettings()->getIntSampleRate();
}
if (channelSettingsKeys.contains("intTVSampleRate")) {
settings.m_intTVSampleRate = response.getAtvDemodSettings()->getIntTvSampleRate();
}
if (channelSettingsKeys.contains("intVideoTabIndex")) {
settings.m_intVideoTabIndex = response.getAtvDemodSettings()->getIntVideoTabIndex();
}
if (channelSettingsKeys.contains("lineTimeFactor")) {
settings.m_lineTimeFactor = response.getAtvDemodSettings()->getLineTimeFactor();
}
if (channelSettingsKeys.contains("nbLinesIndex")) {
settings.m_nbLinesIndex = response.getAtvDemodSettings()->getNbLinesIndex();
}
if (channelSettingsKeys.contains("OppBandwidthFactor")) {
settings.m_OppBandwidthFactor = response.getAtvDemodSettings()->getOppBandwidthFactor();
}
if (channelSettingsKeys.contains("RFBandwidthFactor")) {
settings.m_RFBandwidthFactor = response.getAtvDemodSettings()->getRfBandwidthFactor();
}
if (channelSettingsKeys.contains("rgbColor")) {
settings.m_rgbColor = response.getAtvDemodSettings()->getRgbColor();
}
if (channelSettingsKeys.contains("title")) {
settings.m_title = *response.getAtvDemodSettings()->getTitle();
}
if (channelSettingsKeys.contains("topTimeFactor")) {
settings.m_topTimeFactor = response.getAtvDemodSettings()->getTopTimeFactor();
}
if (channelSettingsKeys.contains("udpAddress")) {
settings.m_udpAddress = *response.getAtvDemodSettings()->getUdpAddress();
}
if (channelSettingsKeys.contains("udpPort")) {
settings.m_udpPort = response.getAtvDemodSettings()->getUdpPort();
}
}

View File

@ -0,0 +1,58 @@
///////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2019 Edouard Griffiths, F4EXB. //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation as version 3 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License V3 for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#ifndef INCLUDE_DEMODATV_WEBAPIADAPTER_H
#define INCLUDE_DEMODATV_WEBAPIADAPTER_H
#include "channel/channelwebapiadapter.h"
#include "atvdemodsettings.h"
/**
* Standalone API adapter only for the settings
*/
class ATVDemodWebAPIAdapter : public ChannelWebAPIAdapter {
public:
ATVDemodWebAPIAdapter();
virtual ~ATVDemodWebAPIAdapter();
virtual QByteArray serialize() const { return m_settings.serialize(); }
virtual bool deserialize(const QByteArray& data) { return m_settings.deserialize(data); }
virtual int webapiSettingsGet(
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
virtual int webapiSettingsPutPatch(
bool force,
const QStringList& channelSettingsKeys,
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage);
static void webapiFormatChannelSettings(
SWGSDRangel::SWGChannelSettings& response,
const ATVDemodSettings& settings);
static void webapiUpdateChannelSettings(
ATVDemodSettings& settings,
const QStringList& channelSettingsKeys,
SWGSDRangel::SWGChannelSettings& response);
private:
ATVDemodSettings m_settings;
};
#endif // INCLUDE_DEMODATV_WEBAPIADAPTER_H

View File

@ -6,6 +6,7 @@
<file>webapi/doc/swagger/include/AirspyHF.yaml</file>
<file>webapi/doc/swagger/include/AMDemod.yaml</file>
<file>webapi/doc/swagger/include/AMMod.yaml</file>
<file>webapi/doc/swagger/include/ATVDemod.yaml</file>
<file>webapi/doc/swagger/include/ATVMod.yaml</file>
<file>webapi/doc/swagger/include/BFMDemod.yaml</file>
<file>webapi/doc/swagger/include/BladeRF1.yaml</file>
@ -14,6 +15,7 @@
<file>webapi/doc/swagger/include/ChannelSettings.yaml</file>
<file>webapi/doc/swagger/include/Command.yaml</file>
<file>webapi/doc/swagger/include/CWKeyer.yaml</file>
<file>webapi/doc/swagger/include/DATVDemod.yaml</file>
<file>webapi/doc/swagger/include/DSDDemod.yaml</file>
<file>webapi/doc/swagger/include/DeviceSettings.yaml</file>
<file>webapi/doc/swagger/include/FCDPro.yaml</file>

View File

@ -892,6 +892,131 @@ margin-bottom: 20px;
}
},
"description" : "AMMod"
};
defs.ATVDemodSettings = {
"properties" : {
"lineTimeFactor" : {
"type" : "integer"
},
"topTimeFactor" : {
"type" : "integer"
},
"fpsIndex" : {
"type" : "integer"
},
"halfImage" : {
"type" : "integer",
"description" : "(boolean) 1 for m_fltRatioOfRowsToDisplay = 0.5, 0 for m_fltRatioOfRowsToDisplay = 1.0"
},
"RFBandwidthFactor" : {
"type" : "integer"
},
"OppBandwidthFactor" : {
"type" : "integer"
},
"nbLinesIndex" : {
"type" : "integer"
},
"intFrequencyOffset" : {
"type" : "integer"
},
"enmModulation" : {
"type" : "integer",
"description" : "see ATVDemodSettings::ATVModulation"
},
"fltRFBandwidth" : {
"type" : "number",
"format" : "float"
},
"fltRFOppBandwidth" : {
"type" : "number",
"format" : "float"
},
"blnFFTFiltering" : {
"type" : "integer",
"description" : "boolean"
},
"blndecimatorEnable" : {
"type" : "integer",
"description" : "boolean"
},
"fltBFOFrequency" : {
"type" : "number",
"format" : "float"
},
"fmDeviation" : {
"type" : "number",
"format" : "float"
},
"intSampleRate" : {
"type" : "integer"
},
"enmATVStandard" : {
"type" : "integer",
"description" : "see ATVDemodSettings::ATVStd"
},
"intNumberOfLines" : {
"type" : "integer"
},
"fltLineDuration" : {
"type" : "number",
"format" : "float"
},
"fltTopDuration" : {
"type" : "number",
"format" : "float"
},
"fltFramePerS" : {
"type" : "number",
"format" : "float"
},
"fltRatioOfRowsToDisplay" : {
"type" : "number",
"format" : "float"
},
"fltVoltLevelSynchroTop" : {
"type" : "number",
"format" : "float"
},
"fltVoltLevelSynchroBlack" : {
"type" : "number",
"format" : "float"
},
"blnHSync" : {
"type" : "integer",
"description" : "boolean"
},
"blnVSync" : {
"type" : "integer",
"description" : "boolean"
},
"blnInvertVideo" : {
"type" : "integer",
"description" : "boolean"
},
"intVideoTabIndex" : {
"type" : "integer"
},
"intTVSampleRate" : {
"type" : "integer"
},
"intNumberSamplePerLine" : {
"type" : "integer"
},
"rgbColor" : {
"type" : "integer"
},
"title" : {
"type" : "string"
},
"udpAddress" : {
"type" : "string"
},
"udpPort" : {
"type" : "integer"
}
},
"description" : "ATVDemod"
};
defs.ATVModReport = {
"properties" : {
@ -1958,6 +2083,9 @@ margin-bottom: 20px;
"AMModSettings" : {
"$ref" : "#/definitions/AMModSettings"
},
"ATVDemodSettings" : {
"$ref" : "#/definitions/ATVDemodSettings"
},
"ATVModSettings" : {
"$ref" : "#/definitions/ATVModSettings"
},
@ -1967,6 +2095,9 @@ margin-bottom: 20px;
"ChannelAnalyzerSettings" : {
"$ref" : "#/definitions/ChannelAnalyzerSettings"
},
"DATVDemodSettings" : {
"$ref" : "#/definitions/DATVDemodSettings"
},
"DSDDemodSettings" : {
"$ref" : "#/definitions/DSDDemodSettings"
},
@ -2082,6 +2213,92 @@ margin-bottom: 20px;
}
},
"description" : "A complex number"
};
defs.DATVDemodSettings = {
"properties" : {
"rgbColor" : {
"type" : "integer"
},
"title" : {
"type" : "string"
},
"rfBandwidth" : {
"type" : "integer"
},
"centerFrequency" : {
"type" : "integer"
},
"standard" : {
"type" : "integer",
"description" : "see DATVDemodSettings::dvb_version"
},
"modulation" : {
"type" : "integer",
"description" : "see DATVDemodSettings::DATVModulation"
},
"fec" : {
"type" : "integer",
"description" : "see DATVDemodSettings::DATVCodeRate"
},
"audioMute" : {
"type" : "integer",
"description" : "boolean"
},
"audioDeviceName" : {
"type" : "string"
},
"symbolRate" : {
"type" : "integer"
},
"notchFilters" : {
"type" : "integer"
},
"allowDrift" : {
"type" : "integer",
"description" : "boolean"
},
"fastLock" : {
"type" : "integer",
"description" : "boolean"
},
"filter" : {
"type" : "integer",
"description" : "see DATVDemodSettings::dvb_sampler"
},
"hardMetric" : {
"type" : "integer",
"description" : "boolean"
},
"rollOff" : {
"type" : "number",
"format" : "float"
},
"viterbi" : {
"type" : "integer",
"description" : "boolean"
},
"excursion" : {
"type" : "integer"
},
"audioVolume" : {
"type" : "integer"
},
"videoMute" : {
"type" : "integer",
"description" : "boolean"
},
"udpTSAddress" : {
"type" : "string"
},
"udpTSPort" : {
"type" : "integer"
},
"udpTS" : {
"type" : "integer",
"description" : "boolean"
}
},
"description" : "DATVDemod"
};
defs.DSDDemodReport = {
"properties" : {
@ -27997,7 +28214,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2019-08-10T05:46:27.219+02:00
Generated 2019-08-11T10:07:35.543+02:00
</div>
</div>
</div>

View File

@ -0,0 +1,89 @@
ATVDemodSettings:
description: ATVDemod
properties:
lineTimeFactor:
type: integer
topTimeFactor:
type: integer
fpsIndex:
type: integer
halfImage:
description: (boolean) 1 for m_fltRatioOfRowsToDisplay = 0.5, 0 for m_fltRatioOfRowsToDisplay = 1.0
type: integer
RFBandwidthFactor:
type: integer
OppBandwidthFactor:
type: integer
nbLinesIndex:
type: integer
intFrequencyOffset:
type: integer
enmModulation:
description: see ATVDemodSettings::ATVModulation
type: integer
fltRFBandwidth:
type: number
format: float
fltRFOppBandwidth:
type: number
format: float
blnFFTFiltering:
description: boolean
type: integer
blndecimatorEnable:
description: boolean
type: integer
fltBFOFrequency:
type: number
format: float
fmDeviation:
type: number
format: float
intSampleRate:
type: integer
enmATVStandard:
description: see ATVDemodSettings::ATVStd
type: integer
intNumberOfLines:
type: integer
fltLineDuration:
type: number
format: float
fltTopDuration:
type: number
format: float
fltFramePerS:
type: number
format: float
fltRatioOfRowsToDisplay:
type: number
format: float
fltVoltLevelSynchroTop:
type: number
format: float
fltVoltLevelSynchroBlack:
type: number
format: float
blnHSync:
description: boolean
type: integer
blnVSync:
description: boolean
type: integer
blnInvertVideo:
description: boolean
type: integer
intVideoTabIndex:
type: integer
intTVSampleRate:
type: integer
intNumberSamplePerLine:
type: integer
rgbColor:
type: integer
title:
type: string
udpAddress:
type: string
udpPort:
type: integer

View File

@ -21,12 +21,16 @@ ChannelSettings:
$ref: "/doc/swagger/include/AMDemod.yaml#/AMDemodSettings"
AMModSettings:
$ref: "/doc/swagger/include/AMMod.yaml#/AMModSettings"
ATVDemodSettings:
$ref: "/doc/swagger/include/ATVDemod.yaml#/ATVDemodSettings"
ATVModSettings:
$ref: "/doc/swagger/include/ATVMod.yaml#/ATVModSettings"
BFMDemodSettings:
$ref: "/doc/swagger/include/BFMDemod.yaml#/BFMDemodSettings"
ChannelAnalyzerSettings:
$ref: "/doc/swagger/include/ChannelAnalyzer.yaml#/ChannelAnalyzerSettings"
DATVDemodSettings:
$ref: "/doc/swagger/include/DATVDemod.yaml#/DATVDemodSettings"
DSDDemodSettings:
$ref: "/doc/swagger/include/DSDDemod.yaml#/DSDDemodSettings"
FileSourceSettings:

View File

@ -0,0 +1,61 @@
DATVDemodSettings:
description: DATVDemod
properties:
rgbColor:
type: integer
title:
type: string
rfBandwidth:
type: integer
centerFrequency:
type: integer
standard:
description: see DATVDemodSettings::dvb_version
type: integer
modulation:
description: see DATVDemodSettings::DATVModulation
type: integer
fec:
description: see DATVDemodSettings::DATVCodeRate
type: integer
audioMute:
description: boolean
type: integer
audioDeviceName:
type: string
symbolRate:
type: integer
notchFilters:
type: integer
allowDrift:
description: boolean
type: integer
fastLock:
description: boolean
type: integer
filter:
description: see DATVDemodSettings::dvb_sampler
type: integer
hardMetric:
description: boolean
type: integer
rollOff:
type: number
format: float
viterbi:
description: boolean
type: integer
excursion:
type: integer
audioVolume:
type: integer
videoMute:
description: boolean
type: integer
udpTSAddress:
type: string
udpTSPort:
type: integer
udpTS:
description: boolean
type: integer

View File

@ -55,6 +55,7 @@ const QMap<QString, QString> WebAPIRequestMapper::m_channelURIToSettingsKey = {
{"sdrangel.channel.bfm", "BFMDemodSettings"},
{"sdrangel.channel.chanalyzer", "ChannelAnalyzerSettings"},
{"sdrangel.channel.chanalyzerng", "ChannelAnalyzerSettings"}, // remap
{"sdrangel.channel.demodatv", "ATVDemodSettings"},
{"sdrangel.channel.dsddemod", "DSDDemodSettings"},
{"sdrangel.channeltx.filesrc", "FileSourceSettings"},
{"sdrangel.channel.freedvdemod", "FreeDVDemodSettings"},
@ -117,6 +118,7 @@ const QMap<QString, QString> WebAPIRequestMapper::m_deviceIdToSettingsKey = {
const QMap<QString, QString> WebAPIRequestMapper::m_channelTypeToSettingsKey = {
{"AMDemod", "AMDemodSettings"},
{"AMMod", "AMModSettings"},
{"ATVDemod", "ATVDemodSettings"},
{"ATVMod", "ATVModSettings"},
{"BFMDemod", "BFMDemodSettings"},
{"ChannelAnalyzer", "ChannelAnalyzerSettings"},
@ -2429,6 +2431,11 @@ bool WebAPIRequestMapper::getChannel(
channelSettings->setAmModSettings(new SWGSDRangel::SWGAMModSettings());
channelSettings->getAmModSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "ATVDemodSettings")
{
channelSettings->setAtvDemodSettings(new SWGSDRangel::SWGATVDemodSettings());
channelSettings->getAtvDemodSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "ATVModSettings")
{
channelSettings->setAtvModSettings(new SWGSDRangel::SWGATVModSettings());

View File

@ -0,0 +1,89 @@
ATVDemodSettings:
description: ATVDemod
properties:
lineTimeFactor:
type: integer
topTimeFactor:
type: integer
fpsIndex:
type: integer
halfImage:
description: (boolean) 1 for m_fltRatioOfRowsToDisplay = 0.5, 0 for m_fltRatioOfRowsToDisplay = 1.0
type: integer
RFBandwidthFactor:
type: integer
OppBandwidthFactor:
type: integer
nbLinesIndex:
type: integer
intFrequencyOffset:
type: integer
enmModulation:
description: see ATVDemodSettings::ATVModulation
type: integer
fltRFBandwidth:
type: number
format: float
fltRFOppBandwidth:
type: number
format: float
blnFFTFiltering:
description: boolean
type: integer
blndecimatorEnable:
description: boolean
type: integer
fltBFOFrequency:
type: number
format: float
fmDeviation:
type: number
format: float
intSampleRate:
type: integer
enmATVStandard:
description: see ATVDemodSettings::ATVStd
type: integer
intNumberOfLines:
type: integer
fltLineDuration:
type: number
format: float
fltTopDuration:
type: number
format: float
fltFramePerS:
type: number
format: float
fltRatioOfRowsToDisplay:
type: number
format: float
fltVoltLevelSynchroTop:
type: number
format: float
fltVoltLevelSynchroBlack:
type: number
format: float
blnHSync:
description: boolean
type: integer
blnVSync:
description: boolean
type: integer
blnInvertVideo:
description: boolean
type: integer
intVideoTabIndex:
type: integer
intTVSampleRate:
type: integer
intNumberSamplePerLine:
type: integer
rgbColor:
type: integer
title:
type: string
udpAddress:
type: string
udpPort:
type: integer

View File

@ -21,12 +21,16 @@ ChannelSettings:
$ref: "http://localhost:8081/api/swagger/include/AMDemod.yaml#/AMDemodSettings"
AMModSettings:
$ref: "http://localhost:8081/api/swagger/include/AMMod.yaml#/AMModSettings"
ATVDemodSettings:
$ref: "http://localhost:8081/api/swagger/include/ATVDemod.yaml#/ATVDemodSettings"
ATVModSettings:
$ref: "http://localhost:8081/api/swagger/include/ATVMod.yaml#/ATVModSettings"
BFMDemodSettings:
$ref: "http://localhost:8081/api/swagger/include/BFMDemod.yaml#/BFMDemodSettings"
ChannelAnalyzerSettings:
$ref: "http://localhost:8081/api/swagger/include/ChannelAnalyzer.yaml#/ChannelAnalyzerSettings"
DATVDemodSettings:
$ref: "http://localhost:8081/api/swagger/include/DATVDemod.yaml#/DATVDemodSettings"
DSDDemodSettings:
$ref: "http://localhost:8081/api/swagger/include/DSDDemod.yaml#/DSDDemodSettings"
FileSourceSettings:

View File

@ -0,0 +1,61 @@
DATVDemodSettings:
description: DATVDemod
properties:
rgbColor:
type: integer
title:
type: string
rfBandwidth:
type: integer
centerFrequency:
type: integer
standard:
description: see DATVDemodSettings::dvb_version
type: integer
modulation:
description: see DATVDemodSettings::DATVModulation
type: integer
fec:
description: see DATVDemodSettings::DATVCodeRate
type: integer
audioMute:
description: boolean
type: integer
audioDeviceName:
type: string
symbolRate:
type: integer
notchFilters:
type: integer
allowDrift:
description: boolean
type: integer
fastLock:
description: boolean
type: integer
filter:
description: see DATVDemodSettings::dvb_sampler
type: integer
hardMetric:
description: boolean
type: integer
rollOff:
type: number
format: float
viterbi:
description: boolean
type: integer
excursion:
type: integer
audioVolume:
type: integer
videoMute:
description: boolean
type: integer
udpTSAddress:
type: string
udpTSPort:
type: integer
udpTS:
description: boolean
type: integer

View File

@ -892,6 +892,131 @@ margin-bottom: 20px;
}
},
"description" : "AMMod"
};
defs.ATVDemodSettings = {
"properties" : {
"lineTimeFactor" : {
"type" : "integer"
},
"topTimeFactor" : {
"type" : "integer"
},
"fpsIndex" : {
"type" : "integer"
},
"halfImage" : {
"type" : "integer",
"description" : "(boolean) 1 for m_fltRatioOfRowsToDisplay = 0.5, 0 for m_fltRatioOfRowsToDisplay = 1.0"
},
"RFBandwidthFactor" : {
"type" : "integer"
},
"OppBandwidthFactor" : {
"type" : "integer"
},
"nbLinesIndex" : {
"type" : "integer"
},
"intFrequencyOffset" : {
"type" : "integer"
},
"enmModulation" : {
"type" : "integer",
"description" : "see ATVDemodSettings::ATVModulation"
},
"fltRFBandwidth" : {
"type" : "number",
"format" : "float"
},
"fltRFOppBandwidth" : {
"type" : "number",
"format" : "float"
},
"blnFFTFiltering" : {
"type" : "integer",
"description" : "boolean"
},
"blndecimatorEnable" : {
"type" : "integer",
"description" : "boolean"
},
"fltBFOFrequency" : {
"type" : "number",
"format" : "float"
},
"fmDeviation" : {
"type" : "number",
"format" : "float"
},
"intSampleRate" : {
"type" : "integer"
},
"enmATVStandard" : {
"type" : "integer",
"description" : "see ATVDemodSettings::ATVStd"
},
"intNumberOfLines" : {
"type" : "integer"
},
"fltLineDuration" : {
"type" : "number",
"format" : "float"
},
"fltTopDuration" : {
"type" : "number",
"format" : "float"
},
"fltFramePerS" : {
"type" : "number",
"format" : "float"
},
"fltRatioOfRowsToDisplay" : {
"type" : "number",
"format" : "float"
},
"fltVoltLevelSynchroTop" : {
"type" : "number",
"format" : "float"
},
"fltVoltLevelSynchroBlack" : {
"type" : "number",
"format" : "float"
},
"blnHSync" : {
"type" : "integer",
"description" : "boolean"
},
"blnVSync" : {
"type" : "integer",
"description" : "boolean"
},
"blnInvertVideo" : {
"type" : "integer",
"description" : "boolean"
},
"intVideoTabIndex" : {
"type" : "integer"
},
"intTVSampleRate" : {
"type" : "integer"
},
"intNumberSamplePerLine" : {
"type" : "integer"
},
"rgbColor" : {
"type" : "integer"
},
"title" : {
"type" : "string"
},
"udpAddress" : {
"type" : "string"
},
"udpPort" : {
"type" : "integer"
}
},
"description" : "ATVDemod"
};
defs.ATVModReport = {
"properties" : {
@ -1958,6 +2083,9 @@ margin-bottom: 20px;
"AMModSettings" : {
"$ref" : "#/definitions/AMModSettings"
},
"ATVDemodSettings" : {
"$ref" : "#/definitions/ATVDemodSettings"
},
"ATVModSettings" : {
"$ref" : "#/definitions/ATVModSettings"
},
@ -1967,6 +2095,9 @@ margin-bottom: 20px;
"ChannelAnalyzerSettings" : {
"$ref" : "#/definitions/ChannelAnalyzerSettings"
},
"DATVDemodSettings" : {
"$ref" : "#/definitions/DATVDemodSettings"
},
"DSDDemodSettings" : {
"$ref" : "#/definitions/DSDDemodSettings"
},
@ -2082,6 +2213,92 @@ margin-bottom: 20px;
}
},
"description" : "A complex number"
};
defs.DATVDemodSettings = {
"properties" : {
"rgbColor" : {
"type" : "integer"
},
"title" : {
"type" : "string"
},
"rfBandwidth" : {
"type" : "integer"
},
"centerFrequency" : {
"type" : "integer"
},
"standard" : {
"type" : "integer",
"description" : "see DATVDemodSettings::dvb_version"
},
"modulation" : {
"type" : "integer",
"description" : "see DATVDemodSettings::DATVModulation"
},
"fec" : {
"type" : "integer",
"description" : "see DATVDemodSettings::DATVCodeRate"
},
"audioMute" : {
"type" : "integer",
"description" : "boolean"
},
"audioDeviceName" : {
"type" : "string"
},
"symbolRate" : {
"type" : "integer"
},
"notchFilters" : {
"type" : "integer"
},
"allowDrift" : {
"type" : "integer",
"description" : "boolean"
},
"fastLock" : {
"type" : "integer",
"description" : "boolean"
},
"filter" : {
"type" : "integer",
"description" : "see DATVDemodSettings::dvb_sampler"
},
"hardMetric" : {
"type" : "integer",
"description" : "boolean"
},
"rollOff" : {
"type" : "number",
"format" : "float"
},
"viterbi" : {
"type" : "integer",
"description" : "boolean"
},
"excursion" : {
"type" : "integer"
},
"audioVolume" : {
"type" : "integer"
},
"videoMute" : {
"type" : "integer",
"description" : "boolean"
},
"udpTSAddress" : {
"type" : "string"
},
"udpTSPort" : {
"type" : "integer"
},
"udpTS" : {
"type" : "integer",
"description" : "boolean"
}
},
"description" : "DATVDemod"
};
defs.DSDDemodReport = {
"properties" : {
@ -27997,7 +28214,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2019-08-10T05:46:27.219+02:00
Generated 2019-08-11T10:07:35.543+02:00
</div>
</div>
</div>

View File

@ -0,0 +1,871 @@
/**
* SDRangel
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
*
* OpenAPI spec version: 4.11.6
* Contact: f4exb06@gmail.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
#include "SWGATVDemodSettings.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGATVDemodSettings::SWGATVDemodSettings(QString* json) {
init();
this->fromJson(*json);
}
SWGATVDemodSettings::SWGATVDemodSettings() {
line_time_factor = 0;
m_line_time_factor_isSet = false;
top_time_factor = 0;
m_top_time_factor_isSet = false;
fps_index = 0;
m_fps_index_isSet = false;
half_image = 0;
m_half_image_isSet = false;
rf_bandwidth_factor = 0;
m_rf_bandwidth_factor_isSet = false;
opp_bandwidth_factor = 0;
m_opp_bandwidth_factor_isSet = false;
nb_lines_index = 0;
m_nb_lines_index_isSet = false;
int_frequency_offset = 0;
m_int_frequency_offset_isSet = false;
enm_modulation = 0;
m_enm_modulation_isSet = false;
flt_rf_bandwidth = 0.0f;
m_flt_rf_bandwidth_isSet = false;
flt_rf_opp_bandwidth = 0.0f;
m_flt_rf_opp_bandwidth_isSet = false;
bln_fft_filtering = 0;
m_bln_fft_filtering_isSet = false;
blndecimator_enable = 0;
m_blndecimator_enable_isSet = false;
flt_bfo_frequency = 0.0f;
m_flt_bfo_frequency_isSet = false;
fm_deviation = 0.0f;
m_fm_deviation_isSet = false;
int_sample_rate = 0;
m_int_sample_rate_isSet = false;
enm_atv_standard = 0;
m_enm_atv_standard_isSet = false;
int_number_of_lines = 0;
m_int_number_of_lines_isSet = false;
flt_line_duration = 0.0f;
m_flt_line_duration_isSet = false;
flt_top_duration = 0.0f;
m_flt_top_duration_isSet = false;
flt_frame_per_s = 0.0f;
m_flt_frame_per_s_isSet = false;
flt_ratio_of_rows_to_display = 0.0f;
m_flt_ratio_of_rows_to_display_isSet = false;
flt_volt_level_synchro_top = 0.0f;
m_flt_volt_level_synchro_top_isSet = false;
flt_volt_level_synchro_black = 0.0f;
m_flt_volt_level_synchro_black_isSet = false;
bln_h_sync = 0;
m_bln_h_sync_isSet = false;
bln_v_sync = 0;
m_bln_v_sync_isSet = false;
bln_invert_video = 0;
m_bln_invert_video_isSet = false;
int_video_tab_index = 0;
m_int_video_tab_index_isSet = false;
int_tv_sample_rate = 0;
m_int_tv_sample_rate_isSet = false;
int_number_sample_per_line = 0;
m_int_number_sample_per_line_isSet = false;
rgb_color = 0;
m_rgb_color_isSet = false;
title = nullptr;
m_title_isSet = false;
udp_address = nullptr;
m_udp_address_isSet = false;
udp_port = 0;
m_udp_port_isSet = false;
}
SWGATVDemodSettings::~SWGATVDemodSettings() {
this->cleanup();
}
void
SWGATVDemodSettings::init() {
line_time_factor = 0;
m_line_time_factor_isSet = false;
top_time_factor = 0;
m_top_time_factor_isSet = false;
fps_index = 0;
m_fps_index_isSet = false;
half_image = 0;
m_half_image_isSet = false;
rf_bandwidth_factor = 0;
m_rf_bandwidth_factor_isSet = false;
opp_bandwidth_factor = 0;
m_opp_bandwidth_factor_isSet = false;
nb_lines_index = 0;
m_nb_lines_index_isSet = false;
int_frequency_offset = 0;
m_int_frequency_offset_isSet = false;
enm_modulation = 0;
m_enm_modulation_isSet = false;
flt_rf_bandwidth = 0.0f;
m_flt_rf_bandwidth_isSet = false;
flt_rf_opp_bandwidth = 0.0f;
m_flt_rf_opp_bandwidth_isSet = false;
bln_fft_filtering = 0;
m_bln_fft_filtering_isSet = false;
blndecimator_enable = 0;
m_blndecimator_enable_isSet = false;
flt_bfo_frequency = 0.0f;
m_flt_bfo_frequency_isSet = false;
fm_deviation = 0.0f;
m_fm_deviation_isSet = false;
int_sample_rate = 0;
m_int_sample_rate_isSet = false;
enm_atv_standard = 0;
m_enm_atv_standard_isSet = false;
int_number_of_lines = 0;
m_int_number_of_lines_isSet = false;
flt_line_duration = 0.0f;
m_flt_line_duration_isSet = false;
flt_top_duration = 0.0f;
m_flt_top_duration_isSet = false;
flt_frame_per_s = 0.0f;
m_flt_frame_per_s_isSet = false;
flt_ratio_of_rows_to_display = 0.0f;
m_flt_ratio_of_rows_to_display_isSet = false;
flt_volt_level_synchro_top = 0.0f;
m_flt_volt_level_synchro_top_isSet = false;
flt_volt_level_synchro_black = 0.0f;
m_flt_volt_level_synchro_black_isSet = false;
bln_h_sync = 0;
m_bln_h_sync_isSet = false;
bln_v_sync = 0;
m_bln_v_sync_isSet = false;
bln_invert_video = 0;
m_bln_invert_video_isSet = false;
int_video_tab_index = 0;
m_int_video_tab_index_isSet = false;
int_tv_sample_rate = 0;
m_int_tv_sample_rate_isSet = false;
int_number_sample_per_line = 0;
m_int_number_sample_per_line_isSet = false;
rgb_color = 0;
m_rgb_color_isSet = false;
title = new QString("");
m_title_isSet = false;
udp_address = new QString("");
m_udp_address_isSet = false;
udp_port = 0;
m_udp_port_isSet = false;
}
void
SWGATVDemodSettings::cleanup() {
if(title != nullptr) {
delete title;
}
if(udp_address != nullptr) {
delete udp_address;
}
}
SWGATVDemodSettings*
SWGATVDemodSettings::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGATVDemodSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&line_time_factor, pJson["lineTimeFactor"], "qint32", "");
::SWGSDRangel::setValue(&top_time_factor, pJson["topTimeFactor"], "qint32", "");
::SWGSDRangel::setValue(&fps_index, pJson["fpsIndex"], "qint32", "");
::SWGSDRangel::setValue(&half_image, pJson["halfImage"], "qint32", "");
::SWGSDRangel::setValue(&rf_bandwidth_factor, pJson["RFBandwidthFactor"], "qint32", "");
::SWGSDRangel::setValue(&opp_bandwidth_factor, pJson["OppBandwidthFactor"], "qint32", "");
::SWGSDRangel::setValue(&nb_lines_index, pJson["nbLinesIndex"], "qint32", "");
::SWGSDRangel::setValue(&int_frequency_offset, pJson["intFrequencyOffset"], "qint32", "");
::SWGSDRangel::setValue(&enm_modulation, pJson["enmModulation"], "qint32", "");
::SWGSDRangel::setValue(&flt_rf_bandwidth, pJson["fltRFBandwidth"], "float", "");
::SWGSDRangel::setValue(&flt_rf_opp_bandwidth, pJson["fltRFOppBandwidth"], "float", "");
::SWGSDRangel::setValue(&bln_fft_filtering, pJson["blnFFTFiltering"], "qint32", "");
::SWGSDRangel::setValue(&blndecimator_enable, pJson["blndecimatorEnable"], "qint32", "");
::SWGSDRangel::setValue(&flt_bfo_frequency, pJson["fltBFOFrequency"], "float", "");
::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "float", "");
::SWGSDRangel::setValue(&int_sample_rate, pJson["intSampleRate"], "qint32", "");
::SWGSDRangel::setValue(&enm_atv_standard, pJson["enmATVStandard"], "qint32", "");
::SWGSDRangel::setValue(&int_number_of_lines, pJson["intNumberOfLines"], "qint32", "");
::SWGSDRangel::setValue(&flt_line_duration, pJson["fltLineDuration"], "float", "");
::SWGSDRangel::setValue(&flt_top_duration, pJson["fltTopDuration"], "float", "");
::SWGSDRangel::setValue(&flt_frame_per_s, pJson["fltFramePerS"], "float", "");
::SWGSDRangel::setValue(&flt_ratio_of_rows_to_display, pJson["fltRatioOfRowsToDisplay"], "float", "");
::SWGSDRangel::setValue(&flt_volt_level_synchro_top, pJson["fltVoltLevelSynchroTop"], "float", "");
::SWGSDRangel::setValue(&flt_volt_level_synchro_black, pJson["fltVoltLevelSynchroBlack"], "float", "");
::SWGSDRangel::setValue(&bln_h_sync, pJson["blnHSync"], "qint32", "");
::SWGSDRangel::setValue(&bln_v_sync, pJson["blnVSync"], "qint32", "");
::SWGSDRangel::setValue(&bln_invert_video, pJson["blnInvertVideo"], "qint32", "");
::SWGSDRangel::setValue(&int_video_tab_index, pJson["intVideoTabIndex"], "qint32", "");
::SWGSDRangel::setValue(&int_tv_sample_rate, pJson["intTVSampleRate"], "qint32", "");
::SWGSDRangel::setValue(&int_number_sample_per_line, pJson["intNumberSamplePerLine"], "qint32", "");
::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
::SWGSDRangel::setValue(&udp_address, pJson["udpAddress"], "QString", "QString");
::SWGSDRangel::setValue(&udp_port, pJson["udpPort"], "qint32", "");
}
QString
SWGATVDemodSettings::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGATVDemodSettings::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_line_time_factor_isSet){
obj->insert("lineTimeFactor", QJsonValue(line_time_factor));
}
if(m_top_time_factor_isSet){
obj->insert("topTimeFactor", QJsonValue(top_time_factor));
}
if(m_fps_index_isSet){
obj->insert("fpsIndex", QJsonValue(fps_index));
}
if(m_half_image_isSet){
obj->insert("halfImage", QJsonValue(half_image));
}
if(m_rf_bandwidth_factor_isSet){
obj->insert("RFBandwidthFactor", QJsonValue(rf_bandwidth_factor));
}
if(m_opp_bandwidth_factor_isSet){
obj->insert("OppBandwidthFactor", QJsonValue(opp_bandwidth_factor));
}
if(m_nb_lines_index_isSet){
obj->insert("nbLinesIndex", QJsonValue(nb_lines_index));
}
if(m_int_frequency_offset_isSet){
obj->insert("intFrequencyOffset", QJsonValue(int_frequency_offset));
}
if(m_enm_modulation_isSet){
obj->insert("enmModulation", QJsonValue(enm_modulation));
}
if(m_flt_rf_bandwidth_isSet){
obj->insert("fltRFBandwidth", QJsonValue(flt_rf_bandwidth));
}
if(m_flt_rf_opp_bandwidth_isSet){
obj->insert("fltRFOppBandwidth", QJsonValue(flt_rf_opp_bandwidth));
}
if(m_bln_fft_filtering_isSet){
obj->insert("blnFFTFiltering", QJsonValue(bln_fft_filtering));
}
if(m_blndecimator_enable_isSet){
obj->insert("blndecimatorEnable", QJsonValue(blndecimator_enable));
}
if(m_flt_bfo_frequency_isSet){
obj->insert("fltBFOFrequency", QJsonValue(flt_bfo_frequency));
}
if(m_fm_deviation_isSet){
obj->insert("fmDeviation", QJsonValue(fm_deviation));
}
if(m_int_sample_rate_isSet){
obj->insert("intSampleRate", QJsonValue(int_sample_rate));
}
if(m_enm_atv_standard_isSet){
obj->insert("enmATVStandard", QJsonValue(enm_atv_standard));
}
if(m_int_number_of_lines_isSet){
obj->insert("intNumberOfLines", QJsonValue(int_number_of_lines));
}
if(m_flt_line_duration_isSet){
obj->insert("fltLineDuration", QJsonValue(flt_line_duration));
}
if(m_flt_top_duration_isSet){
obj->insert("fltTopDuration", QJsonValue(flt_top_duration));
}
if(m_flt_frame_per_s_isSet){
obj->insert("fltFramePerS", QJsonValue(flt_frame_per_s));
}
if(m_flt_ratio_of_rows_to_display_isSet){
obj->insert("fltRatioOfRowsToDisplay", QJsonValue(flt_ratio_of_rows_to_display));
}
if(m_flt_volt_level_synchro_top_isSet){
obj->insert("fltVoltLevelSynchroTop", QJsonValue(flt_volt_level_synchro_top));
}
if(m_flt_volt_level_synchro_black_isSet){
obj->insert("fltVoltLevelSynchroBlack", QJsonValue(flt_volt_level_synchro_black));
}
if(m_bln_h_sync_isSet){
obj->insert("blnHSync", QJsonValue(bln_h_sync));
}
if(m_bln_v_sync_isSet){
obj->insert("blnVSync", QJsonValue(bln_v_sync));
}
if(m_bln_invert_video_isSet){
obj->insert("blnInvertVideo", QJsonValue(bln_invert_video));
}
if(m_int_video_tab_index_isSet){
obj->insert("intVideoTabIndex", QJsonValue(int_video_tab_index));
}
if(m_int_tv_sample_rate_isSet){
obj->insert("intTVSampleRate", QJsonValue(int_tv_sample_rate));
}
if(m_int_number_sample_per_line_isSet){
obj->insert("intNumberSamplePerLine", QJsonValue(int_number_sample_per_line));
}
if(m_rgb_color_isSet){
obj->insert("rgbColor", QJsonValue(rgb_color));
}
if(title != nullptr && *title != QString("")){
toJsonValue(QString("title"), title, obj, QString("QString"));
}
if(udp_address != nullptr && *udp_address != QString("")){
toJsonValue(QString("udpAddress"), udp_address, obj, QString("QString"));
}
if(m_udp_port_isSet){
obj->insert("udpPort", QJsonValue(udp_port));
}
return obj;
}
qint32
SWGATVDemodSettings::getLineTimeFactor() {
return line_time_factor;
}
void
SWGATVDemodSettings::setLineTimeFactor(qint32 line_time_factor) {
this->line_time_factor = line_time_factor;
this->m_line_time_factor_isSet = true;
}
qint32
SWGATVDemodSettings::getTopTimeFactor() {
return top_time_factor;
}
void
SWGATVDemodSettings::setTopTimeFactor(qint32 top_time_factor) {
this->top_time_factor = top_time_factor;
this->m_top_time_factor_isSet = true;
}
qint32
SWGATVDemodSettings::getFpsIndex() {
return fps_index;
}
void
SWGATVDemodSettings::setFpsIndex(qint32 fps_index) {
this->fps_index = fps_index;
this->m_fps_index_isSet = true;
}
qint32
SWGATVDemodSettings::getHalfImage() {
return half_image;
}
void
SWGATVDemodSettings::setHalfImage(qint32 half_image) {
this->half_image = half_image;
this->m_half_image_isSet = true;
}
qint32
SWGATVDemodSettings::getRfBandwidthFactor() {
return rf_bandwidth_factor;
}
void
SWGATVDemodSettings::setRfBandwidthFactor(qint32 rf_bandwidth_factor) {
this->rf_bandwidth_factor = rf_bandwidth_factor;
this->m_rf_bandwidth_factor_isSet = true;
}
qint32
SWGATVDemodSettings::getOppBandwidthFactor() {
return opp_bandwidth_factor;
}
void
SWGATVDemodSettings::setOppBandwidthFactor(qint32 opp_bandwidth_factor) {
this->opp_bandwidth_factor = opp_bandwidth_factor;
this->m_opp_bandwidth_factor_isSet = true;
}
qint32
SWGATVDemodSettings::getNbLinesIndex() {
return nb_lines_index;
}
void
SWGATVDemodSettings::setNbLinesIndex(qint32 nb_lines_index) {
this->nb_lines_index = nb_lines_index;
this->m_nb_lines_index_isSet = true;
}
qint32
SWGATVDemodSettings::getIntFrequencyOffset() {
return int_frequency_offset;
}
void
SWGATVDemodSettings::setIntFrequencyOffset(qint32 int_frequency_offset) {
this->int_frequency_offset = int_frequency_offset;
this->m_int_frequency_offset_isSet = true;
}
qint32
SWGATVDemodSettings::getEnmModulation() {
return enm_modulation;
}
void
SWGATVDemodSettings::setEnmModulation(qint32 enm_modulation) {
this->enm_modulation = enm_modulation;
this->m_enm_modulation_isSet = true;
}
float
SWGATVDemodSettings::getFltRfBandwidth() {
return flt_rf_bandwidth;
}
void
SWGATVDemodSettings::setFltRfBandwidth(float flt_rf_bandwidth) {
this->flt_rf_bandwidth = flt_rf_bandwidth;
this->m_flt_rf_bandwidth_isSet = true;
}
float
SWGATVDemodSettings::getFltRfOppBandwidth() {
return flt_rf_opp_bandwidth;
}
void
SWGATVDemodSettings::setFltRfOppBandwidth(float flt_rf_opp_bandwidth) {
this->flt_rf_opp_bandwidth = flt_rf_opp_bandwidth;
this->m_flt_rf_opp_bandwidth_isSet = true;
}
qint32
SWGATVDemodSettings::getBlnFftFiltering() {
return bln_fft_filtering;
}
void
SWGATVDemodSettings::setBlnFftFiltering(qint32 bln_fft_filtering) {
this->bln_fft_filtering = bln_fft_filtering;
this->m_bln_fft_filtering_isSet = true;
}
qint32
SWGATVDemodSettings::getBlndecimatorEnable() {
return blndecimator_enable;
}
void
SWGATVDemodSettings::setBlndecimatorEnable(qint32 blndecimator_enable) {
this->blndecimator_enable = blndecimator_enable;
this->m_blndecimator_enable_isSet = true;
}
float
SWGATVDemodSettings::getFltBfoFrequency() {
return flt_bfo_frequency;
}
void
SWGATVDemodSettings::setFltBfoFrequency(float flt_bfo_frequency) {
this->flt_bfo_frequency = flt_bfo_frequency;
this->m_flt_bfo_frequency_isSet = true;
}
float
SWGATVDemodSettings::getFmDeviation() {
return fm_deviation;
}
void
SWGATVDemodSettings::setFmDeviation(float fm_deviation) {
this->fm_deviation = fm_deviation;
this->m_fm_deviation_isSet = true;
}
qint32
SWGATVDemodSettings::getIntSampleRate() {
return int_sample_rate;
}
void
SWGATVDemodSettings::setIntSampleRate(qint32 int_sample_rate) {
this->int_sample_rate = int_sample_rate;
this->m_int_sample_rate_isSet = true;
}
qint32
SWGATVDemodSettings::getEnmAtvStandard() {
return enm_atv_standard;
}
void
SWGATVDemodSettings::setEnmAtvStandard(qint32 enm_atv_standard) {
this->enm_atv_standard = enm_atv_standard;
this->m_enm_atv_standard_isSet = true;
}
qint32
SWGATVDemodSettings::getIntNumberOfLines() {
return int_number_of_lines;
}
void
SWGATVDemodSettings::setIntNumberOfLines(qint32 int_number_of_lines) {
this->int_number_of_lines = int_number_of_lines;
this->m_int_number_of_lines_isSet = true;
}
float
SWGATVDemodSettings::getFltLineDuration() {
return flt_line_duration;
}
void
SWGATVDemodSettings::setFltLineDuration(float flt_line_duration) {
this->flt_line_duration = flt_line_duration;
this->m_flt_line_duration_isSet = true;
}
float
SWGATVDemodSettings::getFltTopDuration() {
return flt_top_duration;
}
void
SWGATVDemodSettings::setFltTopDuration(float flt_top_duration) {
this->flt_top_duration = flt_top_duration;
this->m_flt_top_duration_isSet = true;
}
float
SWGATVDemodSettings::getFltFramePerS() {
return flt_frame_per_s;
}
void
SWGATVDemodSettings::setFltFramePerS(float flt_frame_per_s) {
this->flt_frame_per_s = flt_frame_per_s;
this->m_flt_frame_per_s_isSet = true;
}
float
SWGATVDemodSettings::getFltRatioOfRowsToDisplay() {
return flt_ratio_of_rows_to_display;
}
void
SWGATVDemodSettings::setFltRatioOfRowsToDisplay(float flt_ratio_of_rows_to_display) {
this->flt_ratio_of_rows_to_display = flt_ratio_of_rows_to_display;
this->m_flt_ratio_of_rows_to_display_isSet = true;
}
float
SWGATVDemodSettings::getFltVoltLevelSynchroTop() {
return flt_volt_level_synchro_top;
}
void
SWGATVDemodSettings::setFltVoltLevelSynchroTop(float flt_volt_level_synchro_top) {
this->flt_volt_level_synchro_top = flt_volt_level_synchro_top;
this->m_flt_volt_level_synchro_top_isSet = true;
}
float
SWGATVDemodSettings::getFltVoltLevelSynchroBlack() {
return flt_volt_level_synchro_black;
}
void
SWGATVDemodSettings::setFltVoltLevelSynchroBlack(float flt_volt_level_synchro_black) {
this->flt_volt_level_synchro_black = flt_volt_level_synchro_black;
this->m_flt_volt_level_synchro_black_isSet = true;
}
qint32
SWGATVDemodSettings::getBlnHSync() {
return bln_h_sync;
}
void
SWGATVDemodSettings::setBlnHSync(qint32 bln_h_sync) {
this->bln_h_sync = bln_h_sync;
this->m_bln_h_sync_isSet = true;
}
qint32
SWGATVDemodSettings::getBlnVSync() {
return bln_v_sync;
}
void
SWGATVDemodSettings::setBlnVSync(qint32 bln_v_sync) {
this->bln_v_sync = bln_v_sync;
this->m_bln_v_sync_isSet = true;
}
qint32
SWGATVDemodSettings::getBlnInvertVideo() {
return bln_invert_video;
}
void
SWGATVDemodSettings::setBlnInvertVideo(qint32 bln_invert_video) {
this->bln_invert_video = bln_invert_video;
this->m_bln_invert_video_isSet = true;
}
qint32
SWGATVDemodSettings::getIntVideoTabIndex() {
return int_video_tab_index;
}
void
SWGATVDemodSettings::setIntVideoTabIndex(qint32 int_video_tab_index) {
this->int_video_tab_index = int_video_tab_index;
this->m_int_video_tab_index_isSet = true;
}
qint32
SWGATVDemodSettings::getIntTvSampleRate() {
return int_tv_sample_rate;
}
void
SWGATVDemodSettings::setIntTvSampleRate(qint32 int_tv_sample_rate) {
this->int_tv_sample_rate = int_tv_sample_rate;
this->m_int_tv_sample_rate_isSet = true;
}
qint32
SWGATVDemodSettings::getIntNumberSamplePerLine() {
return int_number_sample_per_line;
}
void
SWGATVDemodSettings::setIntNumberSamplePerLine(qint32 int_number_sample_per_line) {
this->int_number_sample_per_line = int_number_sample_per_line;
this->m_int_number_sample_per_line_isSet = true;
}
qint32
SWGATVDemodSettings::getRgbColor() {
return rgb_color;
}
void
SWGATVDemodSettings::setRgbColor(qint32 rgb_color) {
this->rgb_color = rgb_color;
this->m_rgb_color_isSet = true;
}
QString*
SWGATVDemodSettings::getTitle() {
return title;
}
void
SWGATVDemodSettings::setTitle(QString* title) {
this->title = title;
this->m_title_isSet = true;
}
QString*
SWGATVDemodSettings::getUdpAddress() {
return udp_address;
}
void
SWGATVDemodSettings::setUdpAddress(QString* udp_address) {
this->udp_address = udp_address;
this->m_udp_address_isSet = true;
}
qint32
SWGATVDemodSettings::getUdpPort() {
return udp_port;
}
void
SWGATVDemodSettings::setUdpPort(qint32 udp_port) {
this->udp_port = udp_port;
this->m_udp_port_isSet = true;
}
bool
SWGATVDemodSettings::isSet(){
bool isObjectUpdated = false;
do{
if(m_line_time_factor_isSet){
isObjectUpdated = true; break;
}
if(m_top_time_factor_isSet){
isObjectUpdated = true; break;
}
if(m_fps_index_isSet){
isObjectUpdated = true; break;
}
if(m_half_image_isSet){
isObjectUpdated = true; break;
}
if(m_rf_bandwidth_factor_isSet){
isObjectUpdated = true; break;
}
if(m_opp_bandwidth_factor_isSet){
isObjectUpdated = true; break;
}
if(m_nb_lines_index_isSet){
isObjectUpdated = true; break;
}
if(m_int_frequency_offset_isSet){
isObjectUpdated = true; break;
}
if(m_enm_modulation_isSet){
isObjectUpdated = true; break;
}
if(m_flt_rf_bandwidth_isSet){
isObjectUpdated = true; break;
}
if(m_flt_rf_opp_bandwidth_isSet){
isObjectUpdated = true; break;
}
if(m_bln_fft_filtering_isSet){
isObjectUpdated = true; break;
}
if(m_blndecimator_enable_isSet){
isObjectUpdated = true; break;
}
if(m_flt_bfo_frequency_isSet){
isObjectUpdated = true; break;
}
if(m_fm_deviation_isSet){
isObjectUpdated = true; break;
}
if(m_int_sample_rate_isSet){
isObjectUpdated = true; break;
}
if(m_enm_atv_standard_isSet){
isObjectUpdated = true; break;
}
if(m_int_number_of_lines_isSet){
isObjectUpdated = true; break;
}
if(m_flt_line_duration_isSet){
isObjectUpdated = true; break;
}
if(m_flt_top_duration_isSet){
isObjectUpdated = true; break;
}
if(m_flt_frame_per_s_isSet){
isObjectUpdated = true; break;
}
if(m_flt_ratio_of_rows_to_display_isSet){
isObjectUpdated = true; break;
}
if(m_flt_volt_level_synchro_top_isSet){
isObjectUpdated = true; break;
}
if(m_flt_volt_level_synchro_black_isSet){
isObjectUpdated = true; break;
}
if(m_bln_h_sync_isSet){
isObjectUpdated = true; break;
}
if(m_bln_v_sync_isSet){
isObjectUpdated = true; break;
}
if(m_bln_invert_video_isSet){
isObjectUpdated = true; break;
}
if(m_int_video_tab_index_isSet){
isObjectUpdated = true; break;
}
if(m_int_tv_sample_rate_isSet){
isObjectUpdated = true; break;
}
if(m_int_number_sample_per_line_isSet){
isObjectUpdated = true; break;
}
if(m_rgb_color_isSet){
isObjectUpdated = true; break;
}
if(title && *title != QString("")){
isObjectUpdated = true; break;
}
if(udp_address && *udp_address != QString("")){
isObjectUpdated = true; break;
}
if(m_udp_port_isSet){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -0,0 +1,257 @@
/**
* SDRangel
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
*
* OpenAPI spec version: 4.11.6
* Contact: f4exb06@gmail.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
/*
* SWGATVDemodSettings.h
*
* ATVDemod
*/
#ifndef SWGATVDemodSettings_H_
#define SWGATVDemodSettings_H_
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGATVDemodSettings: public SWGObject {
public:
SWGATVDemodSettings();
SWGATVDemodSettings(QString* json);
virtual ~SWGATVDemodSettings();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGATVDemodSettings* fromJson(QString &jsonString) override;
qint32 getLineTimeFactor();
void setLineTimeFactor(qint32 line_time_factor);
qint32 getTopTimeFactor();
void setTopTimeFactor(qint32 top_time_factor);
qint32 getFpsIndex();
void setFpsIndex(qint32 fps_index);
qint32 getHalfImage();
void setHalfImage(qint32 half_image);
qint32 getRfBandwidthFactor();
void setRfBandwidthFactor(qint32 rf_bandwidth_factor);
qint32 getOppBandwidthFactor();
void setOppBandwidthFactor(qint32 opp_bandwidth_factor);
qint32 getNbLinesIndex();
void setNbLinesIndex(qint32 nb_lines_index);
qint32 getIntFrequencyOffset();
void setIntFrequencyOffset(qint32 int_frequency_offset);
qint32 getEnmModulation();
void setEnmModulation(qint32 enm_modulation);
float getFltRfBandwidth();
void setFltRfBandwidth(float flt_rf_bandwidth);
float getFltRfOppBandwidth();
void setFltRfOppBandwidth(float flt_rf_opp_bandwidth);
qint32 getBlnFftFiltering();
void setBlnFftFiltering(qint32 bln_fft_filtering);
qint32 getBlndecimatorEnable();
void setBlndecimatorEnable(qint32 blndecimator_enable);
float getFltBfoFrequency();
void setFltBfoFrequency(float flt_bfo_frequency);
float getFmDeviation();
void setFmDeviation(float fm_deviation);
qint32 getIntSampleRate();
void setIntSampleRate(qint32 int_sample_rate);
qint32 getEnmAtvStandard();
void setEnmAtvStandard(qint32 enm_atv_standard);
qint32 getIntNumberOfLines();
void setIntNumberOfLines(qint32 int_number_of_lines);
float getFltLineDuration();
void setFltLineDuration(float flt_line_duration);
float getFltTopDuration();
void setFltTopDuration(float flt_top_duration);
float getFltFramePerS();
void setFltFramePerS(float flt_frame_per_s);
float getFltRatioOfRowsToDisplay();
void setFltRatioOfRowsToDisplay(float flt_ratio_of_rows_to_display);
float getFltVoltLevelSynchroTop();
void setFltVoltLevelSynchroTop(float flt_volt_level_synchro_top);
float getFltVoltLevelSynchroBlack();
void setFltVoltLevelSynchroBlack(float flt_volt_level_synchro_black);
qint32 getBlnHSync();
void setBlnHSync(qint32 bln_h_sync);
qint32 getBlnVSync();
void setBlnVSync(qint32 bln_v_sync);
qint32 getBlnInvertVideo();
void setBlnInvertVideo(qint32 bln_invert_video);
qint32 getIntVideoTabIndex();
void setIntVideoTabIndex(qint32 int_video_tab_index);
qint32 getIntTvSampleRate();
void setIntTvSampleRate(qint32 int_tv_sample_rate);
qint32 getIntNumberSamplePerLine();
void setIntNumberSamplePerLine(qint32 int_number_sample_per_line);
qint32 getRgbColor();
void setRgbColor(qint32 rgb_color);
QString* getTitle();
void setTitle(QString* title);
QString* getUdpAddress();
void setUdpAddress(QString* udp_address);
qint32 getUdpPort();
void setUdpPort(qint32 udp_port);
virtual bool isSet() override;
private:
qint32 line_time_factor;
bool m_line_time_factor_isSet;
qint32 top_time_factor;
bool m_top_time_factor_isSet;
qint32 fps_index;
bool m_fps_index_isSet;
qint32 half_image;
bool m_half_image_isSet;
qint32 rf_bandwidth_factor;
bool m_rf_bandwidth_factor_isSet;
qint32 opp_bandwidth_factor;
bool m_opp_bandwidth_factor_isSet;
qint32 nb_lines_index;
bool m_nb_lines_index_isSet;
qint32 int_frequency_offset;
bool m_int_frequency_offset_isSet;
qint32 enm_modulation;
bool m_enm_modulation_isSet;
float flt_rf_bandwidth;
bool m_flt_rf_bandwidth_isSet;
float flt_rf_opp_bandwidth;
bool m_flt_rf_opp_bandwidth_isSet;
qint32 bln_fft_filtering;
bool m_bln_fft_filtering_isSet;
qint32 blndecimator_enable;
bool m_blndecimator_enable_isSet;
float flt_bfo_frequency;
bool m_flt_bfo_frequency_isSet;
float fm_deviation;
bool m_fm_deviation_isSet;
qint32 int_sample_rate;
bool m_int_sample_rate_isSet;
qint32 enm_atv_standard;
bool m_enm_atv_standard_isSet;
qint32 int_number_of_lines;
bool m_int_number_of_lines_isSet;
float flt_line_duration;
bool m_flt_line_duration_isSet;
float flt_top_duration;
bool m_flt_top_duration_isSet;
float flt_frame_per_s;
bool m_flt_frame_per_s_isSet;
float flt_ratio_of_rows_to_display;
bool m_flt_ratio_of_rows_to_display_isSet;
float flt_volt_level_synchro_top;
bool m_flt_volt_level_synchro_top_isSet;
float flt_volt_level_synchro_black;
bool m_flt_volt_level_synchro_black_isSet;
qint32 bln_h_sync;
bool m_bln_h_sync_isSet;
qint32 bln_v_sync;
bool m_bln_v_sync_isSet;
qint32 bln_invert_video;
bool m_bln_invert_video_isSet;
qint32 int_video_tab_index;
bool m_int_video_tab_index_isSet;
qint32 int_tv_sample_rate;
bool m_int_tv_sample_rate_isSet;
qint32 int_number_sample_per_line;
bool m_int_number_sample_per_line_isSet;
qint32 rgb_color;
bool m_rgb_color_isSet;
QString* title;
bool m_title_isSet;
QString* udp_address;
bool m_udp_address_isSet;
qint32 udp_port;
bool m_udp_port_isSet;
};
}
#endif /* SWGATVDemodSettings_H_ */

View File

@ -40,12 +40,16 @@ SWGChannelSettings::SWGChannelSettings() {
m_am_demod_settings_isSet = false;
am_mod_settings = nullptr;
m_am_mod_settings_isSet = false;
atv_demod_settings = nullptr;
m_atv_demod_settings_isSet = false;
atv_mod_settings = nullptr;
m_atv_mod_settings_isSet = false;
bfm_demod_settings = nullptr;
m_bfm_demod_settings_isSet = false;
channel_analyzer_settings = nullptr;
m_channel_analyzer_settings_isSet = false;
datv_demod_settings = nullptr;
m_datv_demod_settings_isSet = false;
dsd_demod_settings = nullptr;
m_dsd_demod_settings_isSet = false;
file_source_settings = nullptr;
@ -100,12 +104,16 @@ SWGChannelSettings::init() {
m_am_demod_settings_isSet = false;
am_mod_settings = new SWGAMModSettings();
m_am_mod_settings_isSet = false;
atv_demod_settings = new SWGATVDemodSettings();
m_atv_demod_settings_isSet = false;
atv_mod_settings = new SWGATVModSettings();
m_atv_mod_settings_isSet = false;
bfm_demod_settings = new SWGBFMDemodSettings();
m_bfm_demod_settings_isSet = false;
channel_analyzer_settings = new SWGChannelAnalyzerSettings();
m_channel_analyzer_settings_isSet = false;
datv_demod_settings = new SWGDATVDemodSettings();
m_datv_demod_settings_isSet = false;
dsd_demod_settings = new SWGDSDDemodSettings();
m_dsd_demod_settings_isSet = false;
file_source_settings = new SWGFileSourceSettings();
@ -156,6 +164,9 @@ SWGChannelSettings::cleanup() {
if(am_mod_settings != nullptr) {
delete am_mod_settings;
}
if(atv_demod_settings != nullptr) {
delete atv_demod_settings;
}
if(atv_mod_settings != nullptr) {
delete atv_mod_settings;
}
@ -165,6 +176,9 @@ SWGChannelSettings::cleanup() {
if(channel_analyzer_settings != nullptr) {
delete channel_analyzer_settings;
}
if(datv_demod_settings != nullptr) {
delete datv_demod_settings;
}
if(dsd_demod_settings != nullptr) {
delete dsd_demod_settings;
}
@ -241,12 +255,16 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&am_mod_settings, pJson["AMModSettings"], "SWGAMModSettings", "SWGAMModSettings");
::SWGSDRangel::setValue(&atv_demod_settings, pJson["ATVDemodSettings"], "SWGATVDemodSettings", "SWGATVDemodSettings");
::SWGSDRangel::setValue(&atv_mod_settings, pJson["ATVModSettings"], "SWGATVModSettings", "SWGATVModSettings");
::SWGSDRangel::setValue(&bfm_demod_settings, pJson["BFMDemodSettings"], "SWGBFMDemodSettings", "SWGBFMDemodSettings");
::SWGSDRangel::setValue(&channel_analyzer_settings, pJson["ChannelAnalyzerSettings"], "SWGChannelAnalyzerSettings", "SWGChannelAnalyzerSettings");
::SWGSDRangel::setValue(&datv_demod_settings, pJson["DATVDemodSettings"], "SWGDATVDemodSettings", "SWGDATVDemodSettings");
::SWGSDRangel::setValue(&dsd_demod_settings, pJson["DSDDemodSettings"], "SWGDSDDemodSettings", "SWGDSDDemodSettings");
::SWGSDRangel::setValue(&file_source_settings, pJson["FileSourceSettings"], "SWGFileSourceSettings", "SWGFileSourceSettings");
@ -315,6 +333,9 @@ SWGChannelSettings::asJsonObject() {
if((am_mod_settings != nullptr) && (am_mod_settings->isSet())){
toJsonValue(QString("AMModSettings"), am_mod_settings, obj, QString("SWGAMModSettings"));
}
if((atv_demod_settings != nullptr) && (atv_demod_settings->isSet())){
toJsonValue(QString("ATVDemodSettings"), atv_demod_settings, obj, QString("SWGATVDemodSettings"));
}
if((atv_mod_settings != nullptr) && (atv_mod_settings->isSet())){
toJsonValue(QString("ATVModSettings"), atv_mod_settings, obj, QString("SWGATVModSettings"));
}
@ -324,6 +345,9 @@ SWGChannelSettings::asJsonObject() {
if((channel_analyzer_settings != nullptr) && (channel_analyzer_settings->isSet())){
toJsonValue(QString("ChannelAnalyzerSettings"), channel_analyzer_settings, obj, QString("SWGChannelAnalyzerSettings"));
}
if((datv_demod_settings != nullptr) && (datv_demod_settings->isSet())){
toJsonValue(QString("DATVDemodSettings"), datv_demod_settings, obj, QString("SWGDATVDemodSettings"));
}
if((dsd_demod_settings != nullptr) && (dsd_demod_settings->isSet())){
toJsonValue(QString("DSDDemodSettings"), dsd_demod_settings, obj, QString("SWGDSDDemodSettings"));
}
@ -439,6 +463,16 @@ SWGChannelSettings::setAmModSettings(SWGAMModSettings* am_mod_settings) {
this->m_am_mod_settings_isSet = true;
}
SWGATVDemodSettings*
SWGChannelSettings::getAtvDemodSettings() {
return atv_demod_settings;
}
void
SWGChannelSettings::setAtvDemodSettings(SWGATVDemodSettings* atv_demod_settings) {
this->atv_demod_settings = atv_demod_settings;
this->m_atv_demod_settings_isSet = true;
}
SWGATVModSettings*
SWGChannelSettings::getAtvModSettings() {
return atv_mod_settings;
@ -469,6 +503,16 @@ SWGChannelSettings::setChannelAnalyzerSettings(SWGChannelAnalyzerSettings* chann
this->m_channel_analyzer_settings_isSet = true;
}
SWGDATVDemodSettings*
SWGChannelSettings::getDatvDemodSettings() {
return datv_demod_settings;
}
void
SWGChannelSettings::setDatvDemodSettings(SWGDATVDemodSettings* datv_demod_settings) {
this->datv_demod_settings = datv_demod_settings;
this->m_datv_demod_settings_isSet = true;
}
SWGDSDDemodSettings*
SWGChannelSettings::getDsdDemodSettings() {
return dsd_demod_settings;
@ -662,6 +706,9 @@ SWGChannelSettings::isSet(){
if(am_mod_settings && am_mod_settings->isSet()){
isObjectUpdated = true; break;
}
if(atv_demod_settings && atv_demod_settings->isSet()){
isObjectUpdated = true; break;
}
if(atv_mod_settings && atv_mod_settings->isSet()){
isObjectUpdated = true; break;
}
@ -671,6 +718,9 @@ SWGChannelSettings::isSet(){
if(channel_analyzer_settings && channel_analyzer_settings->isSet()){
isObjectUpdated = true; break;
}
if(datv_demod_settings && datv_demod_settings->isSet()){
isObjectUpdated = true; break;
}
if(dsd_demod_settings && dsd_demod_settings->isSet()){
isObjectUpdated = true; break;
}

View File

@ -24,9 +24,11 @@
#include "SWGAMDemodSettings.h"
#include "SWGAMModSettings.h"
#include "SWGATVDemodSettings.h"
#include "SWGATVModSettings.h"
#include "SWGBFMDemodSettings.h"
#include "SWGChannelAnalyzerSettings.h"
#include "SWGDATVDemodSettings.h"
#include "SWGDSDDemodSettings.h"
#include "SWGFileSourceSettings.h"
#include "SWGFreeDVDemodSettings.h"
@ -82,6 +84,9 @@ public:
SWGAMModSettings* getAmModSettings();
void setAmModSettings(SWGAMModSettings* am_mod_settings);
SWGATVDemodSettings* getAtvDemodSettings();
void setAtvDemodSettings(SWGATVDemodSettings* atv_demod_settings);
SWGATVModSettings* getAtvModSettings();
void setAtvModSettings(SWGATVModSettings* atv_mod_settings);
@ -91,6 +96,9 @@ public:
SWGChannelAnalyzerSettings* getChannelAnalyzerSettings();
void setChannelAnalyzerSettings(SWGChannelAnalyzerSettings* channel_analyzer_settings);
SWGDATVDemodSettings* getDatvDemodSettings();
void setDatvDemodSettings(SWGDATVDemodSettings* datv_demod_settings);
SWGDSDDemodSettings* getDsdDemodSettings();
void setDsdDemodSettings(SWGDSDDemodSettings* dsd_demod_settings);
@ -164,6 +172,9 @@ private:
SWGAMModSettings* am_mod_settings;
bool m_am_mod_settings_isSet;
SWGATVDemodSettings* atv_demod_settings;
bool m_atv_demod_settings_isSet;
SWGATVModSettings* atv_mod_settings;
bool m_atv_mod_settings_isSet;
@ -173,6 +184,9 @@ private:
SWGChannelAnalyzerSettings* channel_analyzer_settings;
bool m_channel_analyzer_settings_isSet;
SWGDATVDemodSettings* datv_demod_settings;
bool m_datv_demod_settings_isSet;
SWGDSDDemodSettings* dsd_demod_settings;
bool m_dsd_demod_settings_isSet;

View File

@ -0,0 +1,620 @@
/**
* SDRangel
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
*
* OpenAPI spec version: 4.11.6
* Contact: f4exb06@gmail.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
#include "SWGDATVDemodSettings.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGDATVDemodSettings::SWGDATVDemodSettings(QString* json) {
init();
this->fromJson(*json);
}
SWGDATVDemodSettings::SWGDATVDemodSettings() {
rgb_color = 0;
m_rgb_color_isSet = false;
title = nullptr;
m_title_isSet = false;
rf_bandwidth = 0;
m_rf_bandwidth_isSet = false;
center_frequency = 0;
m_center_frequency_isSet = false;
standard = 0;
m_standard_isSet = false;
modulation = 0;
m_modulation_isSet = false;
fec = 0;
m_fec_isSet = false;
audio_mute = 0;
m_audio_mute_isSet = false;
audio_device_name = nullptr;
m_audio_device_name_isSet = false;
symbol_rate = 0;
m_symbol_rate_isSet = false;
notch_filters = 0;
m_notch_filters_isSet = false;
allow_drift = 0;
m_allow_drift_isSet = false;
fast_lock = 0;
m_fast_lock_isSet = false;
filter = 0;
m_filter_isSet = false;
hard_metric = 0;
m_hard_metric_isSet = false;
roll_off = 0.0f;
m_roll_off_isSet = false;
viterbi = 0;
m_viterbi_isSet = false;
excursion = 0;
m_excursion_isSet = false;
audio_volume = 0;
m_audio_volume_isSet = false;
video_mute = 0;
m_video_mute_isSet = false;
udp_ts_address = nullptr;
m_udp_ts_address_isSet = false;
udp_ts_port = 0;
m_udp_ts_port_isSet = false;
udp_ts = 0;
m_udp_ts_isSet = false;
}
SWGDATVDemodSettings::~SWGDATVDemodSettings() {
this->cleanup();
}
void
SWGDATVDemodSettings::init() {
rgb_color = 0;
m_rgb_color_isSet = false;
title = new QString("");
m_title_isSet = false;
rf_bandwidth = 0;
m_rf_bandwidth_isSet = false;
center_frequency = 0;
m_center_frequency_isSet = false;
standard = 0;
m_standard_isSet = false;
modulation = 0;
m_modulation_isSet = false;
fec = 0;
m_fec_isSet = false;
audio_mute = 0;
m_audio_mute_isSet = false;
audio_device_name = new QString("");
m_audio_device_name_isSet = false;
symbol_rate = 0;
m_symbol_rate_isSet = false;
notch_filters = 0;
m_notch_filters_isSet = false;
allow_drift = 0;
m_allow_drift_isSet = false;
fast_lock = 0;
m_fast_lock_isSet = false;
filter = 0;
m_filter_isSet = false;
hard_metric = 0;
m_hard_metric_isSet = false;
roll_off = 0.0f;
m_roll_off_isSet = false;
viterbi = 0;
m_viterbi_isSet = false;
excursion = 0;
m_excursion_isSet = false;
audio_volume = 0;
m_audio_volume_isSet = false;
video_mute = 0;
m_video_mute_isSet = false;
udp_ts_address = new QString("");
m_udp_ts_address_isSet = false;
udp_ts_port = 0;
m_udp_ts_port_isSet = false;
udp_ts = 0;
m_udp_ts_isSet = false;
}
void
SWGDATVDemodSettings::cleanup() {
if(title != nullptr) {
delete title;
}
if(audio_device_name != nullptr) {
delete audio_device_name;
}
if(udp_ts_address != nullptr) {
delete udp_ts_address;
}
}
SWGDATVDemodSettings*
SWGDATVDemodSettings::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGDATVDemodSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "qint32", "");
::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint32", "");
::SWGSDRangel::setValue(&standard, pJson["standard"], "qint32", "");
::SWGSDRangel::setValue(&modulation, pJson["modulation"], "qint32", "");
::SWGSDRangel::setValue(&fec, pJson["fec"], "qint32", "");
::SWGSDRangel::setValue(&audio_mute, pJson["audioMute"], "qint32", "");
::SWGSDRangel::setValue(&audio_device_name, pJson["audioDeviceName"], "QString", "QString");
::SWGSDRangel::setValue(&symbol_rate, pJson["symbolRate"], "qint32", "");
::SWGSDRangel::setValue(&notch_filters, pJson["notchFilters"], "qint32", "");
::SWGSDRangel::setValue(&allow_drift, pJson["allowDrift"], "qint32", "");
::SWGSDRangel::setValue(&fast_lock, pJson["fastLock"], "qint32", "");
::SWGSDRangel::setValue(&filter, pJson["filter"], "qint32", "");
::SWGSDRangel::setValue(&hard_metric, pJson["hardMetric"], "qint32", "");
::SWGSDRangel::setValue(&roll_off, pJson["rollOff"], "float", "");
::SWGSDRangel::setValue(&viterbi, pJson["viterbi"], "qint32", "");
::SWGSDRangel::setValue(&excursion, pJson["excursion"], "qint32", "");
::SWGSDRangel::setValue(&audio_volume, pJson["audioVolume"], "qint32", "");
::SWGSDRangel::setValue(&video_mute, pJson["videoMute"], "qint32", "");
::SWGSDRangel::setValue(&udp_ts_address, pJson["udpTSAddress"], "QString", "QString");
::SWGSDRangel::setValue(&udp_ts_port, pJson["udpTSPort"], "qint32", "");
::SWGSDRangel::setValue(&udp_ts, pJson["udpTS"], "qint32", "");
}
QString
SWGDATVDemodSettings::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGDATVDemodSettings::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_rgb_color_isSet){
obj->insert("rgbColor", QJsonValue(rgb_color));
}
if(title != nullptr && *title != QString("")){
toJsonValue(QString("title"), title, obj, QString("QString"));
}
if(m_rf_bandwidth_isSet){
obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
}
if(m_center_frequency_isSet){
obj->insert("centerFrequency", QJsonValue(center_frequency));
}
if(m_standard_isSet){
obj->insert("standard", QJsonValue(standard));
}
if(m_modulation_isSet){
obj->insert("modulation", QJsonValue(modulation));
}
if(m_fec_isSet){
obj->insert("fec", QJsonValue(fec));
}
if(m_audio_mute_isSet){
obj->insert("audioMute", QJsonValue(audio_mute));
}
if(audio_device_name != nullptr && *audio_device_name != QString("")){
toJsonValue(QString("audioDeviceName"), audio_device_name, obj, QString("QString"));
}
if(m_symbol_rate_isSet){
obj->insert("symbolRate", QJsonValue(symbol_rate));
}
if(m_notch_filters_isSet){
obj->insert("notchFilters", QJsonValue(notch_filters));
}
if(m_allow_drift_isSet){
obj->insert("allowDrift", QJsonValue(allow_drift));
}
if(m_fast_lock_isSet){
obj->insert("fastLock", QJsonValue(fast_lock));
}
if(m_filter_isSet){
obj->insert("filter", QJsonValue(filter));
}
if(m_hard_metric_isSet){
obj->insert("hardMetric", QJsonValue(hard_metric));
}
if(m_roll_off_isSet){
obj->insert("rollOff", QJsonValue(roll_off));
}
if(m_viterbi_isSet){
obj->insert("viterbi", QJsonValue(viterbi));
}
if(m_excursion_isSet){
obj->insert("excursion", QJsonValue(excursion));
}
if(m_audio_volume_isSet){
obj->insert("audioVolume", QJsonValue(audio_volume));
}
if(m_video_mute_isSet){
obj->insert("videoMute", QJsonValue(video_mute));
}
if(udp_ts_address != nullptr && *udp_ts_address != QString("")){
toJsonValue(QString("udpTSAddress"), udp_ts_address, obj, QString("QString"));
}
if(m_udp_ts_port_isSet){
obj->insert("udpTSPort", QJsonValue(udp_ts_port));
}
if(m_udp_ts_isSet){
obj->insert("udpTS", QJsonValue(udp_ts));
}
return obj;
}
qint32
SWGDATVDemodSettings::getRgbColor() {
return rgb_color;
}
void
SWGDATVDemodSettings::setRgbColor(qint32 rgb_color) {
this->rgb_color = rgb_color;
this->m_rgb_color_isSet = true;
}
QString*
SWGDATVDemodSettings::getTitle() {
return title;
}
void
SWGDATVDemodSettings::setTitle(QString* title) {
this->title = title;
this->m_title_isSet = true;
}
qint32
SWGDATVDemodSettings::getRfBandwidth() {
return rf_bandwidth;
}
void
SWGDATVDemodSettings::setRfBandwidth(qint32 rf_bandwidth) {
this->rf_bandwidth = rf_bandwidth;
this->m_rf_bandwidth_isSet = true;
}
qint32
SWGDATVDemodSettings::getCenterFrequency() {
return center_frequency;
}
void
SWGDATVDemodSettings::setCenterFrequency(qint32 center_frequency) {
this->center_frequency = center_frequency;
this->m_center_frequency_isSet = true;
}
qint32
SWGDATVDemodSettings::getStandard() {
return standard;
}
void
SWGDATVDemodSettings::setStandard(qint32 standard) {
this->standard = standard;
this->m_standard_isSet = true;
}
qint32
SWGDATVDemodSettings::getModulation() {
return modulation;
}
void
SWGDATVDemodSettings::setModulation(qint32 modulation) {
this->modulation = modulation;
this->m_modulation_isSet = true;
}
qint32
SWGDATVDemodSettings::getFec() {
return fec;
}
void
SWGDATVDemodSettings::setFec(qint32 fec) {
this->fec = fec;
this->m_fec_isSet = true;
}
qint32
SWGDATVDemodSettings::getAudioMute() {
return audio_mute;
}
void
SWGDATVDemodSettings::setAudioMute(qint32 audio_mute) {
this->audio_mute = audio_mute;
this->m_audio_mute_isSet = true;
}
QString*
SWGDATVDemodSettings::getAudioDeviceName() {
return audio_device_name;
}
void
SWGDATVDemodSettings::setAudioDeviceName(QString* audio_device_name) {
this->audio_device_name = audio_device_name;
this->m_audio_device_name_isSet = true;
}
qint32
SWGDATVDemodSettings::getSymbolRate() {
return symbol_rate;
}
void
SWGDATVDemodSettings::setSymbolRate(qint32 symbol_rate) {
this->symbol_rate = symbol_rate;
this->m_symbol_rate_isSet = true;
}
qint32
SWGDATVDemodSettings::getNotchFilters() {
return notch_filters;
}
void
SWGDATVDemodSettings::setNotchFilters(qint32 notch_filters) {
this->notch_filters = notch_filters;
this->m_notch_filters_isSet = true;
}
qint32
SWGDATVDemodSettings::getAllowDrift() {
return allow_drift;
}
void
SWGDATVDemodSettings::setAllowDrift(qint32 allow_drift) {
this->allow_drift = allow_drift;
this->m_allow_drift_isSet = true;
}
qint32
SWGDATVDemodSettings::getFastLock() {
return fast_lock;
}
void
SWGDATVDemodSettings::setFastLock(qint32 fast_lock) {
this->fast_lock = fast_lock;
this->m_fast_lock_isSet = true;
}
qint32
SWGDATVDemodSettings::getFilter() {
return filter;
}
void
SWGDATVDemodSettings::setFilter(qint32 filter) {
this->filter = filter;
this->m_filter_isSet = true;
}
qint32
SWGDATVDemodSettings::getHardMetric() {
return hard_metric;
}
void
SWGDATVDemodSettings::setHardMetric(qint32 hard_metric) {
this->hard_metric = hard_metric;
this->m_hard_metric_isSet = true;
}
float
SWGDATVDemodSettings::getRollOff() {
return roll_off;
}
void
SWGDATVDemodSettings::setRollOff(float roll_off) {
this->roll_off = roll_off;
this->m_roll_off_isSet = true;
}
qint32
SWGDATVDemodSettings::getViterbi() {
return viterbi;
}
void
SWGDATVDemodSettings::setViterbi(qint32 viterbi) {
this->viterbi = viterbi;
this->m_viterbi_isSet = true;
}
qint32
SWGDATVDemodSettings::getExcursion() {
return excursion;
}
void
SWGDATVDemodSettings::setExcursion(qint32 excursion) {
this->excursion = excursion;
this->m_excursion_isSet = true;
}
qint32
SWGDATVDemodSettings::getAudioVolume() {
return audio_volume;
}
void
SWGDATVDemodSettings::setAudioVolume(qint32 audio_volume) {
this->audio_volume = audio_volume;
this->m_audio_volume_isSet = true;
}
qint32
SWGDATVDemodSettings::getVideoMute() {
return video_mute;
}
void
SWGDATVDemodSettings::setVideoMute(qint32 video_mute) {
this->video_mute = video_mute;
this->m_video_mute_isSet = true;
}
QString*
SWGDATVDemodSettings::getUdpTsAddress() {
return udp_ts_address;
}
void
SWGDATVDemodSettings::setUdpTsAddress(QString* udp_ts_address) {
this->udp_ts_address = udp_ts_address;
this->m_udp_ts_address_isSet = true;
}
qint32
SWGDATVDemodSettings::getUdpTsPort() {
return udp_ts_port;
}
void
SWGDATVDemodSettings::setUdpTsPort(qint32 udp_ts_port) {
this->udp_ts_port = udp_ts_port;
this->m_udp_ts_port_isSet = true;
}
qint32
SWGDATVDemodSettings::getUdpTs() {
return udp_ts;
}
void
SWGDATVDemodSettings::setUdpTs(qint32 udp_ts) {
this->udp_ts = udp_ts;
this->m_udp_ts_isSet = true;
}
bool
SWGDATVDemodSettings::isSet(){
bool isObjectUpdated = false;
do{
if(m_rgb_color_isSet){
isObjectUpdated = true; break;
}
if(title && *title != QString("")){
isObjectUpdated = true; break;
}
if(m_rf_bandwidth_isSet){
isObjectUpdated = true; break;
}
if(m_center_frequency_isSet){
isObjectUpdated = true; break;
}
if(m_standard_isSet){
isObjectUpdated = true; break;
}
if(m_modulation_isSet){
isObjectUpdated = true; break;
}
if(m_fec_isSet){
isObjectUpdated = true; break;
}
if(m_audio_mute_isSet){
isObjectUpdated = true; break;
}
if(audio_device_name && *audio_device_name != QString("")){
isObjectUpdated = true; break;
}
if(m_symbol_rate_isSet){
isObjectUpdated = true; break;
}
if(m_notch_filters_isSet){
isObjectUpdated = true; break;
}
if(m_allow_drift_isSet){
isObjectUpdated = true; break;
}
if(m_fast_lock_isSet){
isObjectUpdated = true; break;
}
if(m_filter_isSet){
isObjectUpdated = true; break;
}
if(m_hard_metric_isSet){
isObjectUpdated = true; break;
}
if(m_roll_off_isSet){
isObjectUpdated = true; break;
}
if(m_viterbi_isSet){
isObjectUpdated = true; break;
}
if(m_excursion_isSet){
isObjectUpdated = true; break;
}
if(m_audio_volume_isSet){
isObjectUpdated = true; break;
}
if(m_video_mute_isSet){
isObjectUpdated = true; break;
}
if(udp_ts_address && *udp_ts_address != QString("")){
isObjectUpdated = true; break;
}
if(m_udp_ts_port_isSet){
isObjectUpdated = true; break;
}
if(m_udp_ts_isSet){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -0,0 +1,191 @@
/**
* SDRangel
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
*
* OpenAPI spec version: 4.11.6
* Contact: f4exb06@gmail.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
/*
* SWGDATVDemodSettings.h
*
* DATVDemod
*/
#ifndef SWGDATVDemodSettings_H_
#define SWGDATVDemodSettings_H_
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGDATVDemodSettings: public SWGObject {
public:
SWGDATVDemodSettings();
SWGDATVDemodSettings(QString* json);
virtual ~SWGDATVDemodSettings();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGDATVDemodSettings* fromJson(QString &jsonString) override;
qint32 getRgbColor();
void setRgbColor(qint32 rgb_color);
QString* getTitle();
void setTitle(QString* title);
qint32 getRfBandwidth();
void setRfBandwidth(qint32 rf_bandwidth);
qint32 getCenterFrequency();
void setCenterFrequency(qint32 center_frequency);
qint32 getStandard();
void setStandard(qint32 standard);
qint32 getModulation();
void setModulation(qint32 modulation);
qint32 getFec();
void setFec(qint32 fec);
qint32 getAudioMute();
void setAudioMute(qint32 audio_mute);
QString* getAudioDeviceName();
void setAudioDeviceName(QString* audio_device_name);
qint32 getSymbolRate();
void setSymbolRate(qint32 symbol_rate);
qint32 getNotchFilters();
void setNotchFilters(qint32 notch_filters);
qint32 getAllowDrift();
void setAllowDrift(qint32 allow_drift);
qint32 getFastLock();
void setFastLock(qint32 fast_lock);
qint32 getFilter();
void setFilter(qint32 filter);
qint32 getHardMetric();
void setHardMetric(qint32 hard_metric);
float getRollOff();
void setRollOff(float roll_off);
qint32 getViterbi();
void setViterbi(qint32 viterbi);
qint32 getExcursion();
void setExcursion(qint32 excursion);
qint32 getAudioVolume();
void setAudioVolume(qint32 audio_volume);
qint32 getVideoMute();
void setVideoMute(qint32 video_mute);
QString* getUdpTsAddress();
void setUdpTsAddress(QString* udp_ts_address);
qint32 getUdpTsPort();
void setUdpTsPort(qint32 udp_ts_port);
qint32 getUdpTs();
void setUdpTs(qint32 udp_ts);
virtual bool isSet() override;
private:
qint32 rgb_color;
bool m_rgb_color_isSet;
QString* title;
bool m_title_isSet;
qint32 rf_bandwidth;
bool m_rf_bandwidth_isSet;
qint32 center_frequency;
bool m_center_frequency_isSet;
qint32 standard;
bool m_standard_isSet;
qint32 modulation;
bool m_modulation_isSet;
qint32 fec;
bool m_fec_isSet;
qint32 audio_mute;
bool m_audio_mute_isSet;
QString* audio_device_name;
bool m_audio_device_name_isSet;
qint32 symbol_rate;
bool m_symbol_rate_isSet;
qint32 notch_filters;
bool m_notch_filters_isSet;
qint32 allow_drift;
bool m_allow_drift_isSet;
qint32 fast_lock;
bool m_fast_lock_isSet;
qint32 filter;
bool m_filter_isSet;
qint32 hard_metric;
bool m_hard_metric_isSet;
float roll_off;
bool m_roll_off_isSet;
qint32 viterbi;
bool m_viterbi_isSet;
qint32 excursion;
bool m_excursion_isSet;
qint32 audio_volume;
bool m_audio_volume_isSet;
qint32 video_mute;
bool m_video_mute_isSet;
QString* udp_ts_address;
bool m_udp_ts_address_isSet;
qint32 udp_ts_port;
bool m_udp_ts_port_isSet;
qint32 udp_ts;
bool m_udp_ts_isSet;
};
}
#endif /* SWGDATVDemodSettings_H_ */

View File

@ -20,6 +20,7 @@
#include "SWGAMDemodSettings.h"
#include "SWGAMModReport.h"
#include "SWGAMModSettings.h"
#include "SWGATVDemodSettings.h"
#include "SWGATVModReport.h"
#include "SWGATVModSettings.h"
#include "SWGAirspyHFReport.h"
@ -50,6 +51,7 @@
#include "SWGChannelsDetail.h"
#include "SWGCommand.h"
#include "SWGComplex.h"
#include "SWGDATVDemodSettings.h"
#include "SWGDSDDemodReport.h"
#include "SWGDSDDemodSettings.h"
#include "SWGDVSerialDevice.h"
@ -186,6 +188,9 @@ namespace SWGSDRangel {
if(QString("SWGAMModSettings").compare(type) == 0) {
return new SWGAMModSettings();
}
if(QString("SWGATVDemodSettings").compare(type) == 0) {
return new SWGATVDemodSettings();
}
if(QString("SWGATVModReport").compare(type) == 0) {
return new SWGATVModReport();
}
@ -276,6 +281,9 @@ namespace SWGSDRangel {
if(QString("SWGComplex").compare(type) == 0) {
return new SWGComplex();
}
if(QString("SWGDATVDemodSettings").compare(type) == 0) {
return new SWGDATVDemodSettings();
}
if(QString("SWGDSDDemodReport").compare(type) == 0) {
return new SWGDSDDemodReport();
}