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 <udpsinksettings.h>
Public Types | |
enum | SampleFormat { FormatIQ16, FormatIQ24, FormatNFM, FormatNFMMono, FormatLSB, FormatUSB, FormatLSBMono, FormatUSBMono, FormatAMMono, FormatAMNoDCMono, FormatAMBPFMono, FormatNone } |
Public Member Functions | |
UDPSinkSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setSpectrumGUI (Serializable *spectrumGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
float | m_outputSampleRate |
SampleFormat | m_sampleFormat |
int64_t | m_inputFrequencyOffset |
float | m_rfBandwidth |
int | m_fmDeviation |
bool | m_channelMute |
float | m_gain |
int | m_squelchdB |
power dB More... | |
int | m_squelchGate |
100ths seconds More... | |
bool | m_squelchEnabled |
bool | m_agc |
bool | m_audioActive |
bool | m_audioStereo |
int | m_volume |
quint32 | m_rgbColor |
QString | m_udpAddress |
uint16_t | m_udpPort |
uint16_t | m_audioPort |
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 27 of file udpsinksettings.h.
Enumerator | |
---|---|
FormatIQ16 | |
FormatIQ24 | |
FormatNFM | |
FormatNFMMono | |
FormatLSB | |
FormatUSB | |
FormatLSBMono | |
FormatUSBMono | |
FormatAMMono | |
FormatAMNoDCMono | |
FormatAMBPFMono | |
FormatNone |
Definition at line 29 of file udpsinksettings.h.
UDPSinkSettings::UDPSinkSettings | ( | ) |
Definition at line 25 of file udpsinksettings.cpp.
References resetToDefaults().
bool UDPSinkSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 99 of file udpsinksettings.cpp.
References Serializable::deserialize(), FormatIQ16, FormatNone, SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_agc, m_audioActive, m_audioPort, m_audioStereo, m_channelMarker, m_fmDeviation, m_gain, m_inputFrequencyOffset, m_outputSampleRate, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_sampleFormat, m_spectrumGUI, m_squelchdB, m_squelchGate, m_title, m_udpAddress, m_udpPort, m_useReverseAPI, m_volume, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readReal(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by UDPSinkGUI::deserialize(), UDPSink::deserialize(), and setSpectrumGUI().
void UDPSinkSettings::resetToDefaults | ( | ) |
Definition at line 32 of file udpsinksettings.cpp.
References FormatIQ16, m_agc, m_audioActive, m_audioPort, m_audioStereo, m_channelMute, m_fmDeviation, m_gain, m_inputFrequencyOffset, m_outputSampleRate, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_sampleFormat, m_squelchdB, m_squelchEnabled, m_squelchGate, m_title, m_udpAddress, m_udpPort, m_useReverseAPI, and m_volume.
Referenced by deserialize(), UDPSink::deserialize(), UDPSinkGUI::resetToDefaults(), and UDPSinkSettings().
QByteArray UDPSinkSettings::serialize | ( | ) | const |
Definition at line 60 of file udpsinksettings.cpp.
References SimpleSerializer::final(), m_agc, m_audioActive, m_audioPort, m_audioStereo, m_channelMarker, m_fmDeviation, m_gain, m_inputFrequencyOffset, m_outputSampleRate, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_sampleFormat, m_spectrumGUI, m_squelchdB, m_squelchGate, m_title, m_udpAddress, m_udpPort, m_useReverseAPI, m_volume, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeReal(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by UDPSinkGUI::serialize(), UDPSink::serialize(), and setSpectrumGUI().
|
inline |
Definition at line 77 of file udpsinksettings.h.
Referenced by UDPSinkGUI::UDPSinkGUI().
|
inline |
Definition at line 78 of file udpsinksettings.h.
References deserialize(), and serialize().
Referenced by UDPSinkGUI::UDPSinkGUI().
bool UDPSinkSettings::m_agc |
Definition at line 54 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSink::feed(), UDPSinkGUI::on_agc_toggled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
bool UDPSinkSettings::m_audioActive |
Definition at line 55 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), UDPSink::audioReadyRead(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_audioActive_toggled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
uint16_t UDPSinkSettings::m_audioPort |
Definition at line 62 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_inputUDPAudioPort_editingFinished(), resetToDefaults(), serialize(), UDPSink::UDPSink(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
bool UDPSinkSettings::m_audioStereo |
Definition at line 56 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), UDPSink::audioReadyRead(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_audioStereo_toggled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
Serializable* UDPSinkSettings::m_channelMarker |
Definition at line 72 of file udpsinksettings.h.
Referenced by deserialize(), and serialize().
bool UDPSinkSettings::m_channelMute |
Definition at line 49 of file udpsinksettings.h.
Referenced by resetToDefaults(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
int UDPSinkSettings::m_fmDeviation |
Definition at line 48 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_fmDeviation_textEdited(), resetToDefaults(), serialize(), UDPSink::UDPSink(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
float UDPSinkSettings::m_gain |
Definition at line 50 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSink::feed(), UDPSinkGUI::on_gain_valueChanged(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
int64_t UDPSinkSettings::m_inputFrequencyOffset |
Definition at line 46 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), UDPSinkGUI::channelMarkerChangedByCursor(), deserialize(), UDPSinkGUI::displaySettings(), UDPSink::getCenterFrequency(), UDPSink::getStreamCenterFrequency(), UDPSinkGUI::on_deltaFrequency_changed(), UDPSinkGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
float UDPSinkSettings::m_outputSampleRate |
Definition at line 44 of file udpsinksettings.h.
Referenced by UDPSink::applyChannelSettings(), UDPSinkGUI::applySettings(), UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSink::feed(), UDPSinkGUI::on_applyBtn_clicked(), UDPSinkGUI::on_rfBandwidth_textEdited(), UDPSinkGUI::on_sampleRate_textEdited(), resetToDefaults(), serialize(), UDPSink::UDPSink(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
QString UDPSinkSettings::m_reverseAPIAddress |
Definition at line 67 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
uint16_t UDPSinkSettings::m_reverseAPIChannelIndex |
Definition at line 70 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
uint16_t UDPSinkSettings::m_reverseAPIDeviceIndex |
Definition at line 69 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
uint16_t UDPSinkSettings::m_reverseAPIPort |
Definition at line 68 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
float UDPSinkSettings::m_rfBandwidth |
Definition at line 47 of file udpsinksettings.h.
Referenced by UDPSink::applyChannelSettings(), UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_applyBtn_clicked(), UDPSinkGUI::on_rfBandwidth_textEdited(), resetToDefaults(), serialize(), UDPSink::UDPSink(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
quint32 UDPSinkSettings::m_rgbColor |
Definition at line 58 of file udpsinksettings.h.
Referenced by deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSinkGUI::UDPSinkGUI(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
SampleFormat UDPSinkSettings::m_sampleFormat |
Definition at line 45 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSink::feed(), resetToDefaults(), serialize(), UDPSinkGUI::setSampleFormat(), UDPSink::udpWrite(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
Serializable* UDPSinkSettings::m_spectrumGUI |
Definition at line 73 of file udpsinksettings.h.
Referenced by deserialize(), and serialize().
int UDPSinkSettings::m_squelchdB |
power dB
Definition at line 51 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_squelch_valueChanged(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
bool UDPSinkSettings::m_squelchEnabled |
Definition at line 53 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), UDPSink::calculateSquelch(), UDPSinkGUI::on_squelch_valueChanged(), resetToDefaults(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
int UDPSinkSettings::m_squelchGate |
100ths seconds
Definition at line 52 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_squelchGate_valueChanged(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
QString UDPSinkSettings::m_title |
Definition at line 64 of file udpsinksettings.h.
Referenced by deserialize(), UDPSinkGUI::displaySettings(), UDPSink::getTitle(), UDPSinkGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
QString UDPSinkSettings::m_udpAddress |
Definition at line 60 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_outputUDPAddress_editingFinished(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
uint16_t UDPSinkSettings::m_udpPort |
Definition at line 61 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_outputUDPPort_editingFinished(), resetToDefaults(), serialize(), UDPSink::UDPSink(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().
bool UDPSinkSettings::m_useReverseAPI |
Definition at line 66 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), deserialize(), UDPSinkGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), and UDPSink::webapiSettingsPutPatch().
int UDPSinkSettings::m_volume |
Definition at line 57 of file udpsinksettings.h.
Referenced by UDPSink::applySettings(), UDPSink::audioReadyRead(), deserialize(), UDPSinkGUI::displaySettings(), UDPSinkGUI::on_volume_valueChanged(), resetToDefaults(), serialize(), UDPSink::webapiFormatChannelSettings(), UDPSink::webapiReverseSendSettings(), and UDPSink::webapiSettingsPutPatch().