Browse Source

RTL-SDR bias tee: REST API: generated code

chirpmodem-v8.0.0
f4exb 7 years ago
parent
commit
eea1e1da0f
  1. 6
      sdrbase/resources/webapi/doc/html2/index.html
  2. 6
      sdrbase/resources/webapi/doc/swagger/include/RtlSdr.yaml
  3. 6
      swagger/sdrangel/code/html2/index.html
  4. 23
      swagger/sdrangel/code/qt5/client/SWGRtlSdrSettings.cpp
  5. 6
      swagger/sdrangel/code/qt5/client/SWGRtlSdrSettings.h

6
sdrbase/resources/webapi/doc/html2/index.html

@ -5888,6 +5888,10 @@ margin-bottom: 20px; @@ -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: @@ -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>

6
sdrbase/resources/webapi/doc/swagger/include/RtlSdr.yaml

@ -39,6 +39,12 @@ RtlSdrSettings: @@ -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:

6
swagger/sdrangel/code/html2/index.html

@ -5888,6 +5888,10 @@ margin-bottom: 20px; @@ -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: @@ -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>

23
swagger/sdrangel/code/qt5/client/SWGRtlSdrSettings.cpp

@ -60,6 +60,8 @@ SWGRtlSdrSettings::SWGRtlSdrSettings() { @@ -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() { @@ -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() { @@ -140,6 +144,7 @@ SWGRtlSdrSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
@ -194,6 +199,8 @@ SWGRtlSdrSettings::fromJsonObject(QJsonObject &pJson) { @@ -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() { @@ -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) { @@ -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(){ @@ -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;
}

6
swagger/sdrangel/code/qt5/client/SWGRtlSdrSettings.h

@ -90,6 +90,9 @@ public: @@ -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: @@ -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;

Loading…
Cancel
Save