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.
SWGPlutoSdrInputReport.h
Go to the documentation of this file.
1 
13 /*
14  * SWGPlutoSdrInputReport.h
15  *
16  * PlutoSDR
17  */
18 
19 #ifndef SWGPlutoSdrInputReport_H_
20 #define SWGPlutoSdrInputReport_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include <QString>
26 
27 #include "SWGObject.h"
28 #include "export.h"
29 
30 namespace SWGSDRangel {
31 
33 public:
35  SWGPlutoSdrInputReport(QString* json);
36  virtual ~SWGPlutoSdrInputReport();
37  void init();
38  void cleanup();
39 
40  virtual QString asJson () override;
41  virtual QJsonObject* asJsonObject() override;
42  virtual void fromJsonObject(QJsonObject &json) override;
43  virtual SWGPlutoSdrInputReport* fromJson(QString &jsonString) override;
44 
45  qint32 getAdcRate();
46  void setAdcRate(qint32 adc_rate);
47 
48  QString* getRssi();
49  void setRssi(QString* rssi);
50 
51  qint32 getGainDb();
52  void setGainDb(qint32 gain_db);
53 
54  float getTemperature();
55  void setTemperature(float temperature);
56 
57 
58  virtual bool isSet() override;
59 
60 private:
61  qint32 adc_rate;
63 
64  QString* rssi;
66 
67  qint32 gain_db;
69 
70  float temperature;
72 
73 };
74 
75 }
76 
77 #endif /* SWGPlutoSdrInputReport_H_ */
#define SWG_API
Definition: export.h:124