kopia lustrzana https://github.com/f4exb/sdrangel
				
				
				
			RTL-SDR bias tee: REST API: generated code
							rodzic
							
								
									2293061bcc
								
							
						
					
					
						commit
						eea1e1da0f
					
				|  | @ -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> | ||||
|  |  | |||
|  | @ -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: | ||||
|  |  | |||
|  | @ -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> | ||||
|  |  | |||
|  | @ -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; | ||||
|         } | ||||
|  |  | |||
|  | @ -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; | ||||
| 
 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 f4exb
						f4exb