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
testsource
testsourcesettings.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 _TESTSOURCE_TESTSOURCESETTINGS_H_
19
#define _TESTSOURCE_TESTSOURCESETTINGS_H_
20
21
#include <QString>
22
23
struct
TestSourceSettings
{
24
typedef
enum
{
25
FC_POS_INFRA
= 0,
26
FC_POS_SUPRA
,
27
FC_POS_CENTER
28
}
fcPos_t
;
29
30
typedef
enum
{
31
AutoCorrNone
,
32
AutoCorrDC
,
33
AutoCorrDCAndIQ
,
34
AutoCorrLast
,
35
}
AutoCorrOptions
;
36
37
typedef
enum
{
38
ModulationNone
,
39
ModulationAM
,
40
ModulationFM
,
41
ModulationPattern0
,
42
ModulationPattern1
,
43
ModulationPattern2
,
44
ModulationLast
45
}
Modulation
;
46
47
quint64
m_centerFrequency
;
48
qint32
m_frequencyShift
;
49
quint32
m_sampleRate
;
50
quint32
m_log2Decim
;
51
fcPos_t
m_fcPos
;
52
quint32
m_sampleSizeIndex
;
53
qint32
m_amplitudeBits
;
54
AutoCorrOptions
m_autoCorrOptions
;
55
Modulation
m_modulation
;
56
int
m_modulationTone
;
57
int
m_amModulation
;
58
int
m_fmDeviation
;
59
float
m_dcFactor
;
60
float
m_iFactor
;
61
float
m_qFactor
;
62
float
m_phaseImbalance
;
63
QString
m_fileRecordName
;
64
bool
m_useReverseAPI
;
65
QString
m_reverseAPIAddress
;
66
uint16_t
m_reverseAPIPort
;
67
uint16_t
m_reverseAPIDeviceIndex
;
68
69
TestSourceSettings
();
70
void
resetToDefaults
();
71
QByteArray
serialize
()
const
;
72
bool
deserialize
(
const
QByteArray& data);
73
};
74
75
76
77
78
79
#endif
/* _TESTSOURCE_TESTSOURCESETTINGS_H_ */
TestSourceSettings::m_fileRecordName
QString m_fileRecordName
Definition:
testsourcesettings.h:63
TestSourceSettings::FC_POS_SUPRA
Definition:
testsourcesettings.h:26
TestSourceSettings::m_useReverseAPI
bool m_useReverseAPI
Definition:
testsourcesettings.h:64
TestSourceSettings::m_sampleSizeIndex
quint32 m_sampleSizeIndex
Definition:
testsourcesettings.h:52
TestSourceSettings::m_sampleRate
quint32 m_sampleRate
Definition:
testsourcesettings.h:49
TestSourceSettings::m_reverseAPIAddress
QString m_reverseAPIAddress
Definition:
testsourcesettings.h:65
TestSourceSettings::deserialize
bool deserialize(const QByteArray &data)
Definition:
testsourcesettings.cpp:78
TestSourceSettings::m_qFactor
float m_qFactor
-1.0 < x < 1.0
Definition:
testsourcesettings.h:61
TestSourceSettings::AutoCorrNone
Definition:
testsourcesettings.h:31
TestSourceSettings::resetToDefaults
void resetToDefaults()
Definition:
testsourcesettings.cpp:27
TestSourceSettings::m_fcPos
fcPos_t m_fcPos
Definition:
testsourcesettings.h:51
TestSourceSettings::FC_POS_CENTER
Definition:
testsourcesettings.h:27
TestSourceSettings::m_phaseImbalance
float m_phaseImbalance
-1.0 < x < 1.0
Definition:
testsourcesettings.h:62
TestSourceSettings::serialize
QByteArray serialize() const
Definition:
testsourcesettings.cpp:52
TestSourceSettings::ModulationLast
Definition:
testsourcesettings.h:44
TestSourceSettings::ModulationPattern0
Definition:
testsourcesettings.h:41
TestSourceSettings::m_autoCorrOptions
AutoCorrOptions m_autoCorrOptions
Definition:
testsourcesettings.h:54
TestSourceSettings::FC_POS_INFRA
Definition:
testsourcesettings.h:25
TestSourceSettings
Definition:
testsourcesettings.h:23
TestSourceSettings::m_iFactor
float m_iFactor
-1.0 < x < 1.0
Definition:
testsourcesettings.h:60
TestSourceSettings::m_reverseAPIPort
uint16_t m_reverseAPIPort
Definition:
testsourcesettings.h:66
TestSourceSettings::AutoCorrDC
Definition:
testsourcesettings.h:32
TestSourceSettings::Modulation
Modulation
Definition:
testsourcesettings.h:37
uint16_t
unsigned short uint16_t
Definition:
rtptypes_win.h:44
TestSourceSettings::ModulationNone
Definition:
testsourcesettings.h:38
TestSourceSettings::m_reverseAPIDeviceIndex
uint16_t m_reverseAPIDeviceIndex
Definition:
testsourcesettings.h:67
TestSourceSettings::TestSourceSettings
TestSourceSettings()
Definition:
testsourcesettings.cpp:22
TestSourceSettings::ModulationFM
Definition:
testsourcesettings.h:40
TestSourceSettings::ModulationPattern2
Definition:
testsourcesettings.h:43
TestSourceSettings::m_modulation
Modulation m_modulation
Definition:
testsourcesettings.h:55
TestSourceSettings::m_log2Decim
quint32 m_log2Decim
Definition:
testsourcesettings.h:50
TestSourceSettings::m_modulationTone
int m_modulationTone
10'Hz
Definition:
testsourcesettings.h:56
TestSourceSettings::ModulationAM
Definition:
testsourcesettings.h:39
TestSourceSettings::m_centerFrequency
quint64 m_centerFrequency
Definition:
testsourcesettings.h:47
TestSourceSettings::m_frequencyShift
qint32 m_frequencyShift
Definition:
testsourcesettings.h:48
TestSourceSettings::ModulationPattern1
Definition:
testsourcesettings.h:42
TestSourceSettings::AutoCorrOptions
AutoCorrOptions
Definition:
testsourcesettings.h:30
TestSourceSettings::fcPos_t
fcPos_t
Definition:
testsourcesettings.h:24
TestSourceSettings::m_fmDeviation
int m_fmDeviation
100'Hz
Definition:
testsourcesettings.h:58
TestSourceSettings::AutoCorrLast
Definition:
testsourcesettings.h:34
TestSourceSettings::AutoCorrDCAndIQ
Definition:
testsourcesettings.h:33
TestSourceSettings::m_amplitudeBits
qint32 m_amplitudeBits
Definition:
testsourcesettings.h:53
TestSourceSettings::m_amModulation
int m_amModulation
percent
Definition:
testsourcesettings.h:57
TestSourceSettings::m_dcFactor
float m_dcFactor
-1.0 < x < 1.0
Definition:
testsourcesettings.h:59
Generated on Fri Aug 2 2019 17:56:32 for SDRAngel by
1.8.13