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
samplemimo
testmi
testmisettings.h
Go to the documentation of this file.
1
// Copyright (C) 2019 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 _TESTMI_TESTMISETTINGS_H_
19
#define _TESTMI_TESTMISETTINGS_H_
20
21
#include <QString>
22
23
struct
TestMIStreamSettings
{
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
64
TestMIStreamSettings
();
65
void
resetToDefaults
();
66
};
67
68
struct
TestMISettings
{
69
QString
m_fileRecordName
;
70
bool
m_useReverseAPI
;
71
QString
m_reverseAPIAddress
;
72
uint16_t
m_reverseAPIPort
;
73
uint16_t
m_reverseAPIDeviceIndex
;
74
std::vector<TestMIStreamSettings>
m_streams
;
75
76
TestMISettings
();
77
TestMISettings
(
const
TestMISettings
& other);
78
void
resetToDefaults
();
79
QByteArray serialize()
const
;
80
bool
deserialize(
const
QByteArray& data);
81
};
82
83
84
#endif
/* _TESTMI_TESTMISETTINGS_H_ */
TestMISettings::m_reverseAPIAddress
QString m_reverseAPIAddress
Definition:
testmisettings.h:71
TestMIStreamSettings::m_modulationTone
int m_modulationTone
10'Hz
Definition:
testmisettings.h:56
TestMIStreamSettings::m_fmDeviation
int m_fmDeviation
100'Hz
Definition:
testmisettings.h:58
TestMIStreamSettings::m_fcPos
fcPos_t m_fcPos
Definition:
testmisettings.h:51
TestMISettings::m_reverseAPIPort
uint16_t m_reverseAPIPort
Definition:
testmisettings.h:72
TestMIStreamSettings::TestMIStreamSettings
TestMIStreamSettings()
Definition:
testmisettings.cpp:22
TestMIStreamSettings::ModulationPattern1
Definition:
testmisettings.h:42
TestMIStreamSettings::m_centerFrequency
quint64 m_centerFrequency
Definition:
testmisettings.h:47
TestMIStreamSettings::m_log2Decim
quint32 m_log2Decim
Definition:
testmisettings.h:50
TestMIStreamSettings::m_iFactor
float m_iFactor
-1.0 < x < 1.0
Definition:
testmisettings.h:60
TestMISettings::m_useReverseAPI
bool m_useReverseAPI
Definition:
testmisettings.h:70
TestMIStreamSettings
Definition:
testmisettings.h:23
TestMIStreamSettings::ModulationFM
Definition:
testmisettings.h:40
TestMIStreamSettings::FC_POS_CENTER
Definition:
testmisettings.h:27
TestMIStreamSettings::Modulation
Modulation
Definition:
testmisettings.h:37
TestMIStreamSettings::AutoCorrDCAndIQ
Definition:
testmisettings.h:33
uint16_t
unsigned short uint16_t
Definition:
rtptypes_win.h:44
TestMIStreamSettings::AutoCorrLast
Definition:
testmisettings.h:34
TestMISettings::m_reverseAPIDeviceIndex
uint16_t m_reverseAPIDeviceIndex
Definition:
testmisettings.h:73
TestMIStreamSettings::m_dcFactor
float m_dcFactor
-1.0 < x < 1.0
Definition:
testmisettings.h:59
TestMISettings::m_streams
std::vector< TestMIStreamSettings > m_streams
Definition:
testmisettings.h:74
TestMIStreamSettings::m_sampleRate
quint32 m_sampleRate
Definition:
testmisettings.h:49
TestMIStreamSettings::m_phaseImbalance
float m_phaseImbalance
-1.0 < x < 1.0
Definition:
testmisettings.h:62
TestMIStreamSettings::m_sampleSizeIndex
quint32 m_sampleSizeIndex
Definition:
testmisettings.h:52
TestMIStreamSettings::ModulationAM
Definition:
testmisettings.h:39
TestMIStreamSettings::m_amplitudeBits
qint32 m_amplitudeBits
Definition:
testmisettings.h:53
TestMIStreamSettings::AutoCorrNone
Definition:
testmisettings.h:31
TestMIStreamSettings::ModulationPattern2
Definition:
testmisettings.h:43
TestMIStreamSettings::m_qFactor
float m_qFactor
-1.0 < x < 1.0
Definition:
testmisettings.h:61
TestMIStreamSettings::FC_POS_SUPRA
Definition:
testmisettings.h:26
TestMIStreamSettings::ModulationPattern0
Definition:
testmisettings.h:41
TestMIStreamSettings::m_autoCorrOptions
AutoCorrOptions m_autoCorrOptions
Definition:
testmisettings.h:54
TestMIStreamSettings::AutoCorrOptions
AutoCorrOptions
Definition:
testmisettings.h:30
TestMIStreamSettings::m_modulation
Modulation m_modulation
Definition:
testmisettings.h:55
TestMIStreamSettings::ModulationLast
Definition:
testmisettings.h:44
TestMIStreamSettings::fcPos_t
fcPos_t
Definition:
testmisettings.h:24
TestMISettings::m_fileRecordName
QString m_fileRecordName
Definition:
testmisettings.h:69
TestMISettings
Definition:
testmisettings.h:68
TestMIStreamSettings::FC_POS_INFRA
Definition:
testmisettings.h:25
TestMIStreamSettings::AutoCorrDC
Definition:
testmisettings.h:32
TestMIStreamSettings::m_frequencyShift
qint32 m_frequencyShift
Definition:
testmisettings.h:48
TestMIStreamSettings::resetToDefaults
void resetToDefaults()
Definition:
testmisettings.cpp:27
TestMIStreamSettings::m_amModulation
int m_amModulation
percent
Definition:
testmisettings.h:57
TestMIStreamSettings::ModulationNone
Definition:
testmisettings.h:38
Generated on Fri Aug 2 2019 17:56:31 for SDRAngel by
1.8.13