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 <udpsource.h>
Classes | |
class | MsgConfigureChannelizer |
class | MsgConfigureUDPSource |
class | MsgResetReadIndex |
class | MsgUDPSourceSpectrum |
Signals | |
void | levelChanged (qreal rmsLevel, qreal peakLevel, int numSamples) |
Public Member Functions | |
UDPSource (DeviceAPI *deviceAPI) | |
virtual | ~UDPSource () |
virtual void | destroy () |
void | setSpectrumSink (BasebandSampleSink *spectrum) |
virtual void | start () |
virtual void | stop () |
virtual void | pull (Sample &sample) |
virtual bool | handleMessage (const Message &cmd) |
Processing of a message. Returns true if message has actually been processed. More... | |
virtual void | getIdentifier (QString &id) |
virtual void | getTitle (QString &title) |
virtual qint64 | getCenterFrequency () const |
Applies to a default stream. More... | |
virtual QByteArray | serialize () const |
virtual bool | deserialize (const QByteArray &data) |
virtual int | getNbSinkStreams () const |
virtual int | getNbSourceStreams () const |
virtual qint64 | getStreamCenterFrequency (int streamIndex, bool sinkElseSource) const |
virtual int | webapiSettingsGet (SWGSDRangel::SWGChannelSettings &response, QString &errorMessage) |
virtual int | webapiSettingsPutPatch (bool force, const QStringList &channelSettingsKeys, SWGSDRangel::SWGChannelSettings &response, QString &errorMessage) |
virtual int | webapiReportGet (SWGSDRangel::SWGChannelReport &response, QString &errorMessage) |
double | getMagSq () const |
double | getInMagSq () const |
int32_t | getBufferGauge () const |
bool | getSquelchOpen () const |
void | setSpectrum (bool enabled) |
void | resetReadIndex () |
Public Member Functions inherited from BasebandSampleSource | |
BasebandSampleSource () | |
virtual | ~BasebandSampleSource () |
virtual void | pullAudio (int nbSamples) |
void | feed (SampleSourceFifo *sampleFifo, int nbSamples) |
SampleSourceFifo & | getSampleSourceFifo () |
MessageQueue * | getInputMessageQueue () |
Get the queue for asynchronous inbound communication. More... | |
virtual void | setMessageQueueToGUI (MessageQueue *queue) |
MessageQueue * | getMessageQueueToGUI () |
void | setDeviceSampleSourceFifo (SampleSourceFifo *deviceSampleFifo) |
Public Member Functions inherited from ChannelAPI | |
ChannelAPI (const QString &name, StreamType streamType) | |
virtual | ~ChannelAPI () |
virtual void | setName (const QString &name) |
virtual const QString & | getName () const |
int | getIndexInDeviceSet () const |
void | setIndexInDeviceSet (int indexInDeviceSet) |
int | getDeviceSetIndex () const |
void | setDeviceSetIndex (int deviceSetIndex) |
DeviceAPI * | getDeviceAPI () |
void | setDeviceAPI (DeviceAPI *deviceAPI) |
uint64_t | getUID () const |
StreamType | getStreamType () const |
Static Public Attributes | |
static const QString | m_channelIdURI = "sdrangel.channeltx.udpsource" |
static const QString | m_channelId = "UDPSource" |
Private Slots | |
void | networkManagerFinished (QNetworkReply *reply) |
Private Member Functions | |
void | applyChannelSettings (int basebandSampleRate, int outputSampleRate, int inputFrequencyOffset, bool force=false) |
void | applySettings (const UDPSourceSettings &settings, bool force=false) |
void | modulateSample () |
void | calculateLevel (Real sample) |
void | calculateLevel (Complex sample) |
void | webapiFormatChannelSettings (SWGSDRangel::SWGChannelSettings &response, const UDPSourceSettings &settings) |
void | webapiFormatChannelReport (SWGSDRangel::SWGChannelReport &response) |
void | webapiReverseSendSettings (QList< QString > &channelSettingsKeys, const UDPSourceSettings &settings, bool force) |
void | calculateSquelch (double value) |
void | initSquelch (bool open) |
void | readMonoSample (qint16 &t) |
Static Private Attributes | |
static const int | m_sampleRateAverageItems = 17 |
static const int | m_ssbFftLen = 1024 |
Additional Inherited Members | |
Public Types inherited from ChannelAPI | |
enum | StreamType { StreamSingleSink, StreamSingleSource, StreamMIMO } |
< This is the same enum as in PluginInterface More... | |
Protected Slots inherited from BasebandSampleSource | |
void | handleInputMessages () |
void | handleWriteToFifo (int nbSamples) |
void | handleWriteToDeviceFifo (int nbSamples) |
Protected Member Functions inherited from BasebandSampleSource | |
void | handleWriteToFifo (SampleSourceFifo *sampleFifo, int nbSamples) |
Protected Attributes inherited from BasebandSampleSource | |
MessageQueue | m_inputMessageQueue |
Queue for asynchronous inbound communication. More... | |
MessageQueue * | m_guiMessageQueue |
Input message queue to the GUI. More... | |
SampleSourceFifo | m_sampleFifo |
Internal FIFO for multi-channel processing. More... | |
SampleSourceFifo * | m_deviceSampleFifo |
Reference to the device FIFO for single channel processing. More... | |
Definition at line 42 of file udpsource.h.
UDPSource::UDPSource | ( | DeviceAPI * | deviceAPI | ) |
Definition at line 44 of file udpsource.cpp.
References DeviceAPI::addChannelSource(), DeviceAPI::addChannelSourceAPI(), applyChannelSettings(), applySettings(), m_basebandSampleRate, m_channelId, m_channelizer, m_deviceAPI, m_inputFrequencyOffset, BasebandSampleSource::m_inputMessageQueue, UDPSourceSettings::m_inputSampleRate, UDPSourceSettings::m_lowCutoff, m_networkManager, m_outputSampleRate, UDPSourceSettings::m_rfBandwidth, m_settings, m_ssbFftLen, m_SSBFilter, m_SSBFilterBuffer, m_threadedChannelizer, m_udpHandler, networkManagerFinished(), and UDPSourceUDPHandler::setFeedbackMessageQueue().
Referenced by UDPSource::MsgConfigureChannelizer::MsgConfigureChannelizer().
|
virtual |
Definition at line 90 of file udpsource.cpp.
References m_channelizer, m_deviceAPI, m_networkManager, m_SSBFilter, m_SSBFilterBuffer, m_threadedChannelizer, networkManagerFinished(), DeviceAPI::removeChannelSource(), and DeviceAPI::removeChannelSourceAPI().
Referenced by UDPSource::MsgConfigureChannelizer::MsgConfigureChannelizer().
|
private |
Definition at line 462 of file udpsource.cpp.
References Interpolator::create(), UDPSourceSettings::m_autoRWBalance, m_basebandSampleRate, m_carrierNco, m_inputFrequencyOffset, UDPSourceSettings::m_inputSampleRate, m_interpolator, m_interpolatorConsumed, m_interpolatorDistance, m_interpolatorDistanceRemain, m_outputSampleRate, UDPSourceSettings::m_rfBandwidth, m_settings, m_settingsMutex, and NCO::setFreq().
Referenced by handleMessage(), start(), and UDPSource().
|
private |
Definition at line 492 of file udpsource.cpp.
References UDPSourceUDPHandler::configureUDPLink(), Interpolator::create(), fftfilt::create_filter(), initSquelch(), m_actualInputSampleRate, UDPSourceSettings::m_amModFactor, UDPSourceSettings::m_autoRWBalance, UDPSourceSettings::m_channelMute, UDPSourceSettings::m_fmDeviation, UDPSourceSettings::m_gainIn, UDPSourceSettings::m_gainOut, m_inMovingAverage, UDPSourceSettings::m_inputFrequencyOffset, UDPSourceSettings::m_inputSampleRate, m_interpolator, m_interpolatorConsumed, m_interpolatorDistance, m_interpolatorDistanceRemain, m_levelCalcCount, m_levelNbSamples, m_levelSum, UDPSourceSettings::m_lowCutoff, m_outputSampleRate, m_peakLevel, UDPSourceSettings::m_reverseAPIAddress, UDPSourceSettings::m_reverseAPIChannelIndex, UDPSourceSettings::m_reverseAPIDeviceIndex, UDPSourceSettings::m_reverseAPIPort, UDPSourceSettings::m_rfBandwidth, UDPSourceSettings::m_sampleFormat, m_sampleRateAvgCounter, m_sampleRateSum, m_settings, m_settingsMutex, m_spectrumChunkCounter, m_spectrumChunkSize, UDPSourceSettings::m_squelch, m_squelch, UDPSourceSettings::m_squelchEnabled, UDPSourceSettings::m_squelchGate, m_squelchOpen, m_squelchThreshold, m_SSBFilter, UDPSourceSettings::m_stereoInput, UDPSourceSettings::m_udpAddress, m_udpHandler, UDPSourceSettings::m_udpPort, UDPSourceSettings::m_useReverseAPI, CalcDb::powerFromdB(), UDPSourceUDPHandler::resetReadIndex(), MovingAverage< Type >::resize(), UDPSourceUDPHandler::resizeBuffer(), UDPSourceUDPHandler::setAutoRWBalance(), and webapiReverseSendSettings().
Referenced by handleMessage(), and UDPSource().
|
private |
Definition at line 291 of file udpsource.cpp.
References levelChanged(), m_levelCalcCount, m_levelNbSamples, m_levelSum, m_peakLevel, leansdr::max(), and sqrt().
Referenced by modulateSample().
|
private |
Definition at line 310 of file udpsource.cpp.
References abs(), levelChanged(), m_levelCalcCount, m_levelNbSamples, m_levelSum, m_peakLevel, leansdr::max(), SDR_TX_SCALED, SDR_TX_SCALEF, and sqrt().
|
inlineprivate |
Definition at line 264 of file udpsource.h.
References UDPSourceSettings::m_squelchEnabled, and m_squelchThreshold.
Referenced by modulateSample().
|
virtual |
Implements ChannelAPI.
Definition at line 657 of file udpsource.cpp.
References UDPSource::MsgConfigureUDPSource::create(), UDPSourceSettings::deserialize(), BasebandSampleSource::m_inputMessageQueue, m_settings, MessageQueue::push(), and UDPSourceSettings::resetToDefaults().
Referenced by getCenterFrequency().
|
inlinevirtual |
|
inline |
Definition at line 137 of file udpsource.h.
References UDPSourceUDPHandler::getBufferGauge(), and m_udpHandler.
Referenced by UDPSourceGUI::tick(), and webapiFormatChannelReport().
|
inlinevirtual |
Applies to a default stream.
Implements ChannelAPI.
Definition at line 106 of file udpsource.h.
References deserialize(), UDPSourceSettings::m_inputFrequencyOffset, UDPSource::MsgConfigureUDPSource::m_settings, and serialize().
|
inlinevirtual |
|
inline |
Definition at line 136 of file udpsource.h.
References m_inMagsq.
Referenced by UDPSourceGUI::tick(), and webapiFormatChannelReport().
|
inline |
Definition at line 135 of file udpsource.h.
References m_magsq.
Referenced by UDPSourceGUI::tick(), and webapiFormatChannelReport().
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Definition at line 138 of file udpsource.h.
References m_squelchOpen, resetReadIndex(), and setSpectrum().
Referenced by UDPSourceGUI::tick().
|
inlinevirtual |
Implements ChannelAPI.
Definition at line 114 of file udpsource.h.
References UDPSourceSettings::m_inputFrequencyOffset, UDPSource::MsgConfigureUDPSource::m_settings, webapiReportGet(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
inlinevirtual |
Implements ChannelAPI.
Definition at line 105 of file udpsource.h.
References UDPSource::MsgConfigureUDPSource::m_settings, and UDPSourceSettings::m_title.
|
virtual |
Processing of a message. Returns true if message has actually been processed.
Implements BasebandSampleSource.
Definition at line 330 of file udpsource.cpp.
References applyChannelSettings(), applySettings(), UpChannelizer::configure(), UpChannelizer::MsgChannelizerNotification::getBasebandSampleRate(), UDPSource::MsgConfigureChannelizer::getCenterFrequency(), UDPSourceMessages::MsgSampleRateCorrection::getCorrectionFactor(), UDPSource::MsgUDPSourceSpectrum::getEnabled(), UDPSource::MsgConfigureUDPSource::getForce(), UpChannelizer::MsgChannelizerNotification::getFrequencyOffset(), BasebandSampleSource::getInputMessageQueue(), UDPSourceMessages::MsgSampleRateCorrection::getRawDeltaRatio(), UpChannelizer::MsgChannelizerNotification::getSampleRate(), UDPSource::MsgConfigureChannelizer::getSampleRate(), UDPSource::MsgConfigureUDPSource::getSettings(), BasebandSampleSink::handleMessage(), m_actualInputSampleRate, m_channelizer, UDPSourceSettings::m_inputSampleRate, m_interpolatorConsumed, m_interpolatorDistance, m_interpolatorDistanceRemain, m_outputSampleRate, m_sampleRateAverageItems, m_sampleRateAvgCounter, m_sampleRateSum, m_settings, m_settingsMutex, m_spectrum, m_spectrumEnabled, m_udpHandler, Message::match(), and UDPSourceUDPHandler::resetReadIndex().
Referenced by setSpectrumSink().
|
inlineprivate |
Definition at line 306 of file udpsource.h.
References m_squelchThreshold.
Referenced by applySettings(), modulateSample(), and pull().
|
signal |
Level changed
rmsLevel | RMS level in range 0.0 - 1.0 |
peakLevel | Peak level in range 0.0 - 1.0 |
numSamples | Number of audio samples analyzed |
Referenced by calculateLevel().
|
private |
Definition at line 159 of file udpsource.cpp.
References MovingAverage< Type >::average(), calculateLevel(), calculateSquelch(), cos(), MovingAverage< Type >::feed(), BasebandSampleSink::feed(), UDPSourceSettings::FormatAM, UDPSourceSettings::FormatLSB, UDPSourceSettings::FormatNFM, UDPSourceSettings::FormatSnLE, UDPSourceSettings::FormatUSB, initSquelch(), UDPSourceSettings::m_amModFactor, UDPSourceSettings::m_fmDeviation, UDPSourceSettings::m_gainOut, Sample::m_imag, m_inMagsq, m_inMovingAverage, UDPSourceSettings::m_inputSampleRate, m_modPhasor, m_modSample, M_PI, Sample::m_real, m_sampleBuffer, UDPSourceSettings::m_sampleFormat, m_settings, m_spectrum, m_spectrumChunkCounter, m_spectrumChunkSize, m_spectrumEnabled, m_squelchOpen, m_SSBFilter, m_SSBFilterBuffer, m_SSBFilterBufferIndex, m_udpHandler, readMonoSample(), UDPSourceUDPHandler::readSample(), fftfilt::runSSB(), SDR_TX_SCALED, SDR_TX_SCALEF, and sin().
Referenced by pull().
|
privateslot |
Definition at line 947 of file udpsource.cpp.
Referenced by UDPSource(), and ~UDPSource().
|
virtual |
Implements BasebandSampleSource.
Definition at line 113 of file udpsource.cpp.
References MovingAverage< Type >::average(), Interpolator::decimate(), MovingAverage< Type >::feed(), initSquelch(), Interpolator::interpolate(), m_carrierNco, UDPSourceSettings::m_channelMute, Sample::m_imag, m_interpolator, m_interpolatorDistance, m_interpolatorDistanceRemain, m_magsq, m_modSample, m_movingAverage, Sample::m_real, m_settings, m_settingsMutex, modulateSample(), NCO::nextIQ(), and SDR_TX_SCALED.
Referenced by setSpectrumSink().
|
inlineprivate |
Definition at line 322 of file udpsource.h.
References AudioSample::l, UDPSourceSettings::m_gainIn, UDPSourceSettings::m_stereoInput, AudioSample::r, and UDPSourceUDPHandler::readSample().
Referenced by modulateSample().
void UDPSource::resetReadIndex | ( | ) |
Definition at line 456 of file udpsource.cpp.
References UDPSource::MsgResetReadIndex::create(), BasebandSampleSource::getInputMessageQueue(), and MessageQueue::push().
Referenced by getSquelchOpen(), and UDPSourceGUI::on_resetUDPReadIndex_clicked().
|
virtual |
Implements ChannelAPI.
Definition at line 652 of file udpsource.cpp.
References m_settings, and UDPSourceSettings::serialize().
Referenced by getCenterFrequency().
void UDPSource::setSpectrum | ( | bool | enabled | ) |
Definition at line 450 of file udpsource.cpp.
References UDPSource::MsgUDPSourceSpectrum::create(), BasebandSampleSource::getInputMessageQueue(), and MessageQueue::push().
Referenced by getSquelchOpen(), and UDPSourceGUI::onWidgetRolled().
|
inline |
Definition at line 97 of file udpsource.h.
References handleMessage(), m_spectrum, pull(), start(), and stop().
Referenced by UDPSourceGUI::UDPSourceGUI().
|
virtual |
Implements BasebandSampleSource.
Definition at line 102 of file udpsource.cpp.
References applyChannelSettings(), m_basebandSampleRate, m_inputFrequencyOffset, m_outputSampleRate, m_udpHandler, and UDPSourceUDPHandler::start().
Referenced by setSpectrumSink().
|
virtual |
Implements BasebandSampleSource.
Definition at line 108 of file udpsource.cpp.
References m_udpHandler, and UDPSourceUDPHandler::stop().
Referenced by setSpectrumSink().
|
private |
Definition at line 849 of file udpsource.cpp.
References CalcDb::dbPower(), getBufferGauge(), getInMagSq(), getMagSq(), SWGSDRangel::SWGChannelReport::getUdpSourceReport(), m_outputSampleRate, m_squelchOpen, SWGSDRangel::SWGUDPSourceReport::setBufferGauge(), SWGSDRangel::SWGUDPSourceReport::setChannelPowerDb(), SWGSDRangel::SWGUDPSourceReport::setChannelSampleRate(), SWGSDRangel::SWGUDPSourceReport::setInputPowerDb(), and SWGSDRangel::SWGUDPSourceReport::setSquelch().
Referenced by webapiReportGet().
|
private |
Definition at line 803 of file udpsource.cpp.
References SWGSDRangel::SWGUDPSourceSettings::getReverseApiAddress(), SWGSDRangel::SWGUDPSourceSettings::getTitle(), SWGSDRangel::SWGUDPSourceSettings::getUdpAddress(), SWGSDRangel::SWGChannelSettings::getUdpSourceSettings(), UDPSourceSettings::m_amModFactor, UDPSourceSettings::m_autoRWBalance, UDPSourceSettings::m_channelMute, UDPSourceSettings::m_fmDeviation, UDPSourceSettings::m_gainIn, UDPSourceSettings::m_gainOut, UDPSourceSettings::m_inputFrequencyOffset, UDPSourceSettings::m_inputSampleRate, UDPSourceSettings::m_lowCutoff, UDPSourceSettings::m_reverseAPIAddress, UDPSourceSettings::m_reverseAPIChannelIndex, UDPSourceSettings::m_reverseAPIDeviceIndex, UDPSourceSettings::m_reverseAPIPort, UDPSourceSettings::m_rfBandwidth, UDPSourceSettings::m_rgbColor, UDPSourceSettings::m_sampleFormat, UDPSourceSettings::m_squelch, UDPSourceSettings::m_squelchEnabled, UDPSourceSettings::m_squelchGate, UDPSourceSettings::m_stereoInput, UDPSourceSettings::m_title, UDPSourceSettings::m_udpAddress, UDPSourceSettings::m_udpPort, UDPSourceSettings::m_useReverseAPI, SWGSDRangel::SWGUDPSourceSettings::setAmModFactor(), SWGSDRangel::SWGUDPSourceSettings::setAutoRwBalance(), SWGSDRangel::SWGUDPSourceSettings::setChannelMute(), SWGSDRangel::SWGUDPSourceSettings::setFmDeviation(), SWGSDRangel::SWGUDPSourceSettings::setGainIn(), SWGSDRangel::SWGUDPSourceSettings::setGainOut(), SWGSDRangel::SWGUDPSourceSettings::setInputFrequencyOffset(), SWGSDRangel::SWGUDPSourceSettings::setInputSampleRate(), SWGSDRangel::SWGUDPSourceSettings::setLowCutoff(), SWGSDRangel::SWGUDPSourceSettings::setReverseApiAddress(), SWGSDRangel::SWGUDPSourceSettings::setReverseApiChannelIndex(), SWGSDRangel::SWGUDPSourceSettings::setReverseApiDeviceIndex(), SWGSDRangel::SWGUDPSourceSettings::setReverseApiPort(), SWGSDRangel::SWGUDPSourceSettings::setRfBandwidth(), SWGSDRangel::SWGUDPSourceSettings::setRgbColor(), SWGSDRangel::SWGUDPSourceSettings::setSampleFormat(), SWGSDRangel::SWGUDPSourceSettings::setSquelch(), SWGSDRangel::SWGUDPSourceSettings::setSquelchEnabled(), SWGSDRangel::SWGUDPSourceSettings::setSquelchGate(), SWGSDRangel::SWGUDPSourceSettings::setStereoInput(), SWGSDRangel::SWGUDPSourceSettings::setTitle(), SWGSDRangel::SWGUDPSourceSettings::setUdpAddress(), SWGSDRangel::SWGUDPSourceSettings::setUdpPort(), and SWGSDRangel::SWGUDPSourceSettings::setUseReverseApi().
Referenced by webapiSettingsGet(), and webapiSettingsPutPatch().
|
virtual |
Reimplemented from ChannelAPI.
Definition at line 792 of file udpsource.cpp.
References SWGSDRangel::SWGChannelReport::getUdpSourceReport(), SWGSDRangel::SWGUDPSourceReport::init(), SWGSDRangel::SWGChannelReport::setUdpSourceReport(), and webapiFormatChannelReport().
Referenced by getStreamCenterFrequency().
|
private |
Definition at line 858 of file udpsource.cpp.
References SWGSDRangel::SWGChannelSettings::asJson(), ChannelAPI::getDeviceSetIndex(), ChannelAPI::getIndexInDeviceSet(), SWGSDRangel::SWGChannelSettings::getUdpSourceSettings(), UDPSourceSettings::m_amModFactor, UDPSourceSettings::m_autoRWBalance, UDPSourceSettings::m_channelMute, UDPSourceSettings::m_fmDeviation, UDPSourceSettings::m_gainIn, UDPSourceSettings::m_gainOut, UDPSourceSettings::m_inputFrequencyOffset, UDPSourceSettings::m_inputSampleRate, UDPSourceSettings::m_lowCutoff, m_networkManager, m_networkRequest, UDPSourceSettings::m_reverseAPIAddress, UDPSourceSettings::m_reverseAPIChannelIndex, UDPSourceSettings::m_reverseAPIDeviceIndex, UDPSourceSettings::m_reverseAPIPort, UDPSourceSettings::m_rfBandwidth, UDPSourceSettings::m_rgbColor, UDPSourceSettings::m_sampleFormat, UDPSourceSettings::m_squelch, UDPSourceSettings::m_squelchEnabled, UDPSourceSettings::m_squelchGate, UDPSourceSettings::m_stereoInput, UDPSourceSettings::m_title, UDPSourceSettings::m_udpAddress, UDPSourceSettings::m_udpPort, SWGSDRangel::SWGUDPSourceSettings::setAmModFactor(), SWGSDRangel::SWGUDPSourceSettings::setAutoRwBalance(), SWGSDRangel::SWGUDPSourceSettings::setChannelMute(), SWGSDRangel::SWGChannelSettings::setChannelType(), SWGSDRangel::SWGChannelSettings::setDirection(), SWGSDRangel::SWGUDPSourceSettings::setFmDeviation(), SWGSDRangel::SWGUDPSourceSettings::setGainIn(), SWGSDRangel::SWGUDPSourceSettings::setGainOut(), SWGSDRangel::SWGUDPSourceSettings::setInputFrequencyOffset(), SWGSDRangel::SWGUDPSourceSettings::setInputSampleRate(), SWGSDRangel::SWGUDPSourceSettings::setLowCutoff(), SWGSDRangel::SWGChannelSettings::setOriginatorChannelIndex(), SWGSDRangel::SWGChannelSettings::setOriginatorDeviceSetIndex(), SWGSDRangel::SWGUDPSourceSettings::setRfBandwidth(), SWGSDRangel::SWGUDPSourceSettings::setRgbColor(), SWGSDRangel::SWGUDPSourceSettings::setSampleFormat(), SWGSDRangel::SWGUDPSourceSettings::setSquelch(), SWGSDRangel::SWGUDPSourceSettings::setSquelchEnabled(), SWGSDRangel::SWGUDPSourceSettings::setSquelchGate(), SWGSDRangel::SWGUDPSourceSettings::setStereoInput(), SWGSDRangel::SWGUDPSourceSettings::setTitle(), SWGSDRangel::SWGUDPSourceSettings::setUdpAddress(), SWGSDRangel::SWGUDPSourceSettings::setUdpPort(), and SWGSDRangel::SWGChannelSettings::setUdpSourceSettings().
Referenced by applySettings().
|
virtual |
Reimplemented from ChannelAPI.
Definition at line 674 of file udpsource.cpp.
References SWGSDRangel::SWGChannelSettings::getUdpSourceSettings(), SWGSDRangel::SWGUDPSourceSettings::init(), m_settings, SWGSDRangel::SWGChannelSettings::setUdpSourceSettings(), and webapiFormatChannelSettings().
Referenced by getStreamCenterFrequency().
|
virtual |
Reimplemented from ChannelAPI.
Definition at line 685 of file udpsource.cpp.
References UDPSource::MsgConfigureUDPSource::create(), UDPSource::MsgConfigureChannelizer::create(), SWGSDRangel::SWGUDPSourceSettings::getAmModFactor(), SWGSDRangel::SWGUDPSourceSettings::getAutoRwBalance(), SWGSDRangel::SWGUDPSourceSettings::getChannelMute(), SWGSDRangel::SWGUDPSourceSettings::getFmDeviation(), SWGSDRangel::SWGUDPSourceSettings::getGainIn(), SWGSDRangel::SWGUDPSourceSettings::getGainOut(), SWGSDRangel::SWGUDPSourceSettings::getInputFrequencyOffset(), SWGSDRangel::SWGUDPSourceSettings::getInputSampleRate(), SWGSDRangel::SWGUDPSourceSettings::getLowCutoff(), SWGSDRangel::SWGUDPSourceSettings::getReverseApiAddress(), SWGSDRangel::SWGUDPSourceSettings::getReverseApiChannelIndex(), SWGSDRangel::SWGUDPSourceSettings::getReverseApiDeviceIndex(), SWGSDRangel::SWGUDPSourceSettings::getReverseApiPort(), SWGSDRangel::SWGUDPSourceSettings::getRfBandwidth(), SWGSDRangel::SWGUDPSourceSettings::getRgbColor(), SWGSDRangel::SWGUDPSourceSettings::getSampleFormat(), SWGSDRangel::SWGUDPSourceSettings::getSquelch(), SWGSDRangel::SWGUDPSourceSettings::getSquelchEnabled(), SWGSDRangel::SWGUDPSourceSettings::getSquelchGate(), SWGSDRangel::SWGUDPSourceSettings::getStereoInput(), SWGSDRangel::SWGUDPSourceSettings::getTitle(), SWGSDRangel::SWGUDPSourceSettings::getUdpAddress(), SWGSDRangel::SWGUDPSourceSettings::getUdpPort(), SWGSDRangel::SWGChannelSettings::getUdpSourceSettings(), SWGSDRangel::SWGUDPSourceSettings::getUseReverseApi(), UDPSourceSettings::m_amModFactor, UDPSourceSettings::m_autoRWBalance, UDPSourceSettings::m_channelMute, UDPSourceSettings::m_fmDeviation, UDPSourceSettings::m_gainIn, UDPSourceSettings::m_gainOut, BasebandSampleSource::m_guiMessageQueue, UDPSourceSettings::m_inputFrequencyOffset, BasebandSampleSource::m_inputMessageQueue, UDPSourceSettings::m_inputSampleRate, UDPSourceSettings::m_lowCutoff, UDPSourceSettings::m_reverseAPIAddress, UDPSourceSettings::m_reverseAPIChannelIndex, UDPSourceSettings::m_reverseAPIDeviceIndex, UDPSourceSettings::m_reverseAPIPort, UDPSourceSettings::m_rfBandwidth, UDPSourceSettings::m_rgbColor, UDPSourceSettings::m_sampleFormat, m_settings, UDPSourceSettings::m_squelch, UDPSourceSettings::m_squelchEnabled, UDPSourceSettings::m_squelchGate, UDPSourceSettings::m_stereoInput, UDPSourceSettings::m_title, UDPSourceSettings::m_udpAddress, UDPSourceSettings::m_udpPort, UDPSourceSettings::m_useReverseAPI, MessageQueue::push(), and webapiFormatChannelSettings().
Referenced by getStreamCenterFrequency().
|
private |
sample rate with UDP buffer skew compensation
Definition at line 227 of file udpsource.h.
Referenced by applySettings(), and handleMessage().
|
private |
Definition at line 200 of file udpsource.h.
Referenced by applyChannelSettings(), start(), and UDPSource().
|
private |
Definition at line 207 of file udpsource.h.
Referenced by applyChannelSettings(), and pull().
|
static |
Definition at line 144 of file udpsource.h.
Referenced by UDPSourcePlugin::initPlugin(), and UDPSource().
|
static |
Definition at line 143 of file udpsource.h.
Referenced by UDPSourcePlugin::initPlugin(), and UDPSourceGUI::UDPSourceGUI().
|
private |
Definition at line 198 of file udpsource.h.
Referenced by handleMessage(), UDPSource(), and ~UDPSource().
|
private |
Definition at line 196 of file udpsource.h.
Referenced by UDPSource(), and ~UDPSource().
|
private |
Definition at line 222 of file udpsource.h.
Referenced by getInMagSq(), and modulateSample().
|
private |
Definition at line 224 of file udpsource.h.
Referenced by applySettings(), and modulateSample().
|
private |
Definition at line 202 of file udpsource.h.
Referenced by applyChannelSettings(), start(), and UDPSource().
|
private |
Definition at line 216 of file udpsource.h.
Referenced by applyChannelSettings(), applySettings(), and pull().
|
private |
Definition at line 219 of file udpsource.h.
Referenced by applyChannelSettings(), applySettings(), and handleMessage().
|
private |
Definition at line 217 of file udpsource.h.
Referenced by applyChannelSettings(), applySettings(), handleMessage(), and pull().
|
private |
Definition at line 218 of file udpsource.h.
Referenced by applyChannelSettings(), applySettings(), handleMessage(), and pull().
|
private |
Definition at line 231 of file udpsource.h.
Referenced by applySettings(), and calculateLevel().
|
private |
Definition at line 234 of file udpsource.h.
Referenced by applySettings(), and calculateLevel().
|
private |
Definition at line 233 of file udpsource.h.
Referenced by applySettings(), and calculateLevel().
|
private |
Definition at line 221 of file udpsource.h.
Referenced by getMagSq(), and pull().
|
private |
Phasor for FM modulation.
Definition at line 241 of file udpsource.h.
Referenced by modulateSample().
|
private |
Definition at line 208 of file udpsource.h.
Referenced by modulateSample(), and pull().
|
private |
Definition at line 223 of file udpsource.h.
Referenced by pull().
|
private |
Definition at line 246 of file udpsource.h.
Referenced by UDPSource(), webapiReverseSendSettings(), and ~UDPSource().
|
private |
Definition at line 247 of file udpsource.h.
Referenced by webapiReverseSendSettings().
|
private |
Definition at line 201 of file udpsource.h.
Referenced by applyChannelSettings(), applySettings(), handleMessage(), start(), UDPSource(), and webapiFormatChannelReport().
|
private |
Definition at line 232 of file udpsource.h.
Referenced by applySettings(), and calculateLevel().
|
private |
Definition at line 212 of file udpsource.h.
Referenced by modulateSample().
|
staticprivate |
Definition at line 251 of file udpsource.h.
Referenced by handleMessage().
|
private |
Definition at line 229 of file udpsource.h.
Referenced by applySettings(), and handleMessage().
|
private |
Definition at line 228 of file udpsource.h.
Referenced by applySettings(), and handleMessage().
|
private |
Definition at line 203 of file udpsource.h.
Referenced by applyChannelSettings(), applySettings(), deserialize(), handleMessage(), modulateSample(), pull(), serialize(), UDPSource(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
private |
Definition at line 249 of file udpsource.h.
Referenced by applyChannelSettings(), applySettings(), handleMessage(), and pull().
|
private |
Definition at line 210 of file udpsource.h.
Referenced by handleMessage(), modulateSample(), and setSpectrumSink().
|
private |
Definition at line 214 of file udpsource.h.
Referenced by applySettings(), and modulateSample().
|
private |
Definition at line 213 of file udpsource.h.
Referenced by applySettings(), and modulateSample().
|
private |
Definition at line 211 of file udpsource.h.
Referenced by handleMessage(), and modulateSample().
|
private |
Definition at line 205 of file udpsource.h.
Referenced by applySettings().
|
private |
Definition at line 238 of file udpsource.h.
|
private |
Definition at line 236 of file udpsource.h.
Referenced by applySettings(), getSquelchOpen(), modulateSample(), and webapiFormatChannelReport().
|
private |
Definition at line 237 of file udpsource.h.
|
private |
Definition at line 239 of file udpsource.h.
Referenced by applySettings(), calculateSquelch(), and initSquelch().
|
staticprivate |
Definition at line 252 of file udpsource.h.
Referenced by UDPSource().
|
private |
Complex filter for SSB modulation.
Definition at line 242 of file udpsource.h.
Referenced by applySettings(), modulateSample(), UDPSource(), and ~UDPSource().
|
private |
Definition at line 243 of file udpsource.h.
Referenced by modulateSample(), UDPSource(), and ~UDPSource().
|
private |
Definition at line 244 of file udpsource.h.
Referenced by modulateSample().
|
private |
Definition at line 197 of file udpsource.h.
Referenced by UDPSource(), and ~UDPSource().
|
private |
Definition at line 226 of file udpsource.h.
Referenced by applySettings(), getBufferGauge(), handleMessage(), modulateSample(), start(), stop(), and UDPSource().