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.
plugins
samplesource
plutosdrinput
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
25
struct
PlutoSDRInputSettings
{
26
typedef
enum
{
27
FC_POS_INFRA
= 0,
28
FC_POS_SUPRA
,
29
FC_POS_CENTER
,
30
FC_POS_END
31
}
fcPos_t
;
32
33
enum
RFPath
34
{
35
RFPATH_A_BAL
= 0,
36
RFPATH_B_BAL
,
37
RFPATH_C_BAL
,
38
RFPATH_A_NEG
,
39
RFPATH_A_POS
,
40
RFPATH_B_NEG
,
41
RFPATH_B_POS
,
42
RFPATH_C_NEG
,
43
RFPATH_C_POS
,
44
RFPATH_TX1MON
,
45
RFPATH_TX2MON
,
46
RFPATH_TX3MON
,
47
RFPATH_END
48
};
49
50
typedef
enum
{
51
GAIN_MANUAL
,
52
GAIN_AGC_SLOW
,
53
GAIN_AGC_FAST
,
54
GAIN_HYBRID
,
55
GAIN_END
56
}
GainMode
;
57
58
// global settings to be saved
59
quint64
m_centerFrequency
;
60
// common device settings
61
quint64
m_devSampleRate
;
62
qint32
m_LOppmTenths
;
63
bool
m_lpfFIREnable
;
64
quint32
m_lpfFIRBW
;
65
quint32
m_lpfFIRlog2Decim
;
66
int
m_lpfFIRGain
;
67
// individual channel settings
68
fcPos_t
m_fcPos
;
69
bool
m_dcBlock
;
70
bool
m_iqCorrection
;
71
bool
m_hwBBDCBlock
;
72
bool
m_hwRFDCBlock
;
73
bool
m_hwIQCorrection
;
74
quint32
m_log2Decim
;
75
quint32
m_lpfBW
;
76
quint32
m_gain
;
77
RFPath
m_antennaPath
;
78
GainMode
m_gainMode
;
79
bool
m_transverterMode
;
80
qint64
m_transverterDeltaFrequency
;
81
QString
m_fileRecordName
;
82
bool
m_useReverseAPI
;
83
QString
m_reverseAPIAddress
;
84
uint16_t
m_reverseAPIPort
;
85
uint16_t
m_reverseAPIDeviceIndex
;
86
87
PlutoSDRInputSettings
();
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_ */
PlutoSDRInputSettings::m_log2Decim
quint32 m_log2Decim
Definition:
plutosdrinputsettings.h:74
PlutoSDRInputSettings::fcPos_t
fcPos_t
Definition:
plutosdrinputsettings.h:26
PlutoSDRInputSettings::m_reverseAPIAddress
QString m_reverseAPIAddress
Definition:
plutosdrinputsettings.h:83
PlutoSDRInputSettings::RFPATH_TX2MON
Definition:
plutosdrinputsettings.h:45
PlutoSDRInputSettings::RFPATH_A_BAL
Definition:
plutosdrinputsettings.h:35
PlutoSDRInputSettings::m_lpfFIREnable
bool m_lpfFIREnable
enable digital lowpass FIR filter
Definition:
plutosdrinputsettings.h:63
PlutoSDRInputSettings::m_lpfFIRlog2Decim
quint32 m_lpfFIRlog2Decim
digital lowpass FIR filter log2 of decimation factor (0..2)
Definition:
plutosdrinputsettings.h:65
PlutoSDRInputSettings::translateRFPath
static void translateRFPath(RFPath path, QString &s)
Definition:
plutosdrinputsettings.cpp:166
PlutoSDRInputSettings::m_transverterMode
bool m_transverterMode
Definition:
plutosdrinputsettings.h:79
PlutoSDRInputSettings::FC_POS_END
Definition:
plutosdrinputsettings.h:30
PlutoSDRInputSettings::GAIN_AGC_FAST
Definition:
plutosdrinputsettings.h:53
PlutoSDRInputSettings::m_reverseAPIDeviceIndex
uint16_t m_reverseAPIDeviceIndex
Definition:
plutosdrinputsettings.h:85
PlutoSDRInputSettings::RFPATH_C_POS
Definition:
plutosdrinputsettings.h:43
PlutoSDRInputSettings::m_hwRFDCBlock
bool m_hwRFDCBlock
Hardware RF DC blocking.
Definition:
plutosdrinputsettings.h:72
PlutoSDRInputSettings::serialize
QByteArray serialize() const
Definition:
plutosdrinputsettings.cpp:58
PlutoSDRInputSettings::FC_POS_CENTER
Definition:
plutosdrinputsettings.h:29
PlutoSDRInputSettings::RFPATH_TX3MON
Definition:
plutosdrinputsettings.h:46
PlutoSDRInputSettings::m_hwIQCorrection
bool m_hwIQCorrection
Hardware IQ correction.
Definition:
plutosdrinputsettings.h:73
PlutoSDRInputSettings
Definition:
plutosdrinputsettings.h:25
PlutoSDRInputSettings::RFPATH_B_NEG
Definition:
plutosdrinputsettings.h:40
PlutoSDRInputSettings::m_antennaPath
RFPath m_antennaPath
Definition:
plutosdrinputsettings.h:77
PlutoSDRInputSettings::m_reverseAPIPort
uint16_t m_reverseAPIPort
Definition:
plutosdrinputsettings.h:84
PlutoSDRInputSettings::m_iqCorrection
bool m_iqCorrection
Definition:
plutosdrinputsettings.h:70
uint16_t
unsigned short uint16_t
Definition:
rtptypes_win.h:44
PlutoSDRInputSettings::GainMode
GainMode
Definition:
plutosdrinputsettings.h:50
PlutoSDRInputSettings::m_fcPos
fcPos_t m_fcPos
Definition:
plutosdrinputsettings.h:68
PlutoSDRInputSettings::m_devSampleRate
quint64 m_devSampleRate
Host interface sample rate.
Definition:
plutosdrinputsettings.h:61
PlutoSDRInputSettings::RFPATH_END
Definition:
plutosdrinputsettings.h:47
PlutoSDRInputSettings::RFPath
RFPath
Definition:
plutosdrinputsettings.h:33
PlutoSDRInputSettings::RFPATH_TX1MON
Definition:
plutosdrinputsettings.h:44
PlutoSDRInputSettings::GAIN_AGC_SLOW
Definition:
plutosdrinputsettings.h:52
PlutoSDRInputSettings::resetToDefaults
void resetToDefaults()
Definition:
plutosdrinputsettings.cpp:29
PlutoSDRInputSettings::m_useReverseAPI
bool m_useReverseAPI
Definition:
plutosdrinputsettings.h:82
PlutoSDRInputSettings::GAIN_MANUAL
Definition:
plutosdrinputsettings.h:51
PlutoSDRInputSettings::m_lpfBW
quint32 m_lpfBW
analog lowpass filter bandwidth (Hz)
Definition:
plutosdrinputsettings.h:75
PlutoSDRInputSettings::RFPATH_B_BAL
Definition:
plutosdrinputsettings.h:36
PlutoSDRInputSettings::m_gain
quint32 m_gain
"hardware" gain
Definition:
plutosdrinputsettings.h:76
PlutoSDRInputSettings::RFPATH_B_POS
Definition:
plutosdrinputsettings.h:41
PlutoSDRInputSettings::translateGainMode
static void translateGainMode(GainMode mod, QString &s)
Definition:
plutosdrinputsettings.cpp:212
PlutoSDRInputSettings::deserialize
bool deserialize(const QByteArray &data)
Definition:
plutosdrinputsettings.cpp:89
PlutoSDRInputSettings::GAIN_END
Definition:
plutosdrinputsettings.h:55
PlutoSDRInputSettings::GAIN_HYBRID
Definition:
plutosdrinputsettings.h:54
PlutoSDRInputSettings::m_fileRecordName
QString m_fileRecordName
Definition:
plutosdrinputsettings.h:81
PlutoSDRInputSettings::FC_POS_INFRA
Definition:
plutosdrinputsettings.h:27
PlutoSDRInputSettings::m_LOppmTenths
qint32 m_LOppmTenths
XO correction.
Definition:
plutosdrinputsettings.h:62
PlutoSDRInputSettings::PlutoSDRInputSettings
PlutoSDRInputSettings()
Definition:
plutosdrinputsettings.cpp:24
PlutoSDRInputSettings::RFPATH_A_NEG
Definition:
plutosdrinputsettings.h:38
PlutoSDRInputSettings::RFPATH_A_POS
Definition:
plutosdrinputsettings.h:39
PlutoSDRInputSettings::m_hwBBDCBlock
bool m_hwBBDCBlock
Hardware baseband DC blocking.
Definition:
plutosdrinputsettings.h:71
PlutoSDRInputSettings::m_centerFrequency
quint64 m_centerFrequency
Definition:
plutosdrinputsettings.h:59
PlutoSDRInputSettings::m_lpfFIRBW
quint32 m_lpfFIRBW
digital lowpass FIR filter bandwidth (Hz)
Definition:
plutosdrinputsettings.h:64
PlutoSDRInputSettings::m_dcBlock
bool m_dcBlock
Definition:
plutosdrinputsettings.h:69
PlutoSDRInputSettings::m_transverterDeltaFrequency
qint64 m_transverterDeltaFrequency
Definition:
plutosdrinputsettings.h:80
PlutoSDRInputSettings::m_gainMode
GainMode m_gainMode
Definition:
plutosdrinputsettings.h:78
PlutoSDRInputSettings::RFPATH_C_BAL
Definition:
plutosdrinputsettings.h:37
PlutoSDRInputSettings::RFPATH_C_NEG
Definition:
plutosdrinputsettings.h:42
PlutoSDRInputSettings::FC_POS_SUPRA
Definition:
plutosdrinputsettings.h:28
PlutoSDRInputSettings::m_lpfFIRGain
int m_lpfFIRGain
digital lowpass FIR filter gain (dB)
Definition:
plutosdrinputsettings.h:66
Generated on Fri Aug 2 2019 17:56:32 for SDRAngel by
1.8.13