mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-04 06:07:49 -04:00
RTL-SDR bias tee: REST API: generated code
This commit is contained in:
parent
2293061bcc
commit
eea1e1da0f
@ -5888,6 +5888,10 @@ margin-bottom: 20px;
|
|||||||
"rfBandwidth" : {
|
"rfBandwidth" : {
|
||||||
"type" : "integer"
|
"type" : "integer"
|
||||||
},
|
},
|
||||||
|
"biasTee" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Bias tee\n * 0 - inactive\n * 1 - active\n"
|
||||||
|
},
|
||||||
"fileRecordName" : {
|
"fileRecordName" : {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
},
|
},
|
||||||
@ -33459,7 +33463,7 @@ except ApiException as e:
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2020-06-27T10:29:00.151+02:00
|
Generated 2020-06-27T10:35:39.014+02:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,6 +39,12 @@ RtlSdrSettings:
|
|||||||
* 1 - I then Q (straight)
|
* 1 - I then Q (straight)
|
||||||
rfBandwidth:
|
rfBandwidth:
|
||||||
type: integer
|
type: integer
|
||||||
|
biasTee:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Bias tee
|
||||||
|
* 0 - inactive
|
||||||
|
* 1 - active
|
||||||
fileRecordName:
|
fileRecordName:
|
||||||
type: string
|
type: string
|
||||||
useReverseAPI:
|
useReverseAPI:
|
||||||
|
@ -5888,6 +5888,10 @@ margin-bottom: 20px;
|
|||||||
"rfBandwidth" : {
|
"rfBandwidth" : {
|
||||||
"type" : "integer"
|
"type" : "integer"
|
||||||
},
|
},
|
||||||
|
"biasTee" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Bias tee\n * 0 - inactive\n * 1 - active\n"
|
||||||
|
},
|
||||||
"fileRecordName" : {
|
"fileRecordName" : {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
},
|
},
|
||||||
@ -33459,7 +33463,7 @@ except ApiException as e:
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2020-06-27T10:29:00.151+02:00
|
Generated 2020-06-27T10:35:39.014+02:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -60,6 +60,8 @@ SWGRtlSdrSettings::SWGRtlSdrSettings() {
|
|||||||
m_iq_order_isSet = false;
|
m_iq_order_isSet = false;
|
||||||
rf_bandwidth = 0;
|
rf_bandwidth = 0;
|
||||||
m_rf_bandwidth_isSet = false;
|
m_rf_bandwidth_isSet = false;
|
||||||
|
bias_tee = 0;
|
||||||
|
m_bias_tee_isSet = false;
|
||||||
file_record_name = nullptr;
|
file_record_name = nullptr;
|
||||||
m_file_record_name_isSet = false;
|
m_file_record_name_isSet = false;
|
||||||
use_reverse_api = 0;
|
use_reverse_api = 0;
|
||||||
@ -110,6 +112,8 @@ SWGRtlSdrSettings::init() {
|
|||||||
m_iq_order_isSet = false;
|
m_iq_order_isSet = false;
|
||||||
rf_bandwidth = 0;
|
rf_bandwidth = 0;
|
||||||
m_rf_bandwidth_isSet = false;
|
m_rf_bandwidth_isSet = false;
|
||||||
|
bias_tee = 0;
|
||||||
|
m_bias_tee_isSet = false;
|
||||||
file_record_name = new QString("");
|
file_record_name = new QString("");
|
||||||
m_file_record_name_isSet = false;
|
m_file_record_name_isSet = false;
|
||||||
use_reverse_api = 0;
|
use_reverse_api = 0;
|
||||||
@ -140,6 +144,7 @@ SWGRtlSdrSettings::cleanup() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(file_record_name != nullptr) {
|
if(file_record_name != nullptr) {
|
||||||
delete file_record_name;
|
delete file_record_name;
|
||||||
}
|
}
|
||||||
@ -194,6 +199,8 @@ SWGRtlSdrSettings::fromJsonObject(QJsonObject &pJson) {
|
|||||||
|
|
||||||
::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "qint32", "");
|
::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(&file_record_name, pJson["fileRecordName"], "QString", "QString");
|
||||||
|
|
||||||
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
|
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
|
||||||
@ -268,6 +275,9 @@ SWGRtlSdrSettings::asJsonObject() {
|
|||||||
if(m_rf_bandwidth_isSet){
|
if(m_rf_bandwidth_isSet){
|
||||||
obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
|
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("")){
|
if(file_record_name != nullptr && *file_record_name != QString("")){
|
||||||
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("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;
|
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*
|
QString*
|
||||||
SWGRtlSdrSettings::getFileRecordName() {
|
SWGRtlSdrSettings::getFileRecordName() {
|
||||||
return file_record_name;
|
return file_record_name;
|
||||||
@ -550,6 +570,9 @@ SWGRtlSdrSettings::isSet(){
|
|||||||
if(m_rf_bandwidth_isSet){
|
if(m_rf_bandwidth_isSet){
|
||||||
isObjectUpdated = true; break;
|
isObjectUpdated = true; break;
|
||||||
}
|
}
|
||||||
|
if(m_bias_tee_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
if(file_record_name && *file_record_name != QString("")){
|
if(file_record_name && *file_record_name != QString("")){
|
||||||
isObjectUpdated = true; break;
|
isObjectUpdated = true; break;
|
||||||
}
|
}
|
||||||
|
@ -90,6 +90,9 @@ public:
|
|||||||
qint32 getRfBandwidth();
|
qint32 getRfBandwidth();
|
||||||
void setRfBandwidth(qint32 rf_bandwidth);
|
void setRfBandwidth(qint32 rf_bandwidth);
|
||||||
|
|
||||||
|
qint32 getBiasTee();
|
||||||
|
void setBiasTee(qint32 bias_tee);
|
||||||
|
|
||||||
QString* getFileRecordName();
|
QString* getFileRecordName();
|
||||||
void setFileRecordName(QString* file_record_name);
|
void setFileRecordName(QString* file_record_name);
|
||||||
|
|
||||||
@ -157,6 +160,9 @@ private:
|
|||||||
qint32 rf_bandwidth;
|
qint32 rf_bandwidth;
|
||||||
bool m_rf_bandwidth_isSet;
|
bool m_rf_bandwidth_isSet;
|
||||||
|
|
||||||
|
qint32 bias_tee;
|
||||||
|
bool m_bias_tee_isSet;
|
||||||
|
|
||||||
QString* file_record_name;
|
QString* file_record_name;
|
||||||
bool m_file_record_name_isSet;
|
bool m_file_record_name_isSet;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user