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
xtrxinput
xtrxinputsettings.h
Go to the documentation of this file.
1
// Copyright (C) 2017 Sergey Kostanbaev, Fairwaves Inc. //
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_XTRXINPUT_XTRXINPUTSETTINGS_H_
19
#define PLUGINS_SAMPLESOURCE_XTRXINPUT_XTRXINPUTSETTINGS_H_
20
21
#include <stdint.h>
22
23
#include <QByteArray>
24
#include <QString>
25
26
#include "xtrx_api.h"
27
32
struct
XTRXInputSettings
33
{
34
typedef
enum
{
35
GAIN_AUTO
,
36
GAIN_MANUAL
37
}
GainMode
;
38
39
// global settings to be saved
40
uint64_t
m_centerFrequency
;
41
double
m_devSampleRate
;
42
uint32_t
m_log2HardDecim
;
43
// channel settings
44
bool
m_dcBlock
;
45
bool
m_iqCorrection
;
46
uint32_t
m_log2SoftDecim
;
47
float
m_lpfBW
;
48
uint32_t
m_gain
;
49
bool
m_ncoEnable
;
50
int
m_ncoFrequency
;
51
xtrx_antenna_t
m_antennaPath
;
52
GainMode
m_gainMode
;
53
uint32_t
m_lnaGain
;
54
uint32_t
m_tiaGain
;
55
uint32_t
m_pgaGain
;
56
bool
m_extClock
;
57
uint32_t
m_extClockFreq
;
58
uint32_t
m_pwrmode
;
59
QString
m_fileRecordName
;
60
bool
m_useReverseAPI
;
61
QString
m_reverseAPIAddress
;
62
uint16_t
m_reverseAPIPort
;
63
uint16_t
m_reverseAPIDeviceIndex
;
64
65
XTRXInputSettings
();
66
void
resetToDefaults
();
67
QByteArray
serialize
()
const
;
68
bool
deserialize
(
const
QByteArray& data);
69
};
70
71
#endif
/* PLUGINS_SAMPLESOURCE_XTRXINPUT_XTRXINPUTSETTINGS_H_ */
XTRXInputSettings::m_useReverseAPI
bool m_useReverseAPI
Definition:
xtrxinputsettings.h:60
XTRXInputSettings::XTRXInputSettings
XTRXInputSettings()
Definition:
xtrxinputsettings.cpp:21
XTRXInputSettings::m_extClock
bool m_extClock
True if external clock source.
Definition:
xtrxinputsettings.h:56
XTRXInputSettings::m_pwrmode
uint32_t m_pwrmode
Definition:
xtrxinputsettings.h:58
XTRXInputSettings::m_iqCorrection
bool m_iqCorrection
Definition:
xtrxinputsettings.h:45
XTRXInputSettings::m_ncoEnable
bool m_ncoEnable
Enable TSP NCO and mixing.
Definition:
xtrxinputsettings.h:49
XTRXInputSettings::GainMode
GainMode
Definition:
xtrxinputsettings.h:34
XTRXInputSettings::deserialize
bool deserialize(const QByteArray &data)
Definition:
xtrxinputsettings.cpp:83
XTRXInputSettings::m_ncoFrequency
int m_ncoFrequency
Actual NCO frequency (the resulting frequency with mixing is displayed)
Definition:
xtrxinputsettings.h:50
XTRXInputSettings::GAIN_AUTO
Definition:
xtrxinputsettings.h:35
uint32_t
unsigned int uint32_t
Definition:
rtptypes_win.h:46
XTRXInputSettings
Definition:
xtrxinputsettings.h:32
XTRXInputSettings::m_reverseAPIDeviceIndex
uint16_t m_reverseAPIDeviceIndex
Definition:
xtrxinputsettings.h:63
XTRXInputSettings::m_log2HardDecim
uint32_t m_log2HardDecim
Definition:
xtrxinputsettings.h:42
XTRXInputSettings::m_gainMode
GainMode m_gainMode
Gain mode: auto or manual.
Definition:
xtrxinputsettings.h:52
XTRXInputSettings::m_lpfBW
float m_lpfBW
LMS analog lowpass filter bandwidth (Hz)
Definition:
xtrxinputsettings.h:47
XTRXInputSettings::m_reverseAPIAddress
QString m_reverseAPIAddress
Definition:
xtrxinputsettings.h:61
XTRXInputSettings::m_gain
uint32_t m_gain
Optimally distributed gain (dB)
Definition:
xtrxinputsettings.h:48
uint16_t
unsigned short uint16_t
Definition:
rtptypes_win.h:44
XTRXInputSettings::m_extClockFreq
uint32_t m_extClockFreq
Frequency (Hz) of external clock source.
Definition:
xtrxinputsettings.h:57
XTRXInputSettings::serialize
QByteArray serialize() const
Definition:
xtrxinputsettings.cpp:53
XTRXInputSettings::GAIN_MANUAL
Definition:
xtrxinputsettings.h:36
XTRXInputSettings::m_fileRecordName
QString m_fileRecordName
Definition:
xtrxinputsettings.h:59
XTRXInputSettings::m_tiaGain
uint32_t m_tiaGain
Manual TIA gain.
Definition:
xtrxinputsettings.h:54
XTRXInputSettings::m_centerFrequency
uint64_t m_centerFrequency
Definition:
xtrxinputsettings.h:40
XTRXInputSettings::m_devSampleRate
double m_devSampleRate
Definition:
xtrxinputsettings.h:41
XTRXInputSettings::m_reverseAPIPort
uint16_t m_reverseAPIPort
Definition:
xtrxinputsettings.h:62
XTRXInputSettings::m_lnaGain
uint32_t m_lnaGain
Manual LNA gain.
Definition:
xtrxinputsettings.h:53
XTRXInputSettings::resetToDefaults
void resetToDefaults()
Definition:
xtrxinputsettings.cpp:26
XTRXInputSettings::m_log2SoftDecim
uint32_t m_log2SoftDecim
Definition:
xtrxinputsettings.h:46
XTRXInputSettings::m_antennaPath
xtrx_antenna_t m_antennaPath
Definition:
xtrxinputsettings.h:51
XTRXInputSettings::m_pgaGain
uint32_t m_pgaGain
Manual PGA gain.
Definition:
xtrxinputsettings.h:55
XTRXInputSettings::m_dcBlock
bool m_dcBlock
Definition:
xtrxinputsettings.h:44
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