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.
SWGDSDDemodReport.h
Go to the documentation of this file.
1 
13 /*
14  * SWGDSDDemodReport.h
15  *
16  * DSDDemod
17  */
18 
19 #ifndef SWGDSDDemodReport_H_
20 #define SWGDSDDemodReport_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  SWGDSDDemodReport(QString* json);
36  virtual ~SWGDSDDemodReport();
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 SWGDSDDemodReport* fromJson(QString &jsonString) override;
44 
45  float getChannelPowerDb();
46  void setChannelPowerDb(float channel_power_db);
47 
48  qint32 getAudioSampleRate();
49  void setAudioSampleRate(qint32 audio_sample_rate);
50 
51  qint32 getChannelSampleRate();
52  void setChannelSampleRate(qint32 channel_sample_rate);
53 
54  qint32 getSquelch();
55  void setSquelch(qint32 squelch);
56 
57  qint32 getPllLocked();
58  void setPllLocked(qint32 pll_locked);
59 
60  qint32 getSlot1On();
61  void setSlot1On(qint32 slot1_on);
62 
63  qint32 getSlot2On();
64  void setSlot2On(qint32 slot2_on);
65 
66  QString* getSyncType();
67  void setSyncType(QString* sync_type);
68 
69  qint32 getInLevel();
70  void setInLevel(qint32 in_level);
71 
72  qint32 getCarierPosition();
73  void setCarierPosition(qint32 carier_position);
74 
75  qint32 getZeroCrossingPosition();
76  void setZeroCrossingPosition(qint32 zero_crossing_position);
77 
78  qint32 getSyncRate();
79  void setSyncRate(qint32 sync_rate);
80 
81  QString* getStatusText();
82  void setStatusText(QString* status_text);
83 
84 
85  virtual bool isSet() override;
86 
87 private:
90 
93 
96 
97  qint32 squelch;
99 
100  qint32 pll_locked;
102 
103  qint32 slot1_on;
105 
106  qint32 slot2_on;
108 
109  QString* sync_type;
111 
112  qint32 in_level;
114 
117 
120 
121  qint32 sync_rate;
123 
124  QString* status_text;
126 
127 };
128 
129 }
130 
131 #endif /* SWGDSDDemodReport_H_ */
#define SWG_API
Definition: export.h:124