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 <nfmmodsettings.h>
Public Types | |
enum | NFMModInputAF { NFMModInputNone, NFMModInputTone, NFMModInputFile, NFMModInputAudio, NFMModInputCWTone } |
Public Member Functions | |
NFMModSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setCWKeyerGUI (Serializable *cwKeyerGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Static Public Member Functions | |
static int | getRFBW (int index) |
static int | getRFBWIndex (int rfbw) |
static float | getCTCSSFreq (int index) |
static int | getCTCSSFreqIndex (float ctcssFreq) |
Public Attributes | |
qint64 | m_inputFrequencyOffset |
Real | m_rfBandwidth |
Real | m_afBandwidth |
float | m_fmDeviation |
float | m_toneFrequency |
float | m_volumeFactor |
bool | m_channelMute |
bool | m_playLoop |
bool | m_ctcssOn |
int | m_ctcssIndex |
quint32 | m_rgbColor |
QString | m_title |
NFMModInputAF | m_modAFInput |
QString | m_audioDeviceName |
This is the audio device you get the audio samples from. More... | |
QString | m_feedbackAudioDeviceName |
This is the audio device you send the audio samples to for audio feedback. More... | |
float | m_feedbackVolumeFactor |
bool | m_feedbackAudioEnable |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Serializable * | m_cwKeyerGUI |
Static Public Attributes | |
static const int | m_nbRfBW = 11 |
static const int | m_rfBW [] |
static const int | m_nbCTCSSFreqs = 32 |
static const float | m_ctcssFreqs [] |
Definition at line 25 of file nfmmodsettings.h.
Enumerator | |
---|---|
NFMModInputNone | |
NFMModInputTone | |
NFMModInputFile | |
NFMModInputAudio | |
NFMModInputCWTone |
Definition at line 27 of file nfmmodsettings.h.
NFMModSettings::NFMModSettings | ( | ) |
Definition at line 40 of file nfmmodsettings.cpp.
References resetToDefaults().
bool NFMModSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 110 of file nfmmodsettings.cpp.
References Serializable::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_afBandwidth, m_audioDeviceName, m_channelMarker, m_ctcssIndex, m_ctcssOn, m_cwKeyerGUI, AudioDeviceManager::m_defaultDeviceName, m_feedbackAudioDeviceName, m_feedbackAudioEnable, m_feedbackVolumeFactor, m_fmDeviation, m_inputFrequencyOffset, m_modAFInput, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_title, m_toneFrequency, m_useReverseAPI, m_volumeFactor, NFMModInputNone, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readReal(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by NFMModGUI::deserialize(), NFMMod::deserialize(), and setCWKeyerGUI().
|
static |
Definition at line 211 of file nfmmodsettings.cpp.
References m_ctcssFreqs, and m_nbCTCSSFreqs.
Referenced by NFMMod::applyAudioSampleRate(), NFMMod::applySettings(), NFMModGUI::NFMModGUI(), and setCWKeyerGUI().
|
static |
Definition at line 222 of file nfmmodsettings.cpp.
References i, m_ctcssFreqs, and m_nbCTCSSFreqs.
Referenced by setCWKeyerGUI().
|
static |
Definition at line 187 of file nfmmodsettings.cpp.
References m_nbRfBW, and m_rfBW.
Referenced by NFMModGUI::NFMModGUI(), NFMModGUI::on_rfBW_currentIndexChanged(), and setCWKeyerGUI().
|
static |
Definition at line 198 of file nfmmodsettings.cpp.
References i, m_nbRfBW, and m_rfBW.
Referenced by NFMModGUI::displaySettings(), and setCWKeyerGUI().
void NFMModSettings::resetToDefaults | ( | ) |
Definition at line 47 of file nfmmodsettings.cpp.
References m_afBandwidth, m_audioDeviceName, m_channelMute, m_ctcssIndex, m_ctcssOn, AudioDeviceManager::m_defaultDeviceName, m_feedbackAudioDeviceName, m_feedbackAudioEnable, m_feedbackVolumeFactor, m_fmDeviation, m_inputFrequencyOffset, m_modAFInput, m_playLoop, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_title, m_toneFrequency, m_useReverseAPI, and m_volumeFactor.
Referenced by deserialize(), NFMMod::deserialize(), NFMModSettings(), and NFMModGUI::resetToDefaults().
QByteArray NFMModSettings::serialize | ( | ) | const |
Definition at line 73 of file nfmmodsettings.cpp.
References SimpleSerializer::final(), m_afBandwidth, m_audioDeviceName, m_channelMarker, m_ctcssIndex, m_ctcssOn, m_cwKeyerGUI, m_feedbackAudioDeviceName, m_feedbackAudioEnable, m_feedbackVolumeFactor, m_fmDeviation, m_inputFrequencyOffset, m_modAFInput, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_title, m_toneFrequency, m_useReverseAPI, m_volumeFactor, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeReal(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by NFMModGUI::serialize(), NFMMod::serialize(), and setCWKeyerGUI().
|
inline |
Definition at line 69 of file nfmmodsettings.h.
Referenced by NFMModGUI::NFMModGUI().
|
inline |
Definition at line 70 of file nfmmodsettings.h.
References deserialize(), getCTCSSFreq(), getCTCSSFreqIndex(), getRFBW(), getRFBWIndex(), and serialize().
Referenced by NFMModGUI::NFMModGUI().
Real NFMModSettings::m_afBandwidth |
Definition at line 43 of file nfmmodsettings.h.
Referenced by NFMMod::applyAudioSampleRate(), NFMMod::applySettings(), deserialize(), NFMModGUI::displaySettings(), NFMModGUI::on_afBW_valueChanged(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
QString NFMModSettings::m_audioDeviceName |
This is the audio device you get the audio samples from.
Definition at line 54 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), NFMModGUI::audioFeedbackSelect(), NFMModGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), and NFMMod::webapiReverseSendSettings().
Serializable* NFMModSettings::m_channelMarker |
Definition at line 64 of file nfmmodsettings.h.
Referenced by deserialize(), and serialize().
bool NFMModSettings::m_channelMute |
Definition at line 47 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), NFMModGUI::displaySettings(), NFMModGUI::on_channelMute_toggled(), NFMMod::pull(), resetToDefaults(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
|
static |
Definition at line 39 of file nfmmodsettings.h.
Referenced by getCTCSSFreq(), and getCTCSSFreqIndex().
int NFMModSettings::m_ctcssIndex |
Definition at line 50 of file nfmmodsettings.h.
Referenced by NFMMod::applyAudioSampleRate(), NFMMod::applySettings(), deserialize(), NFMModGUI::displaySettings(), NFMModGUI::on_ctcss_currentIndexChanged(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
bool NFMModSettings::m_ctcssOn |
Definition at line 49 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), deserialize(), NFMModGUI::displaySettings(), NFMMod::modulateSample(), NFMModGUI::on_ctcssOn_toggled(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
Serializable* NFMModSettings::m_cwKeyerGUI |
Definition at line 65 of file nfmmodsettings.h.
Referenced by deserialize(), and serialize().
QString NFMModSettings::m_feedbackAudioDeviceName |
This is the audio device you send the audio samples to for audio feedback.
Definition at line 55 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), NFMModGUI::audioFeedbackSelect(), deserialize(), resetToDefaults(), and serialize().
bool NFMModSettings::m_feedbackAudioEnable |
Definition at line 57 of file nfmmodsettings.h.
Referenced by deserialize(), NFMModGUI::displaySettings(), NFMMod::modulateSample(), NFMModGUI::on_feedbackEnable_toggled(), resetToDefaults(), and serialize().
float NFMModSettings::m_feedbackVolumeFactor |
Definition at line 56 of file nfmmodsettings.h.
Referenced by deserialize(), NFMModGUI::displaySettings(), NFMMod::modulateSample(), NFMModGUI::on_feedbackVolume_valueChanged(), resetToDefaults(), and serialize().
float NFMModSettings::m_fmDeviation |
Definition at line 44 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), deserialize(), NFMModGUI::displaySettings(), NFMMod::modulateSample(), NFMModGUI::on_fmDev_valueChanged(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
qint64 NFMModSettings::m_inputFrequencyOffset |
Definition at line 41 of file nfmmodsettings.h.
Referenced by NFMMod::applyAudioSampleRate(), NFMMod::applySettings(), NFMModGUI::channelMarkerChangedByCursor(), deserialize(), NFMMod::deserialize(), NFMModGUI::displaySettings(), NFMMod::getCenterFrequency(), NFMMod::getStreamCenterFrequency(), NFMModGUI::on_deltaFrequency_changed(), NFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
NFMModInputAF NFMModSettings::m_modAFInput |
Definition at line 53 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), deserialize(), NFMModGUI::displaySettings(), NFMModGUI::on_mic_toggled(), NFMModGUI::on_morseKeyer_toggled(), NFMModGUI::on_play_toggled(), NFMModGUI::on_tone_toggled(), NFMMod::pullAF(), resetToDefaults(), serialize(), NFMModGUI::tick(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
|
static |
Definition at line 38 of file nfmmodsettings.h.
Referenced by getCTCSSFreq(), getCTCSSFreqIndex(), and NFMModGUI::NFMModGUI().
|
static |
Definition at line 36 of file nfmmodsettings.h.
Referenced by getRFBW(), getRFBWIndex(), and NFMModGUI::NFMModGUI().
bool NFMModSettings::m_playLoop |
Definition at line 48 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), NFMModGUI::displaySettings(), NFMModGUI::on_playLoop_toggled(), NFMMod::pullAF(), resetToDefaults(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
QString NFMModSettings::m_reverseAPIAddress |
Definition at line 59 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), deserialize(), NFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendCWSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
uint16_t NFMModSettings::m_reverseAPIChannelIndex |
Definition at line 62 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), deserialize(), NFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendCWSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
uint16_t NFMModSettings::m_reverseAPIDeviceIndex |
Definition at line 61 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), deserialize(), NFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendCWSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
uint16_t NFMModSettings::m_reverseAPIPort |
Definition at line 60 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), deserialize(), NFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendCWSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
Real NFMModSettings::m_rfBandwidth |
Definition at line 42 of file nfmmodsettings.h.
Referenced by NFMMod::applyAudioSampleRate(), NFMMod::applyChannelSettings(), NFMMod::applySettings(), deserialize(), NFMModGUI::displaySettings(), NFMModGUI::on_rfBW_currentIndexChanged(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
|
static |
Definition at line 37 of file nfmmodsettings.h.
Referenced by getRFBW(), and getRFBWIndex().
quint32 NFMModSettings::m_rgbColor |
Definition at line 51 of file nfmmodsettings.h.
Referenced by deserialize(), NFMModGUI::displaySettings(), NFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
QString NFMModSettings::m_title |
Definition at line 52 of file nfmmodsettings.h.
Referenced by deserialize(), NFMModGUI::displaySettings(), NFMMod::getTitle(), NFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
float NFMModSettings::m_toneFrequency |
Definition at line 45 of file nfmmodsettings.h.
Referenced by NFMMod::applyAudioSampleRate(), NFMMod::applySettings(), deserialize(), NFMModGUI::displaySettings(), NFMModGUI::on_toneFrequency_valueChanged(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().
bool NFMModSettings::m_useReverseAPI |
Definition at line 58 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), deserialize(), NFMMod::handleMessage(), NFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), and NFMMod::webapiSettingsPutPatch().
float NFMModSettings::m_volumeFactor |
Definition at line 46 of file nfmmodsettings.h.
Referenced by NFMMod::applySettings(), deserialize(), NFMModGUI::displaySettings(), NFMModGUI::on_volume_valueChanged(), NFMMod::pullAF(), resetToDefaults(), serialize(), NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().