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
limesdrinput
limesdrinputsettings.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 PLUGINS_SAMPLESOURCE_LIMESDRINPUT_LIMESDRINPUTSETTINGS_H_
19
#define PLUGINS_SAMPLESOURCE_LIMESDRINPUT_LIMESDRINPUTSETTINGS_H_
20
21
#include <QByteArray>
22
#include <QString>
23
#include <stdint.h>
24
29
struct
LimeSDRInputSettings
30
{
31
enum
PathRFE
32
{
33
PATH_RFE_NONE
= 0,
34
PATH_RFE_LNAH
,
35
PATH_RFE_LNAL
,
36
PATH_RFE_LNAW
,
37
PATH_RFE_LB1
,
38
PATH_RFE_LB2
39
};
40
41
typedef
enum
{
42
GAIN_AUTO
,
43
GAIN_MANUAL
44
}
GainMode
;
45
46
// global settings to be saved
47
uint64_t
m_centerFrequency
;
48
int
m_devSampleRate
;
49
uint32_t
m_log2HardDecim
;
50
// channel settings
51
bool
m_dcBlock
;
52
bool
m_iqCorrection
;
53
uint32_t
m_log2SoftDecim
;
54
float
m_lpfBW
;
55
bool
m_lpfFIREnable
;
56
float
m_lpfFIRBW
;
57
uint32_t
m_gain
;
58
bool
m_ncoEnable
;
59
int
m_ncoFrequency
;
60
PathRFE
m_antennaPath
;
61
GainMode
m_gainMode
;
62
uint32_t
m_lnaGain
;
63
uint32_t
m_tiaGain
;
64
uint32_t
m_pgaGain
;
65
bool
m_extClock
;
66
uint32_t
m_extClockFreq
;
67
bool
m_transverterMode
;
68
qint64
m_transverterDeltaFrequency
;
69
QString
m_fileRecordName
;
70
uint8_t
m_gpioDir
;
71
uint8_t
m_gpioPins
;
72
bool
m_useReverseAPI
;
73
QString
m_reverseAPIAddress
;
74
uint16_t
m_reverseAPIPort
;
75
uint16_t
m_reverseAPIDeviceIndex
;
76
77
LimeSDRInputSettings
();
78
void
resetToDefaults
();
79
QByteArray
serialize
()
const
;
80
bool
deserialize
(
const
QByteArray& data);
81
};
82
83
#endif
/* PLUGINS_SAMPLESOURCE_LIMESDRINPUT_LIMESDRINPUTSETTINGS_H_ */
LimeSDRInputSettings::m_gpioDir
uint8_t m_gpioDir
GPIO pin direction LSB first; 0 input, 1 output.
Definition:
limesdrinputsettings.h:70
LimeSDRInputSettings::PATH_RFE_LB2
Definition:
limesdrinputsettings.h:38
LimeSDRInputSettings
Definition:
limesdrinputsettings.h:29
LimeSDRInputSettings::m_tiaGain
uint32_t m_tiaGain
Manual TIA gain.
Definition:
limesdrinputsettings.h:63
LimeSDRInputSettings::GAIN_MANUAL
Definition:
limesdrinputsettings.h:43
LimeSDRInputSettings::m_lpfFIREnable
bool m_lpfFIREnable
Enable LMS digital lowpass FIR filters.
Definition:
limesdrinputsettings.h:55
LimeSDRInputSettings::m_reverseAPIDeviceIndex
uint16_t m_reverseAPIDeviceIndex
Definition:
limesdrinputsettings.h:75
LimeSDRInputSettings::m_extClock
bool m_extClock
True if external clock source.
Definition:
limesdrinputsettings.h:65
LimeSDRInputSettings::serialize
QByteArray serialize() const
Definition:
limesdrinputsettings.cpp:58
LimeSDRInputSettings::m_lnaGain
uint32_t m_lnaGain
Manual LAN gain.
Definition:
limesdrinputsettings.h:62
LimeSDRInputSettings::m_ncoFrequency
int m_ncoFrequency
Actual NCO frequency (the resulting frequency with mixing is displayed)
Definition:
limesdrinputsettings.h:59
LimeSDRInputSettings::m_useReverseAPI
bool m_useReverseAPI
Definition:
limesdrinputsettings.h:72
LimeSDRInputSettings::deserialize
bool deserialize(const QByteArray &data)
Definition:
limesdrinputsettings.cpp:91
LimeSDRInputSettings::m_gain
uint32_t m_gain
Optimally distributed gain (dB)
Definition:
limesdrinputsettings.h:57
LimeSDRInputSettings::resetToDefaults
void resetToDefaults()
Definition:
limesdrinputsettings.cpp:26
LimeSDRInputSettings::PATH_RFE_LNAW
Definition:
limesdrinputsettings.h:36
uint32_t
unsigned int uint32_t
Definition:
rtptypes_win.h:46
LimeSDRInputSettings::m_transverterMode
bool m_transverterMode
Definition:
limesdrinputsettings.h:67
LimeSDRInputSettings::m_log2SoftDecim
uint32_t m_log2SoftDecim
Definition:
limesdrinputsettings.h:53
LimeSDRInputSettings::m_lpfFIRBW
float m_lpfFIRBW
LMS digital lowpass FIR filters bandwidth (Hz)
Definition:
limesdrinputsettings.h:56
LimeSDRInputSettings::m_reverseAPIAddress
QString m_reverseAPIAddress
Definition:
limesdrinputsettings.h:73
uint8_t
unsigned char uint8_t
Definition:
rtptypes_win.h:42
uint16_t
unsigned short uint16_t
Definition:
rtptypes_win.h:44
LimeSDRInputSettings::PATH_RFE_LNAL
Definition:
limesdrinputsettings.h:35
LimeSDRInputSettings::GainMode
GainMode
Definition:
limesdrinputsettings.h:41
LimeSDRInputSettings::m_centerFrequency
uint64_t m_centerFrequency
Definition:
limesdrinputsettings.h:47
LimeSDRInputSettings::m_devSampleRate
int m_devSampleRate
Definition:
limesdrinputsettings.h:48
LimeSDRInputSettings::m_reverseAPIPort
uint16_t m_reverseAPIPort
Definition:
limesdrinputsettings.h:74
LimeSDRInputSettings::m_iqCorrection
bool m_iqCorrection
Definition:
limesdrinputsettings.h:52
LimeSDRInputSettings::m_fileRecordName
QString m_fileRecordName
Definition:
limesdrinputsettings.h:69
LimeSDRInputSettings::m_ncoEnable
bool m_ncoEnable
Enable TSP NCO and mixing.
Definition:
limesdrinputsettings.h:58
LimeSDRInputSettings::m_pgaGain
uint32_t m_pgaGain
Manual PGA gain.
Definition:
limesdrinputsettings.h:64
LimeSDRInputSettings::m_lpfBW
float m_lpfBW
LMS amalog lowpass filter bandwidth (Hz)
Definition:
limesdrinputsettings.h:54
LimeSDRInputSettings::m_antennaPath
PathRFE m_antennaPath
Definition:
limesdrinputsettings.h:60
LimeSDRInputSettings::m_log2HardDecim
uint32_t m_log2HardDecim
Definition:
limesdrinputsettings.h:49
LimeSDRInputSettings::GAIN_AUTO
Definition:
limesdrinputsettings.h:42
LimeSDRInputSettings::m_dcBlock
bool m_dcBlock
Definition:
limesdrinputsettings.h:51
LimeSDRInputSettings::m_gainMode
GainMode m_gainMode
Gain mode: auto or manual.
Definition:
limesdrinputsettings.h:61
LimeSDRInputSettings::m_gpioPins
uint8_t m_gpioPins
GPIO pins to write; LSB first.
Definition:
limesdrinputsettings.h:71
LimeSDRInputSettings::m_transverterDeltaFrequency
qint64 m_transverterDeltaFrequency
Definition:
limesdrinputsettings.h:68
LimeSDRInputSettings::PathRFE
PathRFE
Definition:
limesdrinputsettings.h:31
LimeSDRInputSettings::m_extClockFreq
uint32_t m_extClockFreq
Frequency (Hz) of external clock source.
Definition:
limesdrinputsettings.h:66
LimeSDRInputSettings::PATH_RFE_LNAH
Definition:
limesdrinputsettings.h:34
LimeSDRInputSettings::LimeSDRInputSettings
LimeSDRInputSettings()
Definition:
limesdrinputsettings.cpp:21
LimeSDRInputSettings::PATH_RFE_NONE
Definition:
limesdrinputsettings.h:33
LimeSDRInputSettings::PATH_RFE_LB1
Definition:
limesdrinputsettings.h:37
uint64_t
unsigned __int64 uint64_t
Definition:
rtptypes_win.h:48
Generated on Fri Aug 2 2019 17:56:32 for SDRAngel by
1.8.13