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.
plutosdrinputsettings.h
Go to the documentation of this file.
1 // Copyright (C) 2017 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 _PLUTOSDR_PLUTOSDRINPUTSETTINGS_H_
19 #define _PLUTOSDR_PLUTOSDRINPUTSETTINGS_H_
20 
21 #include <QtGlobal>
22 #include <QString>
23 #include <stdint.h>
24 
26  typedef enum {
31  } fcPos_t;
32 
33  enum RFPath
34  {
48  };
49 
50  typedef enum {
56  } GainMode;
57 
58  // global settings to be saved
60  // common device settings
61  quint64 m_devSampleRate;
62  qint32 m_LOppmTenths;
64  quint32 m_lpfFIRBW;
67  // individual channel settings
68  fcPos_t m_fcPos;
69  bool m_dcBlock;
74  quint32 m_log2Decim;
75  quint32 m_lpfBW;
76  quint32 m_gain;
78  GainMode m_gainMode;
86 
88  void resetToDefaults();
89  QByteArray serialize() const;
90  bool deserialize(const QByteArray& data);
91  static void translateRFPath(RFPath path, QString& s);
92  static void translateGainMode(GainMode mod, QString& s);
93 };
94 
95 #endif /* _PLUTOSDR_PLUTOSDRINPUTSETTINGS_H_ */
bool m_lpfFIREnable
enable digital lowpass FIR filter
quint32 m_lpfFIRlog2Decim
digital lowpass FIR filter log2 of decimation factor (0..2)
static void translateRFPath(RFPath path, QString &s)
bool m_hwRFDCBlock
Hardware RF DC blocking.
QByteArray serialize() const
bool m_hwIQCorrection
Hardware IQ correction.
unsigned short uint16_t
Definition: rtptypes_win.h:44
quint64 m_devSampleRate
Host interface sample rate.
quint32 m_lpfBW
analog lowpass filter bandwidth (Hz)
quint32 m_gain
"hardware" gain
static void translateGainMode(GainMode mod, QString &s)
bool deserialize(const QByteArray &data)
qint32 m_LOppmTenths
XO correction.
bool m_hwBBDCBlock
Hardware baseband DC blocking.
quint32 m_lpfFIRBW
digital lowpass FIR filter bandwidth (Hz)
int m_lpfFIRGain
digital lowpass FIR filter gain (dB)