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 <datvdemodsettings.h>
Public Types | |
enum | dvb_version { DVB_S, DVB_S2 } |
enum | DATVModulation { BPSK, QPSK, PSK8, APSK16, APSK32, APSK64E, QAM16, QAM64, QAM256, MOD_UNSET } |
enum | DATVCodeRate { FEC12, FEC23, FEC46, FEC34, FEC56, FEC78, FEC45, FEC89, FEC910, FEC14, FEC13, FEC25, FEC35, RATE_UNSET } |
enum | dvb_sampler { SAMP_NEAREST, SAMP_LINEAR, SAMP_RRC } |
Public Member Functions | |
DATVDemodSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
void | debug (const QString &msg) const |
bool | isDifferent (const DATVDemodSettings &other) |
void | validateSystemConfiguration () |
Static Public Member Functions | |
static DATVModulation | getModulationFromStr (const QString &str) |
static DATVCodeRate | getCodeRateFromStr (const QString &str) |
static QString | getStrFromModulation (const DATVModulation modulation) |
static QString | getStrFromCodeRate (const DATVCodeRate codeRate) |
static void | getAvailableModulations (dvb_version dvbStandard, std::vector< DATVModulation > &modulations) |
static void | getAvailableCodeRates (dvb_version dvbStandard, DATVModulation modulation, std::vector< DATVCodeRate > &codeRates) |
Public Attributes | |
quint32 | m_rgbColor |
QString | m_title |
Serializable * | m_channelMarker |
int | m_rfBandwidth |
int | m_centerFrequency |
dvb_version | m_standard |
DATVModulation | m_modulation |
DATVCodeRate | m_fec |
bool | m_audioMute |
QString | m_audioDeviceName |
int | m_symbolRate |
int | m_notchFilters |
bool | m_allowDrift |
bool | m_fastLock |
dvb_sampler | m_filter |
bool | m_hardMetric |
float | m_rollOff |
bool | m_viterbi |
int | m_excursion |
int | m_audioVolume |
bool | m_videoMute |
QString | m_udpTSAddress |
quint32 | m_udpTSPort |
bool | m_udpTS |
Definition at line 28 of file datvdemodsettings.h.
Enumerator | |
---|---|
FEC12 | |
FEC23 | |
FEC46 | |
FEC34 | |
FEC56 | |
FEC78 | |
FEC45 | |
FEC89 | |
FEC910 | |
FEC14 | |
FEC13 | |
FEC25 | |
FEC35 | |
RATE_UNSET |
Definition at line 50 of file datvdemodsettings.h.
Enumerator | |
---|---|
BPSK | |
QPSK | |
PSK8 | |
APSK16 | |
APSK32 | |
APSK64E | |
QAM16 | |
QAM64 | |
QAM256 | |
MOD_UNSET |
Definition at line 36 of file datvdemodsettings.h.
Enumerator | |
---|---|
DVB_S | |
DVB_S2 |
Definition at line 30 of file datvdemodsettings.h.
DATVDemodSettings::DATVDemodSettings | ( | ) |
Definition at line 27 of file datvdemodsettings.cpp.
References resetToDefaults().
void DATVDemodSettings::debug | ( | const QString & | msg | ) | const |
Definition at line 169 of file datvdemodsettings.cpp.
References m_allowDrift, m_audioDeviceName, m_audioMute, m_audioVolume, m_centerFrequency, m_excursion, m_fastLock, m_fec, m_filter, m_hardMetric, m_modulation, m_notchFilters, m_rfBandwidth, m_rollOff, m_standard, m_symbolRate, m_videoMute, and m_viterbi.
Referenced by DATVDemodGUI::applySettings(), DATVDemod::applySettings(), and setChannelMarker().
bool DATVDemodSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 95 of file datvdemodsettings.cpp.
References BPSK, Serializable::deserialize(), DVB_S, DVB_S2, FEC12, SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_allowDrift, m_audioDeviceName, m_audioMute, m_audioVolume, m_centerFrequency, m_channelMarker, AudioDeviceManager::m_defaultDeviceName, m_excursion, m_fastLock, m_fec, m_filter, m_hardMetric, m_modulation, m_notchFilters, m_rfBandwidth, m_rgbColor, m_rollOff, m_standard, m_symbolRate, m_title, m_udpTS, m_udpTSAddress, m_udpTSPort, m_videoMute, m_viterbi, MOD_UNSET, RATE_UNSET, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readFloat(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), resetToDefaults(), SAMP_LINEAR, SAMP_RRC, and validateSystemConfiguration().
Referenced by DATVDemodGUI::deserialize(), and setChannelMarker().
|
static |
Definition at line 412 of file datvdemodsettings.cpp.
References APSK16, APSK32, APSK64E, DVB_S, DVB_S2, FEC12, FEC13, FEC14, FEC23, FEC25, FEC34, FEC35, FEC45, FEC56, FEC78, FEC89, FEC910, PSK8, and QPSK.
Referenced by DATVDemodGUI::displaySystemConfiguration(), and setChannelMarker().
|
static |
Definition at line 389 of file datvdemodsettings.cpp.
References APSK16, APSK32, APSK64E, BPSK, DVB_S, DVB_S2, PSK8, QAM16, QAM256, QAM64, and QPSK.
Referenced by DATVDemodGUI::displaySystemConfiguration(), and setChannelMarker().
|
static |
Definition at line 302 of file datvdemodsettings.cpp.
References FEC12, FEC13, FEC14, FEC23, FEC25, FEC34, FEC35, FEC45, FEC56, FEC78, FEC89, FEC910, and RATE_UNSET.
Referenced by DATVDemodGUI::on_cmbFEC_currentIndexChanged(), and setChannelMarker().
|
static |
Definition at line 276 of file datvdemodsettings.cpp.
References APSK16, APSK32, APSK64E, BPSK, MOD_UNSET, PSK8, QAM16, QAM256, QAM64, and QPSK.
Referenced by DATVDemodGUI::on_cmbModulation_currentIndexChanged(), and setChannelMarker().
|
static |
Definition at line 358 of file datvdemodsettings.cpp.
References FEC12, FEC13, FEC14, FEC23, FEC25, FEC34, FEC35, FEC45, FEC56, FEC78, FEC89, and FEC910.
Referenced by DATVDemodGUI::displaySystemConfiguration(), setChannelMarker(), and DATVDemodGUI::tick().
|
static |
Definition at line 333 of file datvdemodsettings.cpp.
References APSK16, APSK32, APSK64E, BPSK, PSK8, QAM16, QAM256, QAM64, and QPSK.
Referenced by DATVDemodGUI::displaySystemConfiguration(), setChannelMarker(), and DATVDemodGUI::tick().
bool DATVDemodSettings::isDifferent | ( | const DATVDemodSettings & | other | ) |
Definition at line 193 of file datvdemodsettings.cpp.
References m_allowDrift, m_excursion, m_fastLock, m_fec, m_filter, m_hardMetric, m_modulation, m_notchFilters, m_rollOff, m_standard, m_symbolRate, and m_viterbi.
Referenced by DATVDemod::applySettings(), and setChannelMarker().
void DATVDemodSettings::resetToDefaults | ( | ) |
Definition at line 33 of file datvdemodsettings.cpp.
References BPSK, DVB_S, FEC12, m_allowDrift, m_audioDeviceName, m_audioMute, m_audioVolume, m_centerFrequency, AudioDeviceManager::m_defaultDeviceName, m_excursion, m_fastLock, m_fec, m_filter, m_hardMetric, m_modulation, m_notchFilters, m_rfBandwidth, m_rgbColor, m_rollOff, m_standard, m_symbolRate, m_title, m_udpTS, m_udpTSAddress, m_udpTSPort, m_videoMute, m_viterbi, and SAMP_LINEAR.
Referenced by DATVDemodSettings(), deserialize(), and DATVDemodGUI::resetToDefaults().
QByteArray DATVDemodSettings::serialize | ( | ) | const |
Definition at line 60 of file datvdemodsettings.cpp.
References SimpleSerializer::final(), m_allowDrift, m_audioDeviceName, m_audioMute, m_audioVolume, m_centerFrequency, m_channelMarker, m_excursion, m_fastLock, m_fec, m_filter, m_hardMetric, m_modulation, m_notchFilters, m_rfBandwidth, m_rgbColor, m_rollOff, m_standard, m_symbolRate, m_title, m_udpTS, m_udpTSAddress, m_udpTSPort, m_videoMute, m_viterbi, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeFloat(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by DATVDemodGUI::serialize(), and setChannelMarker().
|
inline |
Definition at line 102 of file datvdemodsettings.h.
References debug(), deserialize(), getAvailableCodeRates(), getAvailableModulations(), getCodeRateFromStr(), getModulationFromStr(), getStrFromCodeRate(), getStrFromModulation(), isDifferent(), serialize(), and validateSystemConfiguration().
void DATVDemodSettings::validateSystemConfiguration | ( | ) |
Definition at line 210 of file datvdemodsettings.cpp.
References APSK16, APSK32, APSK64E, BPSK, DVB_S, DVB_S2, FEC12, FEC13, FEC14, FEC23, FEC25, FEC34, FEC35, FEC45, FEC56, FEC78, FEC89, FEC910, m_fec, m_modulation, m_standard, PSK8, QAM16, QAM256, QAM64, and QPSK.
Referenced by deserialize(), DATVDemodGUI::handleMessage(), DATVDemodGUI::on_cmbModulation_currentIndexChanged(), DATVDemodGUI::on_cmbStandard_currentIndexChanged(), and setChannelMarker().
bool DATVDemodSettings::m_allowDrift |
Definition at line 87 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_chkAllowDrift_clicked(), resetToDefaults(), and serialize().
QString DATVDemodSettings::m_audioDeviceName |
Definition at line 84 of file datvdemodsettings.h.
Referenced by DATVDemod::applySettings(), DATVDemodGUI::audioSelect(), debug(), deserialize(), resetToDefaults(), and serialize().
bool DATVDemodSettings::m_audioMute |
Definition at line 83 of file datvdemodsettings.h.
Referenced by DATVDemod::applySettings(), debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemodGUI::on_audioMute_toggled(), resetToDefaults(), and serialize().
int DATVDemodSettings::m_audioVolume |
Definition at line 94 of file datvdemodsettings.h.
Referenced by DATVDemod::applySettings(), debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemodGUI::on_audioVolume_valueChanged(), resetToDefaults(), and serialize().
int DATVDemodSettings::m_centerFrequency |
Definition at line 79 of file datvdemodsettings.h.
Referenced by DATVDemod::applyChannelSettings(), DATVDemod::applySettings(), debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemodGUI::on_deltaFrequency_changed(), resetToDefaults(), and serialize().
Serializable* DATVDemodSettings::m_channelMarker |
Definition at line 77 of file datvdemodsettings.h.
Referenced by deserialize(), and serialize().
int DATVDemodSettings::m_excursion |
Definition at line 93 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_spiExcursion_valueChanged(), resetToDefaults(), and serialize().
bool DATVDemodSettings::m_fastLock |
Definition at line 88 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_chkFastlock_clicked(), resetToDefaults(), and serialize().
DATVCodeRate DATVDemodSettings::m_fec |
Definition at line 82 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySystemConfiguration(), DATVDemodGUI::handleMessage(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_cmbFEC_currentIndexChanged(), resetToDefaults(), serialize(), and validateSystemConfiguration().
dvb_sampler DATVDemodSettings::m_filter |
Definition at line 89 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_cmbFilter_currentIndexChanged(), resetToDefaults(), and serialize().
bool DATVDemodSettings::m_hardMetric |
Definition at line 90 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_chkHardMetric_clicked(), resetToDefaults(), and serialize().
DATVModulation DATVDemodSettings::m_modulation |
Definition at line 81 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySystemConfiguration(), DATVDemodGUI::handleMessage(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_cmbModulation_currentIndexChanged(), resetToDefaults(), serialize(), and validateSystemConfiguration().
int DATVDemodSettings::m_notchFilters |
Definition at line 86 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_spiNotchFilters_valueChanged(), resetToDefaults(), and serialize().
int DATVDemodSettings::m_rfBandwidth |
Definition at line 78 of file datvdemodsettings.h.
Referenced by DATVDemod::applyChannelSettings(), DATVDemod::applySettings(), debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemodGUI::on_rfBandwidth_changed(), resetToDefaults(), and serialize().
quint32 DATVDemodSettings::m_rgbColor |
Definition at line 75 of file datvdemodsettings.h.
Referenced by deserialize(), DATVDemodGUI::displaySettings(), resetToDefaults(), and serialize().
float DATVDemodSettings::m_rollOff |
Definition at line 91 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_spiRollOff_valueChanged(), resetToDefaults(), and serialize().
dvb_version DATVDemodSettings::m_standard |
Definition at line 80 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemodGUI::displaySystemConfiguration(), DATVDemod::feed(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_cmbStandard_currentIndexChanged(), resetToDefaults(), serialize(), and validateSystemConfiguration().
int DATVDemodSettings::m_symbolRate |
Definition at line 85 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_spiSymbolRate_valueChanged(), resetToDefaults(), and serialize().
QString DATVDemodSettings::m_title |
Definition at line 76 of file datvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
bool DATVDemodSettings::m_udpTS |
Definition at line 98 of file datvdemodsettings.h.
Referenced by DATVDemod::applySettings(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemodGUI::on_udpTS_clicked(), resetToDefaults(), and serialize().
QString DATVDemodSettings::m_udpTSAddress |
Definition at line 96 of file datvdemodsettings.h.
Referenced by DATVDemod::applySettings(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemodGUI::on_udpTSAddress_editingFinished(), resetToDefaults(), and serialize().
quint32 DATVDemodSettings::m_udpTSPort |
Definition at line 97 of file datvdemodsettings.h.
Referenced by DATVDemod::applySettings(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemodGUI::on_udpTSPort_editingFinished(), resetToDefaults(), and serialize().
bool DATVDemodSettings::m_videoMute |
Definition at line 95 of file datvdemodsettings.h.
Referenced by DATVDemod::applySettings(), debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemodGUI::on_videoMute_toggled(), resetToDefaults(), and serialize().
bool DATVDemodSettings::m_viterbi |
Definition at line 92 of file datvdemodsettings.h.
Referenced by debug(), deserialize(), DATVDemodGUI::displaySettings(), DATVDemod::InitDATVFramework(), DATVDemod::InitDATVS2Framework(), isDifferent(), DATVDemodGUI::on_chkViterbi_clicked(), resetToDefaults(), and serialize().