@ -2,7 +2,7 @@
@@ -2,7 +2,7 @@
* 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.1 .0
* OpenAPI spec version : 4.2 .0
* Contact : f4exb06 @ gmail . com
*
* NOTE : This class is auto generated by the swagger code generator program .
@ -11,7 +11,7 @@
@@ -11,7 +11,7 @@
*/
# include "SWGBladeRFInputSettings.h"
# include "SWGBladeRF1 InputSettings.h"
# include "SWGHelpers.h"
@ -22,12 +22,12 @@
@@ -22,12 +22,12 @@
namespace SWGSDRangel {
SWGBladeRFInputSettings : : SWGBladeRFInputSettings ( QString * json ) {
SWGBladeRF1 InputSettings : : SWGBladeRF1 InputSettings ( QString * json ) {
init ( ) ;
this - > fromJson ( * json ) ;
}
SWGBladeRFInputSettings : : SWGBladeRFInputSettings ( ) {
SWGBladeRF1 InputSettings : : SWGBladeRF1 InputSettings ( ) {
center_frequency = 0L ;
m_center_frequency_isSet = false ;
dev_sample_rate = 0 ;
@ -58,12 +58,12 @@ SWGBladeRFInputSettings::SWGBladeRFInputSettings() {
@@ -58,12 +58,12 @@ SWGBladeRFInputSettings::SWGBladeRFInputSettings() {
m_file_record_name_isSet = false ;
}
SWGBladeRFInputSettings : : ~ SWGBladeRFInputSettings ( ) {
SWGBladeRF1 InputSettings : : ~ SWGBladeRF1 InputSettings ( ) {
this - > cleanup ( ) ;
}
void
SWGBladeRFInputSettings : : init ( ) {
SWGBladeRF1 InputSettings : : init ( ) {
center_frequency = 0L ;
m_center_frequency_isSet = false ;
dev_sample_rate = 0 ;
@ -95,7 +95,7 @@ SWGBladeRFInputSettings::init() {
@@ -95,7 +95,7 @@ SWGBladeRFInputSettings::init() {
}
void
SWGBladeRFInputSettings : : cleanup ( ) {
SWGBladeRF1 InputSettings : : cleanup ( ) {
@ -114,8 +114,8 @@ SWGBladeRFInputSettings::cleanup() {
@@ -114,8 +114,8 @@ SWGBladeRFInputSettings::cleanup() {
}
}
SWGBladeRFInputSettings *
SWGBladeRFInputSettings : : fromJson ( QString & json ) {
SWGBladeRF1 InputSettings *
SWGBladeRF1 InputSettings : : fromJson ( QString & json ) {
QByteArray array ( json . toStdString ( ) . c_str ( ) ) ;
QJsonDocument doc = QJsonDocument : : fromJson ( array ) ;
QJsonObject jsonObject = doc . object ( ) ;
@ -124,7 +124,7 @@ SWGBladeRFInputSettings::fromJson(QString &json) {
@@ -124,7 +124,7 @@ SWGBladeRFInputSettings::fromJson(QString &json) {
}
void
SWGBladeRFInputSettings : : fromJsonObject ( QJsonObject & pJson ) {
SWGBladeRF1 InputSettings : : fromJsonObject ( QJsonObject & pJson ) {
: : SWGSDRangel : : setValue ( & center_frequency , pJson [ " centerFrequency " ] , " qint64 " , " " ) ;
: : SWGSDRangel : : setValue ( & dev_sample_rate , pJson [ " devSampleRate " ] , " qint32 " , " " ) ;
@ -156,7 +156,7 @@ SWGBladeRFInputSettings::fromJsonObject(QJsonObject &pJson) {
@@ -156,7 +156,7 @@ SWGBladeRFInputSettings::fromJsonObject(QJsonObject &pJson) {
}
QString
SWGBladeRFInputSettings : : asJson ( )
SWGBladeRF1 InputSettings : : asJson ( )
{
QJsonObject * obj = this - > asJsonObject ( ) ;
@ -167,7 +167,7 @@ SWGBladeRFInputSettings::asJson ()
@@ -167,7 +167,7 @@ SWGBladeRFInputSettings::asJson ()
}
QJsonObject *
SWGBladeRFInputSettings : : asJsonObject ( ) {
SWGBladeRF1 InputSettings : : asJsonObject ( ) {
QJsonObject * obj = new QJsonObject ( ) ;
if ( m_center_frequency_isSet ) {
obj - > insert ( " centerFrequency " , QJsonValue ( center_frequency ) ) ;
@ -216,148 +216,148 @@ SWGBladeRFInputSettings::asJsonObject() {
@@ -216,148 +216,148 @@ SWGBladeRFInputSettings::asJsonObject() {
}
qint64
SWGBladeRFInputSettings : : getCenterFrequency ( ) {
SWGBladeRF1 InputSettings : : getCenterFrequency ( ) {
return center_frequency ;
}
void
SWGBladeRFInputSettings : : setCenterFrequency ( qint64 center_frequency ) {
SWGBladeRF1 InputSettings : : setCenterFrequency ( qint64 center_frequency ) {
this - > center_frequency = center_frequency ;
this - > m_center_frequency_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getDevSampleRate ( ) {
SWGBladeRF1 InputSettings : : getDevSampleRate ( ) {
return dev_sample_rate ;
}
void
SWGBladeRFInputSettings : : setDevSampleRate ( qint32 dev_sample_rate ) {
SWGBladeRF1 InputSettings : : setDevSampleRate ( qint32 dev_sample_rate ) {
this - > dev_sample_rate = dev_sample_rate ;
this - > m_dev_sample_rate_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getLnaGain ( ) {
SWGBladeRF1 InputSettings : : getLnaGain ( ) {
return lna_gain ;
}
void
SWGBladeRFInputSettings : : setLnaGain ( qint32 lna_gain ) {
SWGBladeRF1 InputSettings : : setLnaGain ( qint32 lna_gain ) {
this - > lna_gain = lna_gain ;
this - > m_lna_gain_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getVga1 ( ) {
SWGBladeRF1 InputSettings : : getVga1 ( ) {
return vga1 ;
}
void
SWGBladeRFInputSettings : : setVga1 ( qint32 vga1 ) {
SWGBladeRF1 InputSettings : : setVga1 ( qint32 vga1 ) {
this - > vga1 = vga1 ;
this - > m_vga1_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getVga2 ( ) {
SWGBladeRF1 InputSettings : : getVga2 ( ) {
return vga2 ;
}
void
SWGBladeRFInputSettings : : setVga2 ( qint32 vga2 ) {
SWGBladeRF1 InputSettings : : setVga2 ( qint32 vga2 ) {
this - > vga2 = vga2 ;
this - > m_vga2_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getBandwidth ( ) {
SWGBladeRF1 InputSettings : : getBandwidth ( ) {
return bandwidth ;
}
void
SWGBladeRFInputSettings : : setBandwidth ( qint32 bandwidth ) {
SWGBladeRF1 InputSettings : : setBandwidth ( qint32 bandwidth ) {
this - > bandwidth = bandwidth ;
this - > m_bandwidth_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getLog2Decim ( ) {
SWGBladeRF1 InputSettings : : getLog2Decim ( ) {
return log2_decim ;
}
void
SWGBladeRFInputSettings : : setLog2Decim ( qint32 log2_decim ) {
SWGBladeRF1 InputSettings : : setLog2Decim ( qint32 log2_decim ) {
this - > log2_decim = log2_decim ;
this - > m_log2_decim_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getFcPos ( ) {
SWGBladeRF1 InputSettings : : getFcPos ( ) {
return fc_pos ;
}
void
SWGBladeRFInputSettings : : setFcPos ( qint32 fc_pos ) {
SWGBladeRF1 InputSettings : : setFcPos ( qint32 fc_pos ) {
this - > fc_pos = fc_pos ;
this - > m_fc_pos_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getXb200 ( ) {
SWGBladeRF1 InputSettings : : getXb200 ( ) {
return xb200 ;
}
void
SWGBladeRFInputSettings : : setXb200 ( qint32 xb200 ) {
SWGBladeRF1 InputSettings : : setXb200 ( qint32 xb200 ) {
this - > xb200 = xb200 ;
this - > m_xb200_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getXb200Path ( ) {
SWGBladeRF1 InputSettings : : getXb200Path ( ) {
return xb200_path ;
}
void
SWGBladeRFInputSettings : : setXb200Path ( qint32 xb200_path ) {
SWGBladeRF1 InputSettings : : setXb200Path ( qint32 xb200_path ) {
this - > xb200_path = xb200_path ;
this - > m_xb200_path_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getXb200Filter ( ) {
SWGBladeRF1 InputSettings : : getXb200Filter ( ) {
return xb200_filter ;
}
void
SWGBladeRFInputSettings : : setXb200Filter ( qint32 xb200_filter ) {
SWGBladeRF1 InputSettings : : setXb200Filter ( qint32 xb200_filter ) {
this - > xb200_filter = xb200_filter ;
this - > m_xb200_filter_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getDcBlock ( ) {
SWGBladeRF1 InputSettings : : getDcBlock ( ) {
return dc_block ;
}
void
SWGBladeRFInputSettings : : setDcBlock ( qint32 dc_block ) {
SWGBladeRF1 InputSettings : : setDcBlock ( qint32 dc_block ) {
this - > dc_block = dc_block ;
this - > m_dc_block_isSet = true ;
}
qint32
SWGBladeRFInputSettings : : getIqCorrection ( ) {
SWGBladeRF1 InputSettings : : getIqCorrection ( ) {
return iq_correction ;
}
void
SWGBladeRFInputSettings : : setIqCorrection ( qint32 iq_correction ) {
SWGBladeRF1 InputSettings : : setIqCorrection ( qint32 iq_correction ) {
this - > iq_correction = iq_correction ;
this - > m_iq_correction_isSet = true ;
}
QString *
SWGBladeRFInputSettings : : getFileRecordName ( ) {
SWGBladeRF1 InputSettings : : getFileRecordName ( ) {
return file_record_name ;
}
void
SWGBladeRFInputSettings : : setFileRecordName ( QString * file_record_name ) {
SWGBladeRF1 InputSettings : : setFileRecordName ( QString * file_record_name ) {
this - > file_record_name = file_record_name ;
this - > m_file_record_name_isSet = true ;
}
bool
SWGBladeRFInputSettings : : isSet ( ) {
SWGBladeRF1 InputSettings : : isSet ( ) {
bool isObjectUpdated = false ;
do {
if ( m_center_frequency_isSet ) { isObjectUpdated = true ; break ; }