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 <freedvmodsettings.h>
Public Types | |
enum | FreeDVModInputAF { FreeDVModInputNone, FreeDVModInputTone, FreeDVModInputFile, FreeDVModInputAudio, FreeDVModInputCWTone } |
enum | FreeDVMode { FreeDVMode2400A, FreeDVMode1600, FreeDVMode800XA, FreeDVMode700C, FreeDVMode700D } |
Public Member Functions | |
FreeDVModSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setSpectrumGUI (Serializable *spectrumGUI) |
void | setCWKeyerGUI (Serializable *cwKeyerGUI) |
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 | |
qint64 | m_inputFrequencyOffset |
float | m_toneFrequency |
float | m_volumeFactor |
int | m_spanLog2 |
bool | m_audioMute |
bool | m_playLoop |
quint32 | m_rgbColor |
QString | m_title |
FreeDVModInputAF | m_modAFInput |
QString | m_audioDeviceName |
FreeDVMode | m_freeDVMode |
bool | m_gaugeInputElseModem |
Volume gauge shows speech input level else modem level. More... | |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Serializable * | m_spectrumGUI |
Serializable * | m_cwKeyerGUI |
Definition at line 27 of file freedvmodsettings.h.
Enumerator | |
---|---|
FreeDVMode2400A | |
FreeDVMode1600 | |
FreeDVMode800XA | |
FreeDVMode700C | |
FreeDVMode700D |
Definition at line 38 of file freedvmodsettings.h.
Enumerator | |
---|---|
FreeDVModInputNone | |
FreeDVModInputTone | |
FreeDVModInputFile | |
FreeDVModInputAudio | |
FreeDVModInputCWTone |
Definition at line 29 of file freedvmodsettings.h.
FreeDVModSettings::FreeDVModSettings | ( | ) |
Definition at line 25 of file freedvmodsettings.cpp.
References resetToDefaults().
bool FreeDVModSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 91 of file freedvmodsettings.cpp.
References Serializable::deserialize(), FreeDVModInputNone, SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_audioDeviceName, m_channelMarker, m_cwKeyerGUI, AudioDeviceManager::m_defaultDeviceName, m_freeDVMode, m_gaugeInputElseModem, m_inputFrequencyOffset, m_modAFInput, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_spanLog2, m_spectrumGUI, m_title, m_toneFrequency, m_useReverseAPI, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by FreeDVModGUI::deserialize(), FreeDVMod::deserialize(), and setCWKeyerGUI().
|
static |
Definition at line 175 of file freedvmodsettings.cpp.
References FreeDVMode1600, FreeDVMode2400A, FreeDVMode700C, FreeDVMode700D, and FreeDVMode800XA.
Referenced by FreeDVMod::applyFreeDVMode(), FreeDVModGUI::displaySettings(), FreeDVModGUI::on_freeDVMode_currentIndexChanged(), and setCWKeyerGUI().
|
static |
Definition at line 192 of file freedvmodsettings.cpp.
References FreeDVMode1600, FreeDVMode2400A, FreeDVMode700C, FreeDVMode700D, and FreeDVMode800XA.
Referenced by FreeDVMod::applyFreeDVMode(), FreeDVModGUI::displaySettings(), FreeDVModGUI::on_freeDVMode_currentIndexChanged(), and setCWKeyerGUI().
|
static |
Definition at line 211 of file freedvmodsettings.cpp.
References FreeDVMode2400A.
Referenced by FreeDVMod::applyFreeDVMode(), and setCWKeyerGUI().
void FreeDVModSettings::resetToDefaults | ( | ) |
Definition at line 33 of file freedvmodsettings.cpp.
References m_audioDeviceName, m_audioMute, AudioDeviceManager::m_defaultDeviceName, m_freeDVMode, m_gaugeInputElseModem, m_inputFrequencyOffset, m_modAFInput, m_playLoop, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_spanLog2, m_title, m_toneFrequency, m_useReverseAPI, and m_volumeFactor.
Referenced by FreeDVModGUI::deserialize(), deserialize(), FreeDVMod::deserialize(), FreeDVModSettings(), and FreeDVModGUI::resetToDefaults().
QByteArray FreeDVModSettings::serialize | ( | ) | const |
Definition at line 54 of file freedvmodsettings.cpp.
References SimpleSerializer::final(), m_audioDeviceName, m_channelMarker, m_cwKeyerGUI, m_freeDVMode, m_gaugeInputElseModem, m_inputFrequencyOffset, m_modAFInput, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_spanLog2, m_spectrumGUI, m_title, m_toneFrequency, m_useReverseAPI, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by FreeDVModGUI::serialize(), FreeDVMod::serialize(), and setCWKeyerGUI().
|
inline |
Definition at line 73 of file freedvmodsettings.h.
Referenced by FreeDVModGUI::FreeDVModGUI().
|
inline |
Definition at line 75 of file freedvmodsettings.h.
References deserialize(), getHiCutoff(), getLowCutoff(), getModSampleRate(), and serialize().
Referenced by FreeDVModGUI::FreeDVModGUI().
|
inline |
Definition at line 74 of file freedvmodsettings.h.
Referenced by FreeDVModGUI::FreeDVModGUI().
QString FreeDVModSettings::m_audioDeviceName |
Definition at line 57 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), FreeDVModGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
bool FreeDVModSettings::m_audioMute |
Definition at line 51 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), FreeDVModGUI::displaySettings(), FreeDVModGUI::on_audioMute_toggled(), FreeDVMod::pullAF(), resetToDefaults(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
Serializable* FreeDVModSettings::m_channelMarker |
Definition at line 67 of file freedvmodsettings.h.
Referenced by deserialize(), and serialize().
Serializable* FreeDVModSettings::m_cwKeyerGUI |
Definition at line 69 of file freedvmodsettings.h.
Referenced by deserialize(), and serialize().
FreeDVMode FreeDVModSettings::m_freeDVMode |
Definition at line 58 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::displaySettings(), FreeDVModGUI::on_freeDVMode_currentIndexChanged(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
bool FreeDVModSettings::m_gaugeInputElseModem |
Volume gauge shows speech input level else modem level.
Definition at line 59 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::displaySettings(), FreeDVMod::modulateSample(), FreeDVModGUI::on_gaugeInput_toggled(), FreeDVMod::pullAF(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
qint64 FreeDVModSettings::m_inputFrequencyOffset |
Definition at line 47 of file freedvmodsettings.h.
Referenced by FreeDVMod::applyFreeDVMode(), FreeDVModGUI::applySettings(), FreeDVMod::applySettings(), FreeDVModGUI::channelMarkerChangedByCursor(), deserialize(), FreeDVModGUI::displaySettings(), FreeDVMod::getCenterFrequency(), FreeDVMod::getStreamCenterFrequency(), FreeDVModGUI::on_deltaFrequency_changed(), FreeDVModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVModGUI::setCenterFrequency(), FreeDVMod::start(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
FreeDVModInputAF FreeDVModSettings::m_modAFInput |
Definition at line 56 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::displaySettings(), FreeDVModGUI::on_mic_toggled(), FreeDVModGUI::on_morseKeyer_toggled(), FreeDVModGUI::on_play_toggled(), FreeDVModGUI::on_tone_toggled(), FreeDVMod::pullAF(), resetToDefaults(), serialize(), FreeDVModGUI::tick(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
bool FreeDVModSettings::m_playLoop |
Definition at line 52 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), FreeDVModGUI::displaySettings(), FreeDVModGUI::on_playLoop_toggled(), FreeDVMod::pullAF(), resetToDefaults(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
QString FreeDVModSettings::m_reverseAPIAddress |
Definition at line 62 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendCWSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
uint16_t FreeDVModSettings::m_reverseAPIChannelIndex |
Definition at line 65 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendCWSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
uint16_t FreeDVModSettings::m_reverseAPIDeviceIndex |
Definition at line 64 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendCWSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
uint16_t FreeDVModSettings::m_reverseAPIPort |
Definition at line 63 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendCWSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
quint32 FreeDVModSettings::m_rgbColor |
Definition at line 53 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), FreeDVModGUI::channelMarkerUpdate(), deserialize(), FreeDVModGUI::displaySettings(), FreeDVModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
int FreeDVModSettings::m_spanLog2 |
Definition at line 50 of file freedvmodsettings.h.
Referenced by FreeDVModGUI::applyBandwidths(), FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::displaySettings(), FreeDVMod::pullAF(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
Serializable* FreeDVModSettings::m_spectrumGUI |
Definition at line 68 of file freedvmodsettings.h.
Referenced by deserialize(), and serialize().
QString FreeDVModSettings::m_title |
Definition at line 55 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::displaySettings(), FreeDVMod::getTitle(), FreeDVModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
float FreeDVModSettings::m_toneFrequency |
Definition at line 48 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVModGUI::displaySettings(), FreeDVModGUI::on_toneFrequency_valueChanged(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().
bool FreeDVModSettings::m_useReverseAPI |
Definition at line 61 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), deserialize(), FreeDVMod::handleMessage(), FreeDVModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FreeDVMod::webapiFormatChannelSettings(), and FreeDVMod::webapiSettingsPutPatch().
float FreeDVModSettings::m_volumeFactor |
Definition at line 49 of file freedvmodsettings.h.
Referenced by FreeDVMod::applySettings(), FreeDVModGUI::displaySettings(), FreeDVModGUI::on_volume_valueChanged(), FreeDVMod::pullAF(), resetToDefaults(), FreeDVMod::webapiFormatChannelSettings(), FreeDVMod::webapiReverseSendSettings(), and FreeDVMod::webapiSettingsPutPatch().