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.
|
#include <perseussettings.h>
Public Types | |
enum | Attenuator { Attenuator_None, Attenuator_10dB, Attenuator_20dB, Attenuator_30dB, Attenuator_last } |
Public Member Functions | |
PerseusSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
quint64 | m_centerFrequency |
qint32 | m_LOppmTenths |
quint32 | m_devSampleRateIndex |
quint32 | m_log2Decim |
bool | m_transverterMode |
qint64 | m_transverterDeltaFrequency |
bool | m_adcDither |
bool | m_adcPreamp |
bool | m_wideBand |
Attenuator | m_attenuator |
QString | m_fileRecordName |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
Definition at line 24 of file perseussettings.h.
Enumerator | |
---|---|
Attenuator_None | |
Attenuator_10dB | |
Attenuator_20dB | |
Attenuator_30dB | |
Attenuator_last |
Definition at line 26 of file perseussettings.h.
PerseusSettings::PerseusSettings | ( | ) |
Definition at line 22 of file perseussettings.cpp.
References resetToDefaults().
bool PerseusSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 67 of file perseussettings.cpp.
References Attenuator_last, Attenuator_None, SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_adcDither, m_adcPreamp, m_attenuator, m_devSampleRateIndex, m_log2Decim, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, m_wideBand, SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readS64(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by PerseusGui::deserialize(), and PerseusInput::deserialize().
void PerseusSettings::resetToDefaults | ( | ) |
Definition at line 27 of file perseussettings.cpp.
References Attenuator_None, m_adcDither, m_adcPreamp, m_attenuator, m_centerFrequency, m_devSampleRateIndex, m_fileRecordName, m_log2Decim, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, and m_wideBand.
Referenced by deserialize(), PerseusInput::deserialize(), PerseusSettings(), and PerseusGui::resetToDefaults().
QByteArray PerseusSettings::serialize | ( | ) | const |
Definition at line 46 of file perseussettings.cpp.
References SimpleSerializer::final(), m_adcDither, m_adcPreamp, m_attenuator, m_devSampleRateIndex, m_log2Decim, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, m_wideBand, SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeS64(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by PerseusGui::serialize(), and PerseusInput::serialize().
bool PerseusSettings::m_adcDither |
Definition at line 41 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::displaySettings(), PerseusGui::on_adcDither_toggled(), resetToDefaults(), serialize(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
bool PerseusSettings::m_adcPreamp |
Definition at line 42 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::displaySettings(), PerseusGui::on_adcPreamp_toggled(), resetToDefaults(), serialize(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
Attenuator PerseusSettings::m_attenuator |
Definition at line 44 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::displaySettings(), PerseusGui::on_attenuator_currentIndexChanged(), resetToDefaults(), serialize(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
quint64 PerseusSettings::m_centerFrequency |
Definition at line 35 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), PerseusGui::displaySettings(), PerseusGui::getCenterFrequency(), PerseusInput::getCenterFrequency(), PerseusGui::on_centerFrequency_changed(), PerseusGui::on_transverter_clicked(), resetToDefaults(), PerseusGui::setCenterFrequency(), PerseusInput::setCenterFrequency(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
quint32 PerseusSettings::m_devSampleRateIndex |
Definition at line 37 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::displaySampleRates(), PerseusGui::displaySettings(), PerseusInput::getSampleRate(), PerseusGui::on_sampleRate_currentIndexChanged(), resetToDefaults(), serialize(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
QString PerseusSettings::m_fileRecordName |
Definition at line 45 of file perseussettings.h.
Referenced by PerseusInput::handleMessage(), resetToDefaults(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
quint32 PerseusSettings::m_log2Decim |
Definition at line 38 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::displaySettings(), PerseusInput::getSampleRate(), PerseusGui::on_decim_currentIndexChanged(), resetToDefaults(), serialize(), PerseusInput::start(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
qint32 PerseusSettings::m_LOppmTenths |
Definition at line 36 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::displaySettings(), PerseusGui::on_LOppm_valueChanged(), resetToDefaults(), serialize(), PerseusInput::setDeviceCenterFrequency(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
QString PerseusSettings::m_reverseAPIAddress |
Definition at line 47 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), PerseusInput::webapiReverseSendStartStop(), and PerseusInput::webapiSettingsPutPatch().
uint16_t PerseusSettings::m_reverseAPIDeviceIndex |
Definition at line 49 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), PerseusInput::webapiReverseSendStartStop(), and PerseusInput::webapiSettingsPutPatch().
uint16_t PerseusSettings::m_reverseAPIPort |
Definition at line 48 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), PerseusInput::webapiReverseSendStartStop(), and PerseusInput::webapiSettingsPutPatch().
qint64 PerseusSettings::m_transverterDeltaFrequency |
Definition at line 40 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::displaySettings(), PerseusGui::on_transverter_clicked(), resetToDefaults(), serialize(), PerseusGui::updateFrequencyLimits(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
bool PerseusSettings::m_transverterMode |
Definition at line 39 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::displaySettings(), PerseusGui::on_transverter_clicked(), resetToDefaults(), serialize(), PerseusGui::updateFrequencyLimits(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().
bool PerseusSettings::m_useReverseAPI |
Definition at line 46 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusInput::handleMessage(), PerseusGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), PerseusInput::webapiFormatDeviceSettings(), and PerseusInput::webapiSettingsPutPatch().
bool PerseusSettings::m_wideBand |
Definition at line 43 of file perseussettings.h.
Referenced by PerseusInput::applySettings(), deserialize(), PerseusGui::displaySettings(), PerseusGui::on_wideband_toggled(), resetToDefaults(), serialize(), PerseusInput::setDeviceCenterFrequency(), PerseusInput::webapiFormatDeviceSettings(), PerseusInput::webapiReverseSendSettings(), and PerseusInput::webapiSettingsPutPatch().