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
soapysdrinput
soapysdrinputsettings.h
Go to the documentation of this file.
1
// Copyright (C) 2018 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 PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_SOAPYSDRINPUTSETTINGS_H_
19
#define PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_SOAPYSDRINPUTSETTINGS_H_
20
21
#include <QtGlobal>
22
#include <QString>
23
#include <QVariant>
24
#include <QMap>
25
26
struct
SoapySDRInputSettings
{
27
typedef
enum
{
28
FC_POS_INFRA
= 0,
29
FC_POS_SUPRA
,
30
FC_POS_CENTER
31
}
fcPos_t
;
32
33
quint64
m_centerFrequency
;
34
qint32
m_LOppmTenths
;
35
qint32
m_devSampleRate
;
36
quint32
m_log2Decim
;
37
fcPos_t
m_fcPos
;
38
bool
m_softDCCorrection
;
39
bool
m_softIQCorrection
;
40
bool
m_transverterMode
;
41
qint64
m_transverterDeltaFrequency
;
42
QString
m_fileRecordName
;
43
QString
m_antenna
;
44
quint32
m_bandwidth
;
45
QMap<QString, double>
m_tunableElements
;
46
qint32
m_globalGain
;
47
QMap<QString, double>
m_individualGains
;
48
bool
m_autoGain
;
49
bool
m_autoDCCorrection
;
50
bool
m_autoIQCorrection
;
51
std::complex<double>
m_dcCorrection
;
52
std::complex<double>
m_iqCorrection
;
53
QMap<QString, QVariant>
m_streamArgSettings
;
54
QMap<QString, QVariant>
m_deviceArgSettings
;
55
bool
m_useReverseAPI
;
56
QString
m_reverseAPIAddress
;
57
uint16_t
m_reverseAPIPort
;
58
uint16_t
m_reverseAPIDeviceIndex
;
59
60
SoapySDRInputSettings
();
61
void
resetToDefaults
();
62
QByteArray
serialize
()
const
;
63
bool
deserialize
(
const
QByteArray& data);
64
65
private
:
66
QByteArray
serializeNamedElementMap
(
const
QMap<QString, double>& map)
const
;
67
void
deserializeNamedElementMap
(
const
QByteArray& data, QMap<QString, double>& map);
68
QByteArray
serializeArgumentMap
(
const
QMap<QString, QVariant>& map)
const
;
69
void
deserializeArgumentMap
(
const
QByteArray& data, QMap<QString, QVariant>& map);
70
};
71
72
#endif
/* PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_SOAPYSDRINPUTSETTINGS_H_ */
SoapySDRInputSettings::FC_POS_CENTER
Definition:
soapysdrinputsettings.h:30
SoapySDRInputSettings::m_streamArgSettings
QMap< QString, QVariant > m_streamArgSettings
Definition:
soapysdrinputsettings.h:53
SoapySDRInputSettings::m_centerFrequency
quint64 m_centerFrequency
Definition:
soapysdrinputsettings.h:33
SoapySDRInputSettings::m_antenna
QString m_antenna
Definition:
soapysdrinputsettings.h:43
SoapySDRInputSettings::m_autoIQCorrection
bool m_autoIQCorrection
Definition:
soapysdrinputsettings.h:50
SoapySDRInputSettings::resetToDefaults
void resetToDefaults()
Definition:
soapysdrinputsettings.cpp:29
SoapySDRInputSettings::deserializeNamedElementMap
void deserializeNamedElementMap(const QByteArray &data, QMap< QString, double > &map)
Definition:
soapysdrinputsettings.cpp:167
SoapySDRInputSettings::m_iqCorrection
std::complex< double > m_iqCorrection
Definition:
soapysdrinputsettings.h:52
SoapySDRInputSettings::FC_POS_SUPRA
Definition:
soapysdrinputsettings.h:29
SoapySDRInputSettings::m_LOppmTenths
qint32 m_LOppmTenths
Definition:
soapysdrinputsettings.h:34
SoapySDRInputSettings::m_transverterDeltaFrequency
qint64 m_transverterDeltaFrequency
Definition:
soapysdrinputsettings.h:41
SoapySDRInputSettings::m_softIQCorrection
bool m_softIQCorrection
Definition:
soapysdrinputsettings.h:39
SoapySDRInputSettings::m_fileRecordName
QString m_fileRecordName
Definition:
soapysdrinputsettings.h:42
SoapySDRInputSettings::m_devSampleRate
qint32 m_devSampleRate
Definition:
soapysdrinputsettings.h:35
SoapySDRInputSettings::serializeNamedElementMap
QByteArray serializeNamedElementMap(const QMap< QString, double > &map) const
Definition:
soapysdrinputsettings.cpp:157
SoapySDRInputSettings::m_deviceArgSettings
QMap< QString, QVariant > m_deviceArgSettings
Definition:
soapysdrinputsettings.h:54
SoapySDRInputSettings::deserializeArgumentMap
void deserializeArgumentMap(const QByteArray &data, QMap< QString, QVariant > &map)
Definition:
soapysdrinputsettings.cpp:184
SoapySDRInputSettings::m_autoGain
bool m_autoGain
Definition:
soapysdrinputsettings.h:48
SoapySDRInputSettings::m_tunableElements
QMap< QString, double > m_tunableElements
Definition:
soapysdrinputsettings.h:45
SoapySDRInputSettings::m_autoDCCorrection
bool m_autoDCCorrection
Definition:
soapysdrinputsettings.h:49
SoapySDRInputSettings::m_globalGain
qint32 m_globalGain
Definition:
soapysdrinputsettings.h:46
uint16_t
unsigned short uint16_t
Definition:
rtptypes_win.h:44
SoapySDRInputSettings::deserialize
bool deserialize(const QByteArray &data)
Definition:
soapysdrinputsettings.cpp:89
SoapySDRInputSettings::m_softDCCorrection
bool m_softDCCorrection
Definition:
soapysdrinputsettings.h:38
SoapySDRInputSettings::m_dcCorrection
std::complex< double > m_dcCorrection
Definition:
soapysdrinputsettings.h:51
SoapySDRInputSettings::m_individualGains
QMap< QString, double > m_individualGains
Definition:
soapysdrinputsettings.h:47
SoapySDRInputSettings::m_bandwidth
quint32 m_bandwidth
Definition:
soapysdrinputsettings.h:44
SoapySDRInputSettings::serialize
QByteArray serialize() const
Definition:
soapysdrinputsettings.cpp:55
SoapySDRInputSettings::m_fcPos
fcPos_t m_fcPos
Definition:
soapysdrinputsettings.h:37
SoapySDRInputSettings::m_useReverseAPI
bool m_useReverseAPI
Definition:
soapysdrinputsettings.h:55
SoapySDRInputSettings::serializeArgumentMap
QByteArray serializeArgumentMap(const QMap< QString, QVariant > &map) const
Definition:
soapysdrinputsettings.cpp:174
SoapySDRInputSettings::FC_POS_INFRA
Definition:
soapysdrinputsettings.h:28
SoapySDRInputSettings::m_reverseAPIDeviceIndex
uint16_t m_reverseAPIDeviceIndex
Definition:
soapysdrinputsettings.h:58
SoapySDRInputSettings::fcPos_t
fcPos_t
Definition:
soapysdrinputsettings.h:27
SoapySDRInputSettings::m_reverseAPIAddress
QString m_reverseAPIAddress
Definition:
soapysdrinputsettings.h:56
SoapySDRInputSettings::m_transverterMode
bool m_transverterMode
Definition:
soapysdrinputsettings.h:40
SoapySDRInputSettings::SoapySDRInputSettings
SoapySDRInputSettings()
Definition:
soapysdrinputsettings.cpp:24
SoapySDRInputSettings::m_log2Decim
quint32 m_log2Decim
Definition:
soapysdrinputsettings.h:36
SoapySDRInputSettings::m_reverseAPIPort
uint16_t m_reverseAPIPort
Definition:
soapysdrinputsettings.h:57
SoapySDRInputSettings
Definition:
soapysdrinputsettings.h:26
Generated on Fri Aug 2 2019 17:56:32 for SDRAngel by
1.8.13