2018-01-10 20:21:29 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
2023-11-18 04:07:41 -05:00
|
|
|
// Copyright (C) 2012 maintech GmbH, Otto-Hahn-Str. 15, 97204 Hoechberg, Germany //
|
|
|
|
// written by Christian Daniel //
|
|
|
|
// Copyright (C) 2014 John Greb <hexameron@spam.no> //
|
|
|
|
// Copyright (C) 2015, 2017-2020, 2022 Edouard Griffiths, F4EXB <f4exb06@gmail.com> //
|
2018-01-10 20:21:29 -05:00
|
|
|
// //
|
|
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
|
|
// it under the terms of the GNU General Public License as published by //
|
|
|
|
// the Free Software Foundation as version 3 of the License, or //
|
2019-04-11 00:57:41 -04:00
|
|
|
// (at your option) any later version. //
|
2018-01-10 20:21:29 -05:00
|
|
|
// //
|
|
|
|
// This program is distributed in the hope that it will be useful, //
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
|
|
// GNU General Public License V3 for more details. //
|
|
|
|
// //
|
|
|
|
// You should have received a copy of the GNU General Public License //
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-02-05 02:38:47 -05:00
|
|
|
#ifndef _AIRSPYHFF_AIRSPYHFSETTINGS_H_
|
|
|
|
#define _AIRSPYHFF_AIRSPYHFSETTINGS_H_
|
2018-01-10 20:21:29 -05:00
|
|
|
|
2018-05-09 11:39:48 -04:00
|
|
|
#include <QString>
|
|
|
|
|
2018-01-14 15:37:49 -05:00
|
|
|
struct AirspyHFSettings
|
|
|
|
{
|
2018-01-10 20:21:29 -05:00
|
|
|
quint64 m_centerFrequency;
|
2018-01-16 20:08:01 -05:00
|
|
|
qint32 m_LOppmTenths;
|
2018-01-10 20:21:29 -05:00
|
|
|
quint32 m_devSampleRateIndex;
|
|
|
|
quint32 m_log2Decim;
|
|
|
|
bool m_transverterMode;
|
|
|
|
qint64 m_transverterDeltaFrequency;
|
2020-06-21 05:46:08 -04:00
|
|
|
bool m_iqOrder;
|
2018-01-11 18:24:54 -05:00
|
|
|
quint32 m_bandIndex;
|
2019-01-14 03:25:08 -05:00
|
|
|
bool m_useReverseAPI;
|
2018-12-25 05:01:18 -05:00
|
|
|
QString m_reverseAPIAddress;
|
|
|
|
uint16_t m_reverseAPIPort;
|
|
|
|
uint16_t m_reverseAPIDeviceIndex;
|
2019-01-14 03:25:08 -05:00
|
|
|
bool m_useDSP;
|
|
|
|
bool m_useAGC;
|
|
|
|
bool m_agcHigh;
|
|
|
|
bool m_useLNA;
|
2019-01-13 20:36:33 -05:00
|
|
|
quint32 m_attenuatorSteps;
|
2019-01-14 03:25:08 -05:00
|
|
|
bool m_dcBlock;
|
|
|
|
bool m_iqCorrection;
|
2018-01-10 20:21:29 -05:00
|
|
|
|
|
|
|
AirspyHFSettings();
|
|
|
|
void resetToDefaults();
|
|
|
|
QByteArray serialize() const;
|
|
|
|
bool deserialize(const QByteArray& data);
|
2022-10-22 05:26:13 -04:00
|
|
|
void applySettings(const QStringList& settingsKeys, const AirspyHFSettings& settings);
|
|
|
|
QString getDebugString(const QStringList& settingsKeys, bool force=false) const;
|
2018-01-10 20:21:29 -05:00
|
|
|
};
|
|
|
|
|
2018-02-05 02:38:47 -05:00
|
|
|
#endif /* _AIRSPYHFF_AIRSPYHFSETTINGS_H_ */
|