SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <SWGPlutoSdrInputReport.h>
Public Member Functions | |
SWGPlutoSdrInputReport () | |
SWGPlutoSdrInputReport (QString *json) | |
virtual | ~SWGPlutoSdrInputReport () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGPlutoSdrInputReport * | fromJson (QString &jsonString) override |
qint32 | getAdcRate () |
void | setAdcRate (qint32 adc_rate) |
QString * | getRssi () |
void | setRssi (QString *rssi) |
qint32 | getGainDb () |
void | setGainDb (qint32 gain_db) |
float | getTemperature () |
void | setTemperature (float temperature) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
qint32 | adc_rate |
bool | m_adc_rate_isSet |
QString * | rssi |
bool | m_rssi_isSet |
qint32 | gain_db |
bool | m_gain_db_isSet |
float | temperature |
bool | m_temperature_isSet |
Definition at line 32 of file SWGPlutoSdrInputReport.h.
SWGSDRangel::SWGPlutoSdrInputReport::SWGPlutoSdrInputReport | ( | ) |
Definition at line 30 of file SWGPlutoSdrInputReport.cpp.
References adc_rate, gain_db, m_adc_rate_isSet, m_gain_db_isSet, m_rssi_isSet, m_temperature_isSet, rssi, and temperature.
SWGSDRangel::SWGPlutoSdrInputReport::SWGPlutoSdrInputReport | ( | QString * | json | ) |
Definition at line 25 of file SWGPlutoSdrInputReport.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 41 of file SWGPlutoSdrInputReport.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 89 of file SWGPlutoSdrInputReport.cpp.
References asJsonObject().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 100 of file SWGPlutoSdrInputReport.cpp.
References adc_rate, gain_db, m_adc_rate_isSet, m_gain_db_isSet, m_temperature_isSet, rssi, temperature, and SWGSDRangel::toJsonValue().
Referenced by asJson().
void SWGSDRangel::SWGPlutoSdrInputReport::cleanup | ( | ) |
Definition at line 58 of file SWGPlutoSdrInputReport.cpp.
References rssi.
Referenced by ~SWGPlutoSdrInputReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 68 of file SWGPlutoSdrInputReport.cpp.
References fromJsonObject().
Referenced by SWGPlutoSdrInputReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 77 of file SWGPlutoSdrInputReport.cpp.
References adc_rate, gain_db, rssi, SWGSDRangel::setValue(), and temperature.
Referenced by fromJson().
qint32 SWGSDRangel::SWGPlutoSdrInputReport::getAdcRate | ( | ) |
qint32 SWGSDRangel::SWGPlutoSdrInputReport::getGainDb | ( | ) |
QString * SWGSDRangel::SWGPlutoSdrInputReport::getRssi | ( | ) |
float SWGSDRangel::SWGPlutoSdrInputReport::getTemperature | ( | ) |
Definition at line 149 of file SWGPlutoSdrInputReport.cpp.
References temperature.
void SWGSDRangel::SWGPlutoSdrInputReport::init | ( | ) |
Definition at line 46 of file SWGPlutoSdrInputReport.cpp.
References adc_rate, gain_db, m_adc_rate_isSet, m_gain_db_isSet, m_rssi_isSet, m_temperature_isSet, rssi, and temperature.
Referenced by SWGPlutoSdrInputReport(), and PlutoSDRInput::webapiReportGet().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 160 of file SWGPlutoSdrInputReport.cpp.
References m_adc_rate_isSet, m_gain_db_isSet, m_temperature_isSet, and rssi.
Referenced by SWGSDRangel::SWGDeviceReport::asJsonObject(), and SWGSDRangel::SWGDeviceReport::isSet().
void SWGSDRangel::SWGPlutoSdrInputReport::setAdcRate | ( | qint32 | adc_rate | ) |
Definition at line 123 of file SWGPlutoSdrInputReport.cpp.
References adc_rate, and m_adc_rate_isSet.
Referenced by PlutoSDRInput::webapiFormatDeviceReport().
void SWGSDRangel::SWGPlutoSdrInputReport::setGainDb | ( | qint32 | gain_db | ) |
Definition at line 143 of file SWGPlutoSdrInputReport.cpp.
References gain_db, and m_gain_db_isSet.
Referenced by PlutoSDRInput::webapiFormatDeviceReport().
void SWGSDRangel::SWGPlutoSdrInputReport::setRssi | ( | QString * | rssi | ) |
Definition at line 133 of file SWGPlutoSdrInputReport.cpp.
References m_rssi_isSet, and rssi.
Referenced by PlutoSDRInput::webapiFormatDeviceReport().
void SWGSDRangel::SWGPlutoSdrInputReport::setTemperature | ( | float | temperature | ) |
Definition at line 153 of file SWGPlutoSdrInputReport.cpp.
References m_temperature_isSet, and temperature.
Referenced by PlutoSDRInput::webapiFormatDeviceReport().
|
private |
Definition at line 61 of file SWGPlutoSdrInputReport.h.
Referenced by asJsonObject(), fromJsonObject(), getAdcRate(), init(), setAdcRate(), and SWGPlutoSdrInputReport().
|
private |
Definition at line 67 of file SWGPlutoSdrInputReport.h.
Referenced by asJsonObject(), fromJsonObject(), getGainDb(), init(), setGainDb(), and SWGPlutoSdrInputReport().
|
private |
Definition at line 62 of file SWGPlutoSdrInputReport.h.
Referenced by asJsonObject(), init(), isSet(), setAdcRate(), and SWGPlutoSdrInputReport().
|
private |
Definition at line 68 of file SWGPlutoSdrInputReport.h.
Referenced by asJsonObject(), init(), isSet(), setGainDb(), and SWGPlutoSdrInputReport().
|
private |
Definition at line 65 of file SWGPlutoSdrInputReport.h.
Referenced by init(), setRssi(), and SWGPlutoSdrInputReport().
|
private |
Definition at line 71 of file SWGPlutoSdrInputReport.h.
Referenced by asJsonObject(), init(), isSet(), setTemperature(), and SWGPlutoSdrInputReport().
|
private |
Definition at line 64 of file SWGPlutoSdrInputReport.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getRssi(), init(), isSet(), setRssi(), and SWGPlutoSdrInputReport().
|
private |
Definition at line 70 of file SWGPlutoSdrInputReport.h.
Referenced by asJsonObject(), fromJsonObject(), getTemperature(), init(), setTemperature(), and SWGPlutoSdrInputReport().