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 <amdemodsettings.h>
Public Types | |
enum | SyncAMOperation { SyncAMDSB, SyncAMUSB, SyncAMLSB } |
Public Member Functions | |
AMDemodSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
qint32 | m_inputFrequencyOffset |
Real | m_rfBandwidth |
Real | m_squelch |
Real | m_volume |
bool | m_audioMute |
bool | m_bandpassEnable |
quint32 | m_rgbColor |
QString | m_title |
Serializable * | m_channelMarker |
QString | m_audioDeviceName |
bool | m_pll |
SyncAMOperation | m_syncAMOperation |
int | m_streamIndex |
MIMO channel. Not relevant when connected to SI (single Rx). More... | |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Definition at line 25 of file amdemodsettings.h.
Enumerator | |
---|---|
SyncAMDSB | |
SyncAMUSB | |
SyncAMLSB |
Definition at line 27 of file amdemodsettings.h.
AMDemodSettings::AMDemodSettings | ( | ) |
Definition at line 25 of file amdemodsettings.cpp.
References resetToDefaults().
bool AMDemodSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 80 of file amdemodsettings.cpp.
References Serializable::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_audioDeviceName, m_bandpassEnable, m_channelMarker, AudioDeviceManager::m_defaultDeviceName, m_inputFrequencyOffset, m_pll, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_squelch, m_streamIndex, m_syncAMOperation, m_title, m_useReverseAPI, m_volume, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), resetToDefaults(), and SyncAMDSB.
Referenced by AMDemodGUI::deserialize(), AMDemod::deserialize(), and setChannelMarker().
void AMDemodSettings::resetToDefaults | ( | ) |
Definition at line 31 of file amdemodsettings.cpp.
References m_audioDeviceName, m_audioMute, m_bandpassEnable, AudioDeviceManager::m_defaultDeviceName, m_inputFrequencyOffset, m_pll, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_squelch, m_streamIndex, m_syncAMOperation, m_title, m_useReverseAPI, m_volume, and SyncAMDSB.
Referenced by AMDemodSettings(), deserialize(), AMDemod::deserialize(), and AMDemodGUI::resetToDefaults().
QByteArray AMDemodSettings::serialize | ( | ) | const |
Definition at line 52 of file amdemodsettings.cpp.
References SimpleSerializer::final(), m_audioDeviceName, m_bandpassEnable, m_channelMarker, m_inputFrequencyOffset, m_pll, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_squelch, m_streamIndex, m_syncAMOperation, m_title, m_useReverseAPI, m_volume, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by AMDemodGUI::serialize(), AMDemod::serialize(), and setChannelMarker().
|
inline |
Definition at line 55 of file amdemodsettings.h.
References deserialize(), and serialize().
Referenced by AMDemodGUI::AMDemodGUI().
QString AMDemodSettings::m_audioDeviceName |
Definition at line 43 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), AMDemodGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
bool AMDemodSettings::m_audioMute |
Definition at line 38 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), AMDemodGUI::displaySettings(), AMDemodGUI::on_audioMute_toggled(), AMDemod::processOneSample(), resetToDefaults(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
bool AMDemodSettings::m_bandpassEnable |
Definition at line 39 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::displaySettings(), AMDemodGUI::on_bandpassEnable_toggled(), AMDemod::processOneSample(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
Serializable* AMDemodSettings::m_channelMarker |
Definition at line 42 of file amdemodsettings.h.
Referenced by deserialize(), and serialize().
qint32 AMDemodSettings::m_inputFrequencyOffset |
Definition at line 34 of file amdemodsettings.h.
Referenced by AMDemod::applyAudioSampleRate(), AMDemod::applySettings(), AMDemodGUI::channelMarkerChangedByCursor(), deserialize(), AMDemodGUI::displaySettings(), AMDemod::getCenterFrequency(), AMDemod::getStreamCenterFrequency(), AMDemodGUI::on_deltaFrequency_changed(), AMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
bool AMDemodSettings::m_pll |
Definition at line 44 of file amdemodsettings.h.
Referenced by AMDemod::applyAudioSampleRate(), AMDemod::applySettings(), deserialize(), AMDemodGUI::displaySettings(), AMDemod::getPllLocked(), AMDemodGUI::on_pll_toggled(), AMDemod::processOneSample(), resetToDefaults(), serialize(), AMDemodGUI::tick(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
QString AMDemodSettings::m_reverseAPIAddress |
Definition at line 48 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
uint16_t AMDemodSettings::m_reverseAPIChannelIndex |
Definition at line 51 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
uint16_t AMDemodSettings::m_reverseAPIDeviceIndex |
Definition at line 50 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
uint16_t AMDemodSettings::m_reverseAPIPort |
Definition at line 49 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
Real AMDemodSettings::m_rfBandwidth |
Definition at line 35 of file amdemodsettings.h.
Referenced by AMDemod::AMDemod(), AMDemod::applyAudioSampleRate(), AMDemod::applyChannelSettings(), AMDemod::applySettings(), deserialize(), AMDemodGUI::displaySettings(), AMDemodGUI::on_rfBW_valueChanged(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
quint32 AMDemodSettings::m_rgbColor |
Definition at line 40 of file amdemodsettings.h.
Referenced by deserialize(), AMDemodGUI::displaySettings(), AMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
Real AMDemodSettings::m_squelch |
Definition at line 36 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::displaySettings(), AMDemodGUI::on_squelch_valueChanged(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
int AMDemodSettings::m_streamIndex |
MIMO channel. Not relevant when connected to SI (single Rx).
Definition at line 46 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::displayStreamIndex(), AMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
SyncAMOperation AMDemodSettings::m_syncAMOperation |
Definition at line 45 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::displaySettings(), AMDemodGUI::on_ssb_toggled(), AMDemod::processOneSample(), resetToDefaults(), AMDemodGUI::samSSBSelect(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
QString AMDemodSettings::m_title |
Definition at line 41 of file amdemodsettings.h.
Referenced by deserialize(), AMDemodGUI::displaySettings(), AMDemod::getTitle(), AMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().
bool AMDemodSettings::m_useReverseAPI |
Definition at line 47 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), and AMDemod::webapiSettingsPutPatch().
Real AMDemodSettings::m_volume |
Definition at line 37 of file amdemodsettings.h.
Referenced by AMDemod::applySettings(), deserialize(), AMDemodGUI::displaySettings(), AMDemodGUI::on_volume_valueChanged(), AMDemod::processOneSample(), resetToDefaults(), serialize(), AMDemod::webapiFormatChannelSettings(), AMDemod::webapiReverseSendSettings(), and AMDemod::webapiSettingsPutPatch().