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 <nfmdemodsettings.h>
Public Member Functions | |
NFMDemodSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Static Public Member Functions | |
static int | getRFBW (int index) |
static int | getFMDev (int index) |
static int | getRFBWIndex (int rfbw) |
Public Attributes | |
int32_t | m_inputFrequencyOffset |
Real | m_rfBandwidth |
Real | m_afBandwidth |
int | m_fmDeviation |
int | m_squelchGate |
bool | m_deltaSquelch |
Real | m_squelch |
deci-Bels More... | |
Real | m_volume |
bool | m_ctcssOn |
bool | m_audioMute |
int | m_ctcssIndex |
quint32 | m_rgbColor |
QString | m_title |
QString | m_audioDeviceName |
bool | m_highPass |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Static Public Attributes | |
static const int | m_nbRfBW = 9 |
static const int | m_rfBW [] |
static const int | m_fmDev [] |
Definition at line 25 of file nfmdemodsettings.h.
NFMDemodSettings::NFMDemodSettings | ( | ) |
Definition at line 34 of file nfmdemodsettings.cpp.
References resetToDefaults().
bool NFMDemodSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 95 of file nfmdemodsettings.cpp.
References Serializable::deserialize(), getFMDev(), getRFBW(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_afBandwidth, m_audioDeviceName, m_audioMute, m_channelMarker, m_ctcssIndex, m_ctcssOn, AudioDeviceManager::m_defaultDeviceName, m_deltaSquelch, m_fmDeviation, m_highPass, m_inputFrequencyOffset, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_squelch, m_squelchGate, m_title, m_useReverseAPI, m_volume, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by NFMDemodGUI::deserialize(), NFMDemod::deserialize(), and setChannelMarker().
|
static |
Definition at line 172 of file nfmdemodsettings.cpp.
References m_fmDev, and m_nbRfBW.
Referenced by deserialize(), NFMDemodGUI::on_rfBW_currentIndexChanged(), and setChannelMarker().
|
static |
Definition at line 161 of file nfmdemodsettings.cpp.
References m_nbRfBW, and m_rfBW.
Referenced by deserialize(), NFMDemodGUI::NFMDemodGUI(), NFMDemodGUI::on_rfBW_currentIndexChanged(), and setChannelMarker().
|
static |
Definition at line 183 of file nfmdemodsettings.cpp.
References i, m_nbRfBW, and m_rfBW.
Referenced by NFMDemodGUI::displaySettings(), serialize(), and setChannelMarker().
void NFMDemodSettings::resetToDefaults | ( | ) |
Definition at line 40 of file nfmdemodsettings.cpp.
References m_afBandwidth, m_audioDeviceName, m_audioMute, m_ctcssIndex, m_ctcssOn, AudioDeviceManager::m_defaultDeviceName, m_deltaSquelch, m_fmDeviation, m_highPass, m_inputFrequencyOffset, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_squelch, m_squelchGate, m_title, m_useReverseAPI, and m_volume.
Referenced by deserialize(), NFMDemod::deserialize(), NFMDemodSettings(), and NFMDemodGUI::resetToDefaults().
QByteArray NFMDemodSettings::serialize | ( | ) | const |
Definition at line 64 of file nfmdemodsettings.cpp.
References SimpleSerializer::final(), getRFBWIndex(), m_afBandwidth, m_audioDeviceName, m_audioMute, m_channelMarker, m_ctcssIndex, m_ctcssOn, m_deltaSquelch, m_highPass, m_inputFrequencyOffset, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_squelch, m_squelchGate, m_title, m_useReverseAPI, m_volume, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by NFMDemodGUI::serialize(), NFMDemod::serialize(), and setChannelMarker().
|
inline |
Definition at line 56 of file nfmdemodsettings.h.
References deserialize(), getFMDev(), getRFBW(), getRFBWIndex(), and serialize().
Referenced by NFMDemodGUI::NFMDemodGUI().
Real NFMDemodSettings::m_afBandwidth |
Definition at line 33 of file nfmdemodsettings.h.
Referenced by NFMDemod::applyAudioSampleRate(), NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_afBW_valueChanged(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
QString NFMDemodSettings::m_audioDeviceName |
Definition at line 44 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), NFMDemodGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
bool NFMDemodSettings::m_audioMute |
Definition at line 40 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_audioMute_toggled(), NFMDemod::processOneSample(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
Serializable* NFMDemodSettings::m_channelMarker |
Definition at line 52 of file nfmdemodsettings.h.
Referenced by deserialize(), and serialize().
int NFMDemodSettings::m_ctcssIndex |
Definition at line 41 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_ctcss_currentIndexChanged(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
bool NFMDemodSettings::m_ctcssOn |
Definition at line 39 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_ctcssOn_toggled(), NFMDemod::processOneSample(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelReport(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
bool NFMDemodSettings::m_deltaSquelch |
Definition at line 36 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_deltaSquelch_toggled(), NFMDemod::processOneSample(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
|
static |
Definition at line 29 of file nfmdemodsettings.h.
Referenced by getFMDev().
int NFMDemodSettings::m_fmDeviation |
Definition at line 34 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::on_rfBW_currentIndexChanged(), resetToDefaults(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
bool NFMDemodSettings::m_highPass |
Definition at line 45 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_highPassFilter_toggled(), NFMDemod::processOneSample(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
int32_t NFMDemodSettings::m_inputFrequencyOffset |
Definition at line 31 of file nfmdemodsettings.h.
Referenced by NFMDemod::applyAudioSampleRate(), NFMDemod::applySettings(), NFMDemodGUI::channelMarkerChangedByCursor(), deserialize(), NFMDemod::deserialize(), NFMDemodGUI::displaySettings(), NFMDemod::getCenterFrequency(), NFMDemod::getStreamCenterFrequency(), NFMDemodGUI::on_deltaFrequency_changed(), NFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
|
static |
Definition at line 27 of file nfmdemodsettings.h.
Referenced by getFMDev(), getRFBW(), getRFBWIndex(), and NFMDemodGUI::NFMDemodGUI().
QString NFMDemodSettings::m_reverseAPIAddress |
Definition at line 47 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
uint16_t NFMDemodSettings::m_reverseAPIChannelIndex |
Definition at line 50 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
uint16_t NFMDemodSettings::m_reverseAPIDeviceIndex |
Definition at line 49 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
uint16_t NFMDemodSettings::m_reverseAPIPort |
Definition at line 48 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
Real NFMDemodSettings::m_rfBandwidth |
Definition at line 32 of file nfmdemodsettings.h.
Referenced by NFMDemod::applyAudioSampleRate(), NFMDemod::applyChannelSettings(), NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_rfBW_currentIndexChanged(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
|
static |
Definition at line 28 of file nfmdemodsettings.h.
Referenced by getRFBW(), and getRFBWIndex().
quint32 NFMDemodSettings::m_rgbColor |
Definition at line 42 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
Real NFMDemodSettings::m_squelch |
deci-Bels
Definition at line 37 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_squelch_valueChanged(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
int NFMDemodSettings::m_squelchGate |
Definition at line 35 of file nfmdemodsettings.h.
Referenced by NFMDemod::applyAudioSampleRate(), NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_squelchGate_valueChanged(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
QString NFMDemodSettings::m_title |
Definition at line 43 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemod::getTitle(), NFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().
bool NFMDemodSettings::m_useReverseAPI |
Definition at line 46 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiSettingsPutPatch().
Real NFMDemodSettings::m_volume |
Definition at line 38 of file nfmdemodsettings.h.
Referenced by NFMDemod::applySettings(), deserialize(), NFMDemodGUI::displaySettings(), NFMDemodGUI::on_volume_valueChanged(), NFMDemod::processOneSample(), resetToDefaults(), serialize(), NFMDemod::webapiFormatChannelSettings(), NFMDemod::webapiReverseSendSettings(), and NFMDemod::webapiSettingsPutPatch().