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
fileinput
fileinputsettings.h
Go to the documentation of this file.
1
// Copyright (C) 2017-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 PLUGINS_SAMPLESOURCE_FILEINPUT_FILEINPUTSETTINGS_H_
19
#define PLUGINS_SAMPLESOURCE_FILEINPUT_FILEINPUTSETTINGS_H_
20
21
#include <QString>
22
#include <QByteArray>
23
24
struct
FileInputSettings
{
25
quint64
m_centerFrequency
;
26
qint32
m_sampleRate
;
27
QString
m_fileName
;
28
quint32
m_accelerationFactor
;
29
bool
m_loop
;
30
bool
m_useReverseAPI
;
31
QString
m_reverseAPIAddress
;
32
uint16_t
m_reverseAPIPort
;
33
uint16_t
m_reverseAPIDeviceIndex
;
34
35
static
const
unsigned
int
m_accelerationMaxScale
;
36
37
FileInputSettings
();
38
~FileInputSettings
() {}
39
40
void
resetToDefaults
();
41
QByteArray
serialize
()
const
;
42
bool
deserialize
(
const
QByteArray& data);
43
static
int
getAccelerationIndex
(
int
averaging);
44
static
int
getAccelerationValue
(
int
averagingIndex);
45
};
46
47
#endif
/* PLUGINS_SAMPLESOURCE_FILEINPUT_FILEINPUTSETTINGS_H_ */
FileInputSettings::m_reverseAPIDeviceIndex
uint16_t m_reverseAPIDeviceIndex
Definition:
fileinputsettings.h:33
FileInputSettings
Definition:
fileinputsettings.h:24
FileInputSettings::deserialize
bool deserialize(const QByteArray &data)
Definition:
fileinputsettings.cpp:56
FileInputSettings::resetToDefaults
void resetToDefaults()
Definition:
fileinputsettings.cpp:29
FileInputSettings::m_sampleRate
qint32 m_sampleRate
Definition:
fileinputsettings.h:26
uint16_t
unsigned short uint16_t
Definition:
rtptypes_win.h:44
FileInputSettings::serialize
QByteArray serialize() const
Definition:
fileinputsettings.cpp:42
FileInputSettings::m_fileName
QString m_fileName
Definition:
fileinputsettings.h:27
FileInputSettings::getAccelerationIndex
static int getAccelerationIndex(int averaging)
Definition:
fileinputsettings.cpp:94
FileInputSettings::getAccelerationValue
static int getAccelerationValue(int averagingIndex)
Definition:
fileinputsettings.cpp:126
FileInputSettings::m_loop
bool m_loop
Definition:
fileinputsettings.h:29
FileInputSettings::m_reverseAPIAddress
QString m_reverseAPIAddress
Definition:
fileinputsettings.h:31
FileInputSettings::m_centerFrequency
quint64 m_centerFrequency
Definition:
fileinputsettings.h:25
FileInputSettings::~FileInputSettings
~FileInputSettings()
Definition:
fileinputsettings.h:38
FileInputSettings::m_useReverseAPI
bool m_useReverseAPI
Definition:
fileinputsettings.h:30
FileInputSettings::m_accelerationFactor
quint32 m_accelerationFactor
Definition:
fileinputsettings.h:28
FileInputSettings::FileInputSettings
FileInputSettings()
Definition:
fileinputsettings.cpp:24
FileInputSettings::m_accelerationMaxScale
static const unsigned int m_accelerationMaxScale
Max power of 10 multiplier to 2,5,10 base ex: 2 -> 2,5,10,20,50,100,200,500,1000. ...
Definition:
fileinputsettings.h:35
FileInputSettings::m_reverseAPIPort
uint16_t m_reverseAPIPort
Definition:
fileinputsettings.h:32
Generated on Fri Aug 2 2019 17:56:32 for SDRAngel by
1.8.13