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.
sdrplaysettings.h
Go to the documentation of this file.
1 // Copyright (C) 2016 Edouard Griffiths, F4EXB //
3 // //
4 // This program is free software; you can redistribute it and/or modify //
5 // it under the terms of the GNU General Public License as published by //
6 // the Free Software Foundation as version 3 of the License, or //
7 // (at your option) any later version. //
8 // //
9 // This program is distributed in the hope that it will be useful, //
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
12 // GNU General Public License V3 for more details. //
13 // //
14 // You should have received a copy of the GNU General Public License //
15 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
17 
18 #ifndef _SDRPLAY_SDRPLAYSETTINGS_H_
19 #define _SDRPLAY_SDRPLAYSETTINGS_H_
20 
21 #include <stdint.h>
22 #include <QByteArray>
23 #include <QString>
24 #include <QDebug>
25 
27  typedef enum {
31  } fcPos_t;
32 
34  qint32 m_tunerGain;
41  fcPos_t m_fcPos;
42  bool m_dcBlock;
44  bool m_tunerGainMode; // true: tuner (table) gain, false: manual (LNA, Mixer, BB) gain
45  bool m_lnaOn;
53 
55  void resetToDefaults();
56  QByteArray serialize() const;
57  bool deserialize(const QByteArray& data);
58 
59  void debug(const char *title) const
60  {
61  qDebug() << QString(title)
62  << ": m_centerFrequency: " << m_centerFrequency
63  << " m_tunerGain: " << m_tunerGain
64  << " m_LOppmTenths: " << m_LOppmTenths
65  << " m_frequencyBandIndex: " << m_frequencyBandIndex
66  << " m_ifFrequencyIndex: " << m_ifFrequencyIndex
67  << " m_bandwidthIndex: " << m_bandwidthIndex
68  << " m_devSampleRateIndex: " << m_devSampleRateIndex
69  << " m_log2Decim: " << m_log2Decim
70  << " m_fcPos: " << m_fcPos
71  << " m_dcBlock: " << m_dcBlock
72  << " m_iqCorrection: " << m_iqCorrection
73  << " m_tunerGainMode: " << m_tunerGainMode
74  << " m_lnaOn: " << m_lnaOn
75  << " m_mixerAmpOn: " << m_mixerAmpOn
76  << " m_basebandGain: " << m_basebandGain;
77  }
78 };
79 
80 #endif /* _SDRPLAY_SDRPLAYSETTINGS_H_ */
uint32_t m_ifFrequencyIndex
uint16_t m_reverseAPIPort
unsigned int uint32_t
Definition: rtptypes_win.h:46
QString m_reverseAPIAddress
QByteArray serialize() const
unsigned short uint16_t
Definition: rtptypes_win.h:44
QString m_fileRecordName
int int32_t
Definition: rtptypes_win.h:45
uint64_t m_centerFrequency
uint32_t m_frequencyBandIndex
uint32_t m_log2Decim
uint32_t m_bandwidthIndex
bool deserialize(const QByteArray &data)
void debug(const char *title) const
uint16_t m_reverseAPIDeviceIndex
uint32_t m_devSampleRateIndex
unsigned __int64 uint64_t
Definition: rtptypes_win.h:48