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 <ssbdemodsettings.h>
Public Member Functions | |
SSBDemodSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setSpectrumGUI (Serializable *spectrumGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
qint32 | m_inputFrequencyOffset |
Real | m_rfBandwidth |
Real | m_lowCutoff |
Real | m_volume |
int | m_spanLog2 |
bool | m_audioBinaural |
bool | m_audioFlipChannels |
bool | m_dsb |
bool | m_audioMute |
bool | m_agc |
bool | m_agcClamping |
int | m_agcTimeLog2 |
int | m_agcPowerThreshold |
int | m_agcThresholdGate |
quint32 | m_rgbColor |
QString | m_title |
QString | m_audioDeviceName |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Serializable * | m_spectrumGUI |
Static Public Attributes | |
static const int | m_minPowerThresholdDB = -100 |
static const float | m_mminPowerThresholdDBf = 100.0f |
Definition at line 25 of file ssbdemodsettings.h.
SSBDemodSettings::SSBDemodSettings | ( | ) |
Definition at line 33 of file ssbdemodsettings.cpp.
References resetToDefaults().
bool SSBDemodSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 99 of file ssbdemodsettings.cpp.
References Serializable::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_agc, m_agcClamping, m_agcPowerThreshold, m_agcThresholdGate, m_agcTimeLog2, m_audioBinaural, m_audioDeviceName, m_audioFlipChannels, AudioDeviceManager::m_defaultDeviceName, m_dsb, m_inputFrequencyOffset, m_lowCutoff, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_spanLog2, m_spectrumGUI, m_title, m_useReverseAPI, m_volume, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by SSBDemodGUI::deserialize(), SSBDemod::deserialize(), and setSpectrumGUI().
void SSBDemodSettings::resetToDefaults | ( | ) |
Definition at line 40 of file ssbdemodsettings.cpp.
References m_agc, m_agcClamping, m_agcPowerThreshold, m_agcThresholdGate, m_agcTimeLog2, m_audioBinaural, m_audioDeviceName, m_audioFlipChannels, m_audioMute, AudioDeviceManager::m_defaultDeviceName, m_dsb, m_inputFrequencyOffset, m_lowCutoff, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_spanLog2, m_title, m_useReverseAPI, and m_volume.
Referenced by SSBDemodGUI::deserialize(), deserialize(), SSBDemod::deserialize(), SSBDemodGUI::resetToDefaults(), and SSBDemodSettings().
QByteArray SSBDemodSettings::serialize | ( | ) | const |
Definition at line 66 of file ssbdemodsettings.cpp.
References SimpleSerializer::final(), m_agc, m_agcClamping, m_agcPowerThreshold, m_agcThresholdGate, m_agcTimeLog2, m_audioBinaural, m_audioDeviceName, m_audioFlipChannels, m_dsb, m_inputFrequencyOffset, m_lowCutoff, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_spanLog2, m_spectrumGUI, m_title, m_useReverseAPI, m_volume, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by SSBDemodGUI::serialize(), SSBDemod::serialize(), and setSpectrumGUI().
|
inline |
Definition at line 55 of file ssbdemodsettings.h.
Referenced by SSBDemodGUI::SSBDemodGUI().
|
inline |
Definition at line 56 of file ssbdemodsettings.h.
References deserialize(), and serialize().
Referenced by SSBDemodGUI::SSBDemodGUI().
bool SSBDemodSettings::m_agc |
Definition at line 36 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), SSBDemodGUI::on_agc_toggled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
bool SSBDemodSettings::m_agcClamping |
Definition at line 37 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), SSBDemodGUI::on_agcClamping_toggled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
int SSBDemodSettings::m_agcPowerThreshold |
Definition at line 39 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), SSBDemodGUI::on_agcPowerThreshold_valueChanged(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
int SSBDemodSettings::m_agcThresholdGate |
Definition at line 40 of file ssbdemodsettings.h.
Referenced by SSBDemod::applyAudioSampleRate(), SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), SSBDemodGUI::on_agcThresholdGate_valueChanged(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
int SSBDemodSettings::m_agcTimeLog2 |
Definition at line 38 of file ssbdemodsettings.h.
Referenced by SSBDemod::applyAudioSampleRate(), SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), SSBDemodGUI::on_agcTimeLog2_valueChanged(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
bool SSBDemodSettings::m_audioBinaural |
Definition at line 32 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), SSBDemodGUI::on_audioBinaural_toggled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
QString SSBDemodSettings::m_audioDeviceName |
Definition at line 43 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), SSBDemodGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
bool SSBDemodSettings::m_audioFlipChannels |
Definition at line 33 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), SSBDemodGUI::on_audioFlipChannels_toggled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
bool SSBDemodSettings::m_audioMute |
Definition at line 35 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), SSBDemodGUI::displaySettings(), SSBDemodGUI::on_audioMute_toggled(), resetToDefaults(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
Serializable* SSBDemodSettings::m_channelMarker |
Definition at line 50 of file ssbdemodsettings.h.
bool SSBDemodSettings::m_dsb |
Definition at line 34 of file ssbdemodsettings.h.
Referenced by SSBDemodGUI::applyBandwidths(), SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
qint32 SSBDemodSettings::m_inputFrequencyOffset |
Definition at line 27 of file ssbdemodsettings.h.
Referenced by SSBDemod::applyAudioSampleRate(), SSBDemod::applySettings(), SSBDemodGUI::channelMarkerChangedByCursor(), deserialize(), SSBDemodGUI::displaySettings(), SSBDemod::getCenterFrequency(), SSBDemod::getStreamCenterFrequency(), SSBDemodGUI::on_deltaFrequency_changed(), SSBDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBDemodGUI::setCenterFrequency(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
Real SSBDemodSettings::m_lowCutoff |
Definition at line 29 of file ssbdemodsettings.h.
Referenced by SSBDemodGUI::applyBandwidths(), SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
|
static |
Definition at line 60 of file ssbdemodsettings.h.
Referenced by SSBDemodGUI::applyBandwidths(), SSBDemod::applySettings(), and SSBDemodGUI::displayAGCPowerThreshold().
|
static |
Definition at line 61 of file ssbdemodsettings.h.
Referenced by SSBDemodGUI::tick().
QString SSBDemodSettings::m_reverseAPIAddress |
Definition at line 45 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
uint16_t SSBDemodSettings::m_reverseAPIChannelIndex |
Definition at line 48 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
uint16_t SSBDemodSettings::m_reverseAPIDeviceIndex |
Definition at line 47 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
uint16_t SSBDemodSettings::m_reverseAPIPort |
Definition at line 46 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
Real SSBDemodSettings::m_rfBandwidth |
Definition at line 28 of file ssbdemodsettings.h.
Referenced by SSBDemodGUI::applyBandwidths(), SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
quint32 SSBDemodSettings::m_rgbColor |
Definition at line 41 of file ssbdemodsettings.h.
Referenced by deserialize(), SSBDemodGUI::displaySettings(), SSBDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
int SSBDemodSettings::m_spanLog2 |
Definition at line 31 of file ssbdemodsettings.h.
Referenced by SSBDemodGUI::applyBandwidths(), SSBDemod::applySettings(), SSBDemodGUI::deserialize(), deserialize(), SSBDemodGUI::displaySettings(), resetToDefaults(), serialize(), SSBDemodGUI::SSBDemodGUI(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
Serializable* SSBDemodSettings::m_spectrumGUI |
Definition at line 51 of file ssbdemodsettings.h.
Referenced by deserialize(), and serialize().
QString SSBDemodSettings::m_title |
Definition at line 42 of file ssbdemodsettings.h.
Referenced by deserialize(), SSBDemodGUI::displaySettings(), SSBDemod::getTitle(), SSBDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().
bool SSBDemodSettings::m_useReverseAPI |
Definition at line 44 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), and SSBDemod::webapiSettingsPutPatch().
Real SSBDemodSettings::m_volume |
Definition at line 30 of file ssbdemodsettings.h.
Referenced by SSBDemod::applySettings(), deserialize(), SSBDemodGUI::displaySettings(), SSBDemodGUI::on_volume_valueChanged(), resetToDefaults(), serialize(), SSBDemod::webapiFormatChannelSettings(), SSBDemod::webapiReverseSendSettings(), and SSBDemod::webapiSettingsPutPatch().