RTL-SDR bias tee: REST API: generated code

pull/575/head
f4exb 2020-06-27 10:40:39 +02:00
rodzic 2293061bcc
commit eea1e1da0f
5 zmienionych plików z 45 dodań i 2 usunięć

Wyświetl plik

@ -5888,6 +5888,10 @@ margin-bottom: 20px;
"rfBandwidth" : {
"type" : "integer"
},
"biasTee" : {
"type" : "integer",
"description" : "Bias tee\n * 0 - inactive\n * 1 - active\n"
},
"fileRecordName" : {
"type" : "string"
},
@ -33459,7 +33463,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2020-06-27T10:29:00.151+02:00
Generated 2020-06-27T10:35:39.014+02:00
</div>
</div>
</div>

Wyświetl plik

@ -39,6 +39,12 @@ RtlSdrSettings:
* 1 - I then Q (straight)
rfBandwidth:
type: integer
biasTee:
type: integer
description: >
Bias tee
* 0 - inactive
* 1 - active
fileRecordName:
type: string
useReverseAPI:

Wyświetl plik

@ -5888,6 +5888,10 @@ margin-bottom: 20px;
"rfBandwidth" : {
"type" : "integer"
},
"biasTee" : {
"type" : "integer",
"description" : "Bias tee\n * 0 - inactive\n * 1 - active\n"
},
"fileRecordName" : {
"type" : "string"
},
@ -33459,7 +33463,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2020-06-27T10:29:00.151+02:00
Generated 2020-06-27T10:35:39.014+02:00
</div>
</div>
</div>

Wyświetl plik

@ -60,6 +60,8 @@ SWGRtlSdrSettings::SWGRtlSdrSettings() {
m_iq_order_isSet = false;
rf_bandwidth = 0;
m_rf_bandwidth_isSet = false;
bias_tee = 0;
m_bias_tee_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0;
@ -110,6 +112,8 @@ SWGRtlSdrSettings::init() {
m_iq_order_isSet = false;
rf_bandwidth = 0;
m_rf_bandwidth_isSet = false;
bias_tee = 0;
m_bias_tee_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0;
@ -140,6 +144,7 @@ SWGRtlSdrSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
@ -194,6 +199,8 @@ SWGRtlSdrSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "qint32", "");
::SWGSDRangel::setValue(&bias_tee, pJson["biasTee"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
@ -268,6 +275,9 @@ SWGRtlSdrSettings::asJsonObject() {
if(m_rf_bandwidth_isSet){
obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
}
if(m_bias_tee_isSet){
obj->insert("biasTee", QJsonValue(bias_tee));
}
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
@ -447,6 +457,16 @@ SWGRtlSdrSettings::setRfBandwidth(qint32 rf_bandwidth) {
this->m_rf_bandwidth_isSet = true;
}
qint32
SWGRtlSdrSettings::getBiasTee() {
return bias_tee;
}
void
SWGRtlSdrSettings::setBiasTee(qint32 bias_tee) {
this->bias_tee = bias_tee;
this->m_bias_tee_isSet = true;
}
QString*
SWGRtlSdrSettings::getFileRecordName() {
return file_record_name;
@ -550,6 +570,9 @@ SWGRtlSdrSettings::isSet(){
if(m_rf_bandwidth_isSet){
isObjectUpdated = true; break;
}
if(m_bias_tee_isSet){
isObjectUpdated = true; break;
}
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}

Wyświetl plik

@ -90,6 +90,9 @@ public:
qint32 getRfBandwidth();
void setRfBandwidth(qint32 rf_bandwidth);
qint32 getBiasTee();
void setBiasTee(qint32 bias_tee);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
@ -157,6 +160,9 @@ private:
qint32 rf_bandwidth;
bool m_rf_bandwidth_isSet;
qint32 bias_tee;
bool m_bias_tee_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;