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 <bfmdemodsettings.h>
Public Member Functions | |
BFMDemodSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setSpectrumGUI (Serializable *spectrumGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Static Public Member Functions | |
static int | getRFBW (int index) |
static int | getRFBWIndex (int rfbw) |
Public Attributes | |
qint64 | m_inputFrequencyOffset |
Real | m_rfBandwidth |
Real | m_afBandwidth |
Real | m_volume |
Real | m_squelch |
bool | m_audioStereo |
bool | m_lsbStereo |
bool | m_showPilot |
bool | m_rdsActive |
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_nbRFBW = 9 |
static const int | m_rfBW [] |
Definition at line 25 of file bfmdemodsettings.h.
BFMDemodSettings::BFMDemodSettings | ( | ) |
Definition at line 31 of file bfmdemodsettings.cpp.
References resetToDefaults().
bool BFMDemodSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 91 of file bfmdemodsettings.cpp.
References Serializable::deserialize(), getRFBW(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_afBandwidth, m_audioDeviceName, m_audioStereo, m_channelMarker, AudioDeviceManager::m_defaultDeviceName, m_inputFrequencyOffset, m_lsbStereo, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_spectrumGUI, m_squelch, m_title, m_useReverseAPI, m_volume, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by BFMDemodGUI::deserialize(), BFMDemod::deserialize(), and setSpectrumGUI().
|
static |
Definition at line 161 of file bfmdemodsettings.cpp.
References m_nbRFBW, and m_rfBW.
Referenced by deserialize(), BFMDemodGUI::on_rfBW_valueChanged(), resetToDefaults(), and setSpectrumGUI().
|
static |
Definition at line 172 of file bfmdemodsettings.cpp.
References i, m_nbRFBW, and m_rfBW.
Referenced by BFMDemodGUI::displaySettings(), serialize(), and setSpectrumGUI().
void BFMDemodSettings::resetToDefaults | ( | ) |
Definition at line 38 of file bfmdemodsettings.cpp.
References getRFBW(), m_afBandwidth, m_audioDeviceName, m_audioStereo, AudioDeviceManager::m_defaultDeviceName, m_inputFrequencyOffset, m_lsbStereo, m_rdsActive, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_showPilot, m_squelch, m_title, m_useReverseAPI, and m_volume.
Referenced by BFMDemodSettings(), deserialize(), BFMDemod::deserialize(), and BFMDemodGUI::resetToDefaults().
QByteArray BFMDemodSettings::serialize | ( | ) | const |
Definition at line 59 of file bfmdemodsettings.cpp.
References SimpleSerializer::final(), getRFBWIndex(), m_afBandwidth, m_audioDeviceName, m_audioStereo, m_channelMarker, m_inputFrequencyOffset, m_lsbStereo, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_spectrumGUI, m_squelch, m_title, m_useReverseAPI, m_volume, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by BFMDemodGUI::serialize(), BFMDemod::serialize(), and setSpectrumGUI().
|
inline |
Definition at line 53 of file bfmdemodsettings.h.
Referenced by BFMDemodGUI::BFMDemodGUI().
|
inline |
Definition at line 54 of file bfmdemodsettings.h.
References deserialize(), getRFBW(), getRFBWIndex(), and serialize().
Referenced by BFMDemodGUI::BFMDemodGUI().
Real BFMDemodSettings::m_afBandwidth |
Definition at line 29 of file bfmdemodsettings.h.
Referenced by BFMDemod::applyAudioSampleRate(), BFMDemod::applyChannelSettings(), BFMDemod::applySettings(), deserialize(), BFMDemodGUI::displaySettings(), BFMDemodGUI::on_afBW_valueChanged(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
QString BFMDemodSettings::m_audioDeviceName |
Definition at line 38 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), BFMDemodGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
bool BFMDemodSettings::m_audioStereo |
Definition at line 32 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), deserialize(), BFMDemodGUI::displaySettings(), BFMDemod::feed(), BFMDemodGUI::on_audioStereo_toggled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
Serializable* BFMDemodSettings::m_channelMarker |
Definition at line 45 of file bfmdemodsettings.h.
Referenced by deserialize(), and serialize().
qint64 BFMDemodSettings::m_inputFrequencyOffset |
Definition at line 27 of file bfmdemodsettings.h.
Referenced by BFMDemodGUI::applySettings(), BFMDemod::applySettings(), BFMDemodGUI::channelMarkerChangedByCursor(), deserialize(), BFMDemodGUI::displaySettings(), BFMDemodGUI::on_deltaFrequency_changed(), BFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
bool BFMDemodSettings::m_lsbStereo |
Definition at line 33 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), deserialize(), BFMDemodGUI::displaySettings(), BFMDemod::feed(), BFMDemodGUI::on_lsbStereo_toggled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
|
static |
Definition at line 48 of file bfmdemodsettings.h.
Referenced by getRFBW(), and getRFBWIndex().
bool BFMDemodSettings::m_rdsActive |
Definition at line 35 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), BFMDemodGUI::displaySettings(), BFMDemod::feed(), BFMDemodGUI::on_rds_clicked(), resetToDefaults(), BFMDemod::webapiFormatChannelReport(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
QString BFMDemodSettings::m_reverseAPIAddress |
Definition at line 40 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), deserialize(), BFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
uint16_t BFMDemodSettings::m_reverseAPIChannelIndex |
Definition at line 43 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), deserialize(), BFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
uint16_t BFMDemodSettings::m_reverseAPIDeviceIndex |
Definition at line 42 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), deserialize(), BFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
uint16_t BFMDemodSettings::m_reverseAPIPort |
Definition at line 41 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), deserialize(), BFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
Real BFMDemodSettings::m_rfBandwidth |
Definition at line 28 of file bfmdemodsettings.h.
Referenced by BFMDemod::applyChannelSettings(), BFMDemodGUI::applySettings(), BFMDemod::applySettings(), deserialize(), BFMDemodGUI::displaySettings(), BFMDemod::feed(), BFMDemodGUI::on_rfBW_valueChanged(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
|
static |
Definition at line 49 of file bfmdemodsettings.h.
Referenced by getRFBW(), and getRFBWIndex().
quint32 BFMDemodSettings::m_rgbColor |
Definition at line 36 of file bfmdemodsettings.h.
Referenced by BFMDemodGUI::BFMDemodGUI(), deserialize(), BFMDemodGUI::displaySettings(), BFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
bool BFMDemodSettings::m_showPilot |
Definition at line 34 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), BFMDemodGUI::displaySettings(), BFMDemod::feed(), BFMDemodGUI::on_showPilot_clicked(), resetToDefaults(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
Serializable* BFMDemodSettings::m_spectrumGUI |
Definition at line 46 of file bfmdemodsettings.h.
Referenced by deserialize(), and serialize().
Real BFMDemodSettings::m_squelch |
Definition at line 31 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), deserialize(), BFMDemodGUI::displaySettings(), BFMDemodGUI::on_squelch_valueChanged(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
QString BFMDemodSettings::m_title |
Definition at line 37 of file bfmdemodsettings.h.
Referenced by deserialize(), BFMDemodGUI::displaySettings(), BFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().
bool BFMDemodSettings::m_useReverseAPI |
Definition at line 39 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), deserialize(), BFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), and BFMDemod::webapiSettingsPutPatch().
Real BFMDemodSettings::m_volume |
Definition at line 30 of file bfmdemodsettings.h.
Referenced by BFMDemod::applySettings(), deserialize(), BFMDemodGUI::displaySettings(), BFMDemod::feed(), BFMDemodGUI::on_volume_valueChanged(), resetToDefaults(), serialize(), BFMDemod::webapiFormatChannelSettings(), BFMDemod::webapiReverseSendSettings(), and BFMDemod::webapiSettingsPutPatch().