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 <udpsourcesettings.h>
Public Types | |
enum | SampleFormat { FormatSnLE, FormatNFM, FormatLSB, FormatUSB, FormatAM, FormatNone } |
Public Member Functions | |
UDPSourceSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setSpectrumGUI (Serializable *spectrumGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
SampleFormat | m_sampleFormat |
Real | m_inputSampleRate |
qint64 | m_inputFrequencyOffset |
Real | m_rfBandwidth |
Real | m_lowCutoff |
int | m_fmDeviation |
Real | m_amModFactor |
bool | m_channelMute |
Real | m_gainIn |
Real | m_gainOut |
Real | m_squelch |
squared magnitude More... | |
Real | m_squelchGate |
seconds More... | |
bool | m_squelchEnabled |
bool | m_autoRWBalance |
bool | m_stereoInput |
quint32 | m_rgbColor |
QString | m_udpAddress |
uint16_t | m_udpPort |
QString | m_title |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Serializable * | m_spectrumGUI |
Definition at line 29 of file udpsourcesettings.h.
Enumerator | |
---|---|
FormatSnLE | |
FormatNFM | |
FormatLSB | |
FormatUSB | |
FormatAM | |
FormatNone |
Definition at line 31 of file udpsourcesettings.h.
UDPSourceSettings::UDPSourceSettings | ( | ) |
Definition at line 26 of file udpsourcesettings.cpp.
References resetToDefaults().
bool UDPSourceSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 97 of file udpsourcesettings.cpp.
References Serializable::deserialize(), FormatNone, SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_amModFactor, m_autoRWBalance, m_channelMarker, m_fmDeviation, m_gainIn, m_gainOut, m_inputFrequencyOffset, m_inputSampleRate, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_sampleFormat, m_spectrumGUI, m_squelch, m_squelchEnabled, m_squelchGate, m_stereoInput, m_title, m_udpAddress, m_udpPort, m_useReverseAPI, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readReal(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by UDPSourceGUI::deserialize(), UDPSource::deserialize(), and setSpectrumGUI().
void UDPSourceSettings::resetToDefaults | ( | ) |
Definition at line 33 of file udpsourcesettings.cpp.
References FormatSnLE, m_amModFactor, m_autoRWBalance, m_channelMute, m_fmDeviation, m_gainIn, m_gainOut, m_inputFrequencyOffset, m_inputSampleRate, m_lowCutoff, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_sampleFormat, m_squelch, m_squelchEnabled, m_squelchGate, m_stereoInput, m_title, m_udpAddress, m_udpPort, and m_useReverseAPI.
Referenced by deserialize(), UDPSource::deserialize(), UDPSourceGUI::resetToDefaults(), and UDPSourceSettings().
QByteArray UDPSourceSettings::serialize | ( | ) | const |
Definition at line 61 of file udpsourcesettings.cpp.
References SimpleSerializer::final(), m_amModFactor, m_autoRWBalance, m_channelMarker, m_fmDeviation, m_gainIn, m_gainOut, m_inputFrequencyOffset, m_inputSampleRate, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_sampleFormat, m_spectrumGUI, m_squelch, m_squelchGate, m_stereoInput, m_title, m_udpAddress, m_udpPort, m_useReverseAPI, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeReal(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by UDPSourceGUI::serialize(), UDPSource::serialize(), and setSpectrumGUI().
|
inline |
Definition at line 73 of file udpsourcesettings.h.
|
inline |
Definition at line 74 of file udpsourcesettings.h.
References deserialize(), and serialize().
Real UDPSourceSettings::m_amModFactor |
Definition at line 46 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSource::modulateSample(), UDPSourceGUI::on_amModPercent_textEdited(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
bool UDPSourceSettings::m_autoRWBalance |
Definition at line 53 of file udpsourcesettings.h.
Referenced by UDPSource::applyChannelSettings(), UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_autoRWBalance_toggled(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
Serializable* UDPSourceSettings::m_channelMarker |
Definition at line 68 of file udpsourcesettings.h.
Referenced by deserialize(), and serialize().
bool UDPSourceSettings::m_channelMute |
Definition at line 47 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_channelMute_toggled(), UDPSource::pull(), resetToDefaults(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
int UDPSourceSettings::m_fmDeviation |
Definition at line 45 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSource::modulateSample(), UDPSourceGUI::on_fmDeviation_textEdited(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
Real UDPSourceSettings::m_gainIn |
Definition at line 48 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_gainIn_valueChanged(), UDPSource::readMonoSample(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
Real UDPSourceSettings::m_gainOut |
Definition at line 49 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSource::modulateSample(), UDPSourceGUI::on_gainOut_valueChanged(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
qint64 UDPSourceSettings::m_inputFrequencyOffset |
Definition at line 42 of file udpsourcesettings.h.
Referenced by UDPSourceGUI::applySettings(), UDPSource::applySettings(), UDPSourceGUI::channelMarkerChangedByCursor(), deserialize(), UDPSourceGUI::displaySettings(), UDPSource::getCenterFrequency(), UDPSource::getStreamCenterFrequency(), UDPSourceGUI::on_deltaFrequency_changed(), UDPSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
Real UDPSourceSettings::m_inputSampleRate |
Definition at line 41 of file udpsourcesettings.h.
Referenced by UDPSource::applyChannelSettings(), UDPSourceGUI::applySettings(), UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSource::handleMessage(), UDPSource::modulateSample(), UDPSourceGUI::on_applyBtn_clicked(), UDPSourceGUI::on_rfBandwidth_textEdited(), UDPSourceGUI::on_sampleRate_textEdited(), resetToDefaults(), serialize(), UDPSource::UDPSource(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
Real UDPSourceSettings::m_lowCutoff |
Definition at line 44 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), resetToDefaults(), UDPSource::UDPSource(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
QString UDPSourceSettings::m_reverseAPIAddress |
Definition at line 63 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
uint16_t UDPSourceSettings::m_reverseAPIChannelIndex |
Definition at line 66 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
uint16_t UDPSourceSettings::m_reverseAPIDeviceIndex |
Definition at line 65 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
uint16_t UDPSourceSettings::m_reverseAPIPort |
Definition at line 64 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
Real UDPSourceSettings::m_rfBandwidth |
Definition at line 43 of file udpsourcesettings.h.
Referenced by UDPSource::applyChannelSettings(), UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_applyBtn_clicked(), UDPSourceGUI::on_rfBandwidth_textEdited(), resetToDefaults(), serialize(), UDPSource::UDPSource(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
quint32 UDPSourceSettings::m_rgbColor |
Definition at line 55 of file udpsourcesettings.h.
Referenced by UDPSourceGUI::displaySettings(), UDPSourceGUI::onMenuDialogCalled(), resetToDefaults(), UDPSourceGUI::UDPSourceGUI(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
SampleFormat UDPSourceSettings::m_sampleFormat |
Definition at line 40 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSource::modulateSample(), resetToDefaults(), serialize(), UDPSourceGUI::setSampleFormat(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
Serializable* UDPSourceSettings::m_spectrumGUI |
Definition at line 69 of file udpsourcesettings.h.
Referenced by deserialize(), and serialize().
Real UDPSourceSettings::m_squelch |
squared magnitude
Definition at line 50 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_squelch_valueChanged(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
bool UDPSourceSettings::m_squelchEnabled |
Definition at line 52 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), UDPSource::calculateSquelch(), deserialize(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_squelch_valueChanged(), resetToDefaults(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
Real UDPSourceSettings::m_squelchGate |
seconds
Definition at line 51 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_squelchGate_valueChanged(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
bool UDPSourceSettings::m_stereoInput |
Definition at line 54 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_stereoInput_toggled(), UDPSource::readMonoSample(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
QString UDPSourceSettings::m_title |
Definition at line 60 of file udpsourcesettings.h.
Referenced by deserialize(), UDPSource::getTitle(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
QString UDPSourceSettings::m_udpAddress |
Definition at line 57 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_localUDPAddress_editingFinished(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
uint16_t UDPSourceSettings::m_udpPort |
Definition at line 58 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::displaySettings(), UDPSourceGUI::on_localUDPPort_editingFinished(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), UDPSource::webapiReverseSendSettings(), and UDPSource::webapiSettingsPutPatch().
bool UDPSourceSettings::m_useReverseAPI |
Definition at line 62 of file udpsourcesettings.h.
Referenced by UDPSource::applySettings(), deserialize(), UDPSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiSettingsPutPatch().