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 <freedvdemodsettings.h>
Public Types | |
enum | FreeDVMode { FreeDVMode2400A, FreeDVMode1600, FreeDVMode800XA, FreeDVMode700C, FreeDVMode700D } |
Public Member Functions | |
FreeDVDemodSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setSpectrumGUI (Serializable *spectrumGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Static Public Member Functions | |
static int | getHiCutoff (FreeDVMode freeDVMode) |
static int | getLowCutoff (FreeDVMode freeDVMode) |
static int | getModSampleRate (FreeDVMode freeDVMode) |
Public Attributes | |
qint32 | m_inputFrequencyOffset |
Real | m_volume |
Real | m_volumeIn |
int | m_spanLog2 |
bool | m_audioMute |
bool | m_agc |
quint32 | m_rgbColor |
QString | m_title |
QString | m_audioDeviceName |
FreeDVMode | m_freeDVMode |
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 27 of file freedvdemodsettings.h.
Enumerator | |
---|---|
FreeDVMode2400A | |
FreeDVMode1600 | |
FreeDVMode800XA | |
FreeDVMode700C | |
FreeDVMode700D |
Definition at line 29 of file freedvdemodsettings.h.
FreeDVDemodSettings::FreeDVDemodSettings | ( | ) |
Definition at line 33 of file freedvdemodsettings.cpp.
References resetToDefaults().
bool FreeDVDemodSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 85 of file freedvdemodsettings.cpp.
References Serializable::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_agc, m_audioDeviceName, AudioDeviceManager::m_defaultDeviceName, m_freeDVMode, m_inputFrequencyOffset, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_spanLog2, m_spectrumGUI, m_title, m_useReverseAPI, m_volume, m_volumeIn, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by FreeDVDemodGUI::deserialize(), FreeDVDemod::deserialize(), and setSpectrumGUI().
|
static |
Definition at line 150 of file freedvdemodsettings.cpp.
References FreeDVMode1600, FreeDVMode2400A, FreeDVMode700C, FreeDVMode700D, and FreeDVMode800XA.
Referenced by FreeDVDemod::applyFreeDVMode(), FreeDVDemodGUI::displaySettings(), and FreeDVDemodGUI::on_freeDVMode_currentIndexChanged().
|
static |
Definition at line 167 of file freedvdemodsettings.cpp.
References FreeDVMode1600, FreeDVMode2400A, FreeDVMode700C, FreeDVMode700D, and FreeDVMode800XA.
Referenced by FreeDVDemod::applyFreeDVMode(), FreeDVDemodGUI::displaySettings(), and FreeDVDemodGUI::on_freeDVMode_currentIndexChanged().
|
static |
Definition at line 186 of file freedvdemodsettings.cpp.
References FreeDVMode2400A.
Referenced by FreeDVDemod::applyFreeDVMode().
void FreeDVDemodSettings::resetToDefaults | ( | ) |
Definition at line 40 of file freedvdemodsettings.cpp.
References FreeDVMode2400A, m_agc, m_audioDeviceName, m_audioMute, AudioDeviceManager::m_defaultDeviceName, m_freeDVMode, m_inputFrequencyOffset, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_spanLog2, m_title, m_useReverseAPI, m_volume, and m_volumeIn.
Referenced by FreeDVDemodGUI::deserialize(), deserialize(), FreeDVDemod::deserialize(), FreeDVDemodSettings(), and FreeDVDemodGUI::resetToDefaults().
QByteArray FreeDVDemodSettings::serialize | ( | ) | const |
Definition at line 59 of file freedvdemodsettings.cpp.
References SimpleSerializer::final(), m_agc, m_audioDeviceName, m_freeDVMode, m_inputFrequencyOffset, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_spanLog2, m_spectrumGUI, m_title, m_useReverseAPI, m_volume, m_volumeIn, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by FreeDVDemodGUI::serialize(), FreeDVDemod::serialize(), and setSpectrumGUI().
|
inline |
Definition at line 59 of file freedvdemodsettings.h.
Referenced by FreeDVDemodGUI::FreeDVDemodGUI().
|
inline |
Definition at line 60 of file freedvdemodsettings.h.
References deserialize(), and serialize().
Referenced by FreeDVDemodGUI::FreeDVDemodGUI().
bool FreeDVDemodSettings::m_agc |
Definition at line 43 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::displaySettings(), FreeDVDemodGUI::on_agc_toggled(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
QString FreeDVDemodSettings::m_audioDeviceName |
Definition at line 46 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), FreeDVDemodGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
bool FreeDVDemodSettings::m_audioMute |
Definition at line 42 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), FreeDVDemodGUI::displaySettings(), FreeDVDemodGUI::on_audioMute_toggled(), FreeDVDemod::pushSampleToDV(), resetToDefaults(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
Serializable* FreeDVDemodSettings::m_channelMarker |
Definition at line 54 of file freedvdemodsettings.h.
FreeDVMode FreeDVDemodSettings::m_freeDVMode |
Definition at line 47 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::displaySettings(), FreeDVDemodGUI::on_freeDVMode_currentIndexChanged(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
qint32 FreeDVDemodSettings::m_inputFrequencyOffset |
Definition at line 38 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applyFreeDVMode(), FreeDVDemod::applySettings(), FreeDVDemodGUI::channelMarkerChangedByCursor(), deserialize(), FreeDVDemodGUI::displaySettings(), FreeDVDemod::getCenterFrequency(), FreeDVDemod::getStreamCenterFrequency(), FreeDVDemodGUI::on_deltaFrequency_changed(), FreeDVDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVDemodGUI::setCenterFrequency(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
|
static |
Definition at line 64 of file freedvdemodsettings.h.
|
static |
Definition at line 65 of file freedvdemodsettings.h.
Referenced by FreeDVDemodGUI::tick().
QString FreeDVDemodSettings::m_reverseAPIAddress |
Definition at line 49 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
uint16_t FreeDVDemodSettings::m_reverseAPIChannelIndex |
Definition at line 52 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
uint16_t FreeDVDemodSettings::m_reverseAPIDeviceIndex |
Definition at line 51 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
uint16_t FreeDVDemodSettings::m_reverseAPIPort |
Definition at line 50 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
quint32 FreeDVDemodSettings::m_rgbColor |
Definition at line 44 of file freedvdemodsettings.h.
Referenced by deserialize(), FreeDVDemodGUI::displaySettings(), FreeDVDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
int FreeDVDemodSettings::m_spanLog2 |
Definition at line 41 of file freedvdemodsettings.h.
Referenced by FreeDVDemodGUI::applyBandwidths(), FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::displaySettings(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
Serializable* FreeDVDemodSettings::m_spectrumGUI |
Definition at line 55 of file freedvdemodsettings.h.
Referenced by deserialize(), and serialize().
QString FreeDVDemodSettings::m_title |
Definition at line 45 of file freedvdemodsettings.h.
Referenced by deserialize(), FreeDVDemodGUI::displaySettings(), FreeDVDemod::getTitle(), FreeDVDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
bool FreeDVDemodSettings::m_useReverseAPI |
Definition at line 48 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), and FreeDVDemod::webapiSettingsPutPatch().
Real FreeDVDemodSettings::m_volume |
Definition at line 39 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::displaySettings(), FreeDVDemodGUI::on_volume_valueChanged(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().
Real FreeDVDemodSettings::m_volumeIn |
Definition at line 40 of file freedvdemodsettings.h.
Referenced by FreeDVDemod::applySettings(), deserialize(), FreeDVDemodGUI::displaySettings(), FreeDVDemodGUI::on_volumeIn_valueChanged(), FreeDVDemod::processOneSample(), resetToDefaults(), serialize(), FreeDVDemod::webapiFormatChannelSettings(), FreeDVDemod::webapiReverseSendSettings(), and FreeDVDemod::webapiSettingsPutPatch().