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 <nfmmod.h>
Classes | |
class | MsgConfigureChannelizer |
class | MsgConfigureFileSourceName |
class | MsgConfigureFileSourceSeek |
class | MsgConfigureFileSourceStreamTiming |
class | MsgConfigureNFMMod |
class | MsgReportFileSourceStreamData |
class | MsgReportFileSourceStreamTiming |
Signals | |
void | levelChanged (qreal rmsLevel, qreal peakLevel, int numSamples) |
Public Member Functions | |
NFMMod (DeviceAPI *deviceAPI) | |
~NFMMod () | |
virtual void | destroy () |
virtual void | pull (Sample &sample) |
virtual void | pullAudio (int nbSamples) |
virtual void | start () |
virtual void | stop () |
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 |
CWKeyer * | getCWKeyer () |
Public Member Functions inherited from BasebandSampleSource | |
BasebandSampleSource () | |
virtual | ~BasebandSampleSource () |
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.modnfm" |
static const QString | m_channelId = "NFMMod" |
Private Types | |
enum | RateState { RSInitialFill, RSRunning } |
Private Slots | |
void | networkManagerFinished (QNetworkReply *reply) |
Private Member Functions | |
void | applyAudioSampleRate (int sampleRate) |
void | applyFeedbackAudioSampleRate (unsigned int sampleRate) |
void | processOneSample (Complex &ci) |
void | applyChannelSettings (int basebandSampleRate, int outputSampleRate, int inputFrequencyOffset, bool force=false) |
void | applySettings (const NFMModSettings &settings, bool force=false) |
void | pullAF (Real &sample) |
void | pushFeedback (Real sample) |
void | calculateLevel (Real &sample) |
void | modulateSample () |
void | openFileStream () |
void | seekFileStream (int seekPercentage) |
void | webapiFormatChannelSettings (SWGSDRangel::SWGChannelSettings &response, const NFMModSettings &settings) |
void | webapiFormatChannelReport (SWGSDRangel::SWGChannelReport &response) |
void | webapiReverseSendSettings (QList< QString > &channelSettingsKeys, const NFMModSettings &settings, bool force) |
void | webapiReverseSendCWSettings (const CWKeyerSettings &settings) |
Static Private Attributes | |
static const int | m_levelNbSamples = 480 |
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... | |
|
private |
Enumerator | |
---|---|
RSInitialFill | |
RSRunning |
Definition at line 265 of file nfmmod.h.
NFMMod::NFMMod | ( | DeviceAPI * | deviceAPI | ) |
Definition at line 55 of file nfmmod.cpp.
References AudioDeviceManager::addAudioSink(), AudioDeviceManager::addAudioSource(), DeviceAPI::addChannelSource(), DeviceAPI::addChannelSourceAPI(), applyChannelSettings(), applyFeedbackAudioSampleRate(), applySettings(), Lowpass< Type >::create(), DSPEngine::getAudioDeviceManager(), BasebandSampleSource::getInputMessageQueue(), AudioDeviceManager::getInputSampleRate(), AudioDeviceManager::getOutputSampleRate(), DSPEngine::instance(), m_audioBuffer, m_audioBufferFill, m_audioFifo, m_audioSampleRate, m_basebandSampleRate, m_channelId, m_channelizer, m_ctcssNco, m_cwKeyer, m_deviceAPI, m_feedbackAudioBuffer, m_feedbackAudioBufferFill, m_feedbackAudioFifo, m_feedbackAudioSampleRate, m_inputFrequencyOffset, m_lowpass, m_magsq, m_networkManager, m_outputSampleRate, m_settings, m_threadedChannelizer, m_toneNco, networkManagerFinished(), CWKeyer::reset(), NCOF::setFreq(), and CWKeyer::setSampleRate().
Referenced by NFMMod::MsgReportFileSourceStreamData::MsgReportFileSourceStreamData().
NFMMod::~NFMMod | ( | ) |
Definition at line 107 of file nfmmod.cpp.
References DSPEngine::getAudioDeviceManager(), DSPEngine::instance(), m_audioFifo, m_channelizer, m_deviceAPI, m_feedbackAudioFifo, m_networkManager, m_threadedChannelizer, networkManagerFinished(), AudioDeviceManager::removeAudioSink(), AudioDeviceManager::removeAudioSource(), DeviceAPI::removeChannelSource(), and DeviceAPI::removeChannelSourceAPI().
Referenced by NFMMod::MsgReportFileSourceStreamData::MsgReportFileSourceStreamData().
|
private |
Definition at line 495 of file nfmmod.cpp.
References applyFeedbackAudioSampleRate(), Bandpass< Type >::create(), Lowpass< Type >::create(), Interpolator::create(), NFMMod::MsgConfigureChannelizer::create(), NFMModSettings::getCTCSSFreq(), NFMModSettings::m_afBandwidth, m_audioSampleRate, m_bandpass, NFMModSettings::m_ctcssIndex, m_ctcssNco, m_cwKeyer, m_feedbackAudioSampleRate, NFMModSettings::m_inputFrequencyOffset, BasebandSampleSource::m_inputMessageQueue, m_interpolator, m_interpolatorConsumed, m_interpolatorDistance, m_interpolatorDistanceRemain, m_lowpass, m_outputSampleRate, NFMModSettings::m_rfBandwidth, m_settings, m_settingsMutex, NFMModSettings::m_toneFrequency, m_toneNco, MessageQueue::push(), NCOF::setFreq(), and CWKeyer::setSampleRate().
Referenced by applySettings(), and handleMessage().
|
private |
Definition at line 538 of file nfmmod.cpp.
References Interpolator::create(), m_audioSampleRate, m_basebandSampleRate, m_carrierNco, m_inputFrequencyOffset, m_interpolator, m_interpolatorConsumed, m_interpolatorDistance, m_interpolatorDistanceRemain, m_outputSampleRate, NFMModSettings::m_rfBandwidth, m_settings, m_settingsMutex, and NCO::setFreq().
Referenced by handleMessage(), NFMMod(), and start().
|
private |
Definition at line 521 of file nfmmod.cpp.
References Interpolator::create(), m_audioSampleRate, m_feedbackAudioSampleRate, m_feedbackInterpolator, m_feedbackInterpolatorConsumed, m_feedbackInterpolatorDistance, m_feedbackInterpolatorDistanceRemain, m_settingsMutex, and leansdr::min().
Referenced by applyAudioSampleRate(), applySettings(), handleMessage(), and NFMMod().
|
private |
Definition at line 568 of file nfmmod.cpp.
References AudioDeviceManager::addAudioSink(), AudioDeviceManager::addAudioSource(), applyAudioSampleRate(), applyFeedbackAudioSampleRate(), Lowpass< Type >::create(), Bandpass< Type >::create(), Interpolator::create(), DSPEngine::getAudioDeviceManager(), NFMModSettings::getCTCSSFreq(), AudioDeviceManager::getInputDeviceIndex(), BasebandSampleSource::getInputMessageQueue(), AudioDeviceManager::getInputSampleRate(), AudioDeviceManager::getOutputDeviceIndex(), AudioDeviceManager::getOutputSampleRate(), DSPEngine::instance(), NFMModSettings::m_afBandwidth, NFMModSettings::m_audioDeviceName, m_audioFifo, m_audioSampleRate, m_bandpass, NFMModSettings::m_channelMute, NFMModSettings::m_ctcssIndex, m_ctcssNco, NFMModSettings::m_ctcssOn, NFMModSettings::m_feedbackAudioDeviceName, m_feedbackAudioFifo, m_feedbackAudioSampleRate, NFMModSettings::m_fmDeviation, NFMModSettings::m_inputFrequencyOffset, m_interpolator, m_interpolatorConsumed, m_interpolatorDistance, m_interpolatorDistanceRemain, m_lowpass, NFMModSettings::m_modAFInput, m_outputSampleRate, NFMModSettings::m_playLoop, NFMModSettings::m_reverseAPIAddress, NFMModSettings::m_reverseAPIChannelIndex, NFMModSettings::m_reverseAPIDeviceIndex, NFMModSettings::m_reverseAPIPort, NFMModSettings::m_rfBandwidth, m_settings, m_settingsMutex, NFMModSettings::m_toneFrequency, m_toneNco, NFMModSettings::m_useReverseAPI, NFMModSettings::m_volumeFactor, NCOF::setFreq(), and webapiReverseSendSettings().
Referenced by handleMessage(), and NFMMod().
|
private |
Definition at line 315 of file nfmmod.cpp.
References levelChanged(), m_levelCalcCount, m_levelNbSamples, m_levelSum, m_peakLevel, leansdr::max(), and sqrt().
Referenced by modulateSample().
|
virtual |
Implements ChannelAPI.
Definition at line 702 of file nfmmod.cpp.
References NFMMod::MsgConfigureNFMMod::create(), NFMMod::MsgConfigureChannelizer::create(), NFMModSettings::deserialize(), NFMModSettings::m_inputFrequencyOffset, BasebandSampleSource::m_inputMessageQueue, m_settings, MessageQueue::push(), and NFMModSettings::resetToDefaults().
Referenced by getCenterFrequency().
|
inlinevirtual |
Implements ChannelAPI.
Definition at line 208 of file nfmmod.h.
References handleMessage(), pull(), pullAudio(), start(), and stop().
|
inlinevirtual |
Applies to a default stream.
Implements ChannelAPI.
Definition at line 218 of file nfmmod.h.
References deserialize(), NFMModSettings::m_inputFrequencyOffset, NFMMod::MsgConfigureNFMMod::m_settings, and serialize().
|
inline |
Definition at line 249 of file nfmmod.h.
References m_cwKeyer.
Referenced by NFMModGUI::NFMModGUI().
|
inlinevirtual |
|
inline |
Definition at line 247 of file nfmmod.h.
References m_magsq.
Referenced by NFMModGUI::tick(), and webapiFormatChannelReport().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements ChannelAPI.
Definition at line 226 of file nfmmod.h.
References NFMModSettings::m_inputFrequencyOffset, NFMMod::MsgConfigureNFMMod::m_settings, webapiReportGet(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
inlinevirtual |
Implements ChannelAPI.
Definition at line 217 of file nfmmod.h.
References NFMMod::MsgConfigureNFMMod::m_settings, and NFMModSettings::m_title.
|
virtual |
Processing of a message. Returns true if message has actually been processed.
Implements BasebandSampleSource.
Definition at line 347 of file nfmmod.cpp.
References applyAudioSampleRate(), applyChannelSettings(), applyFeedbackAudioSampleRate(), applySettings(), DSPConfigureAudio::AudioInput, DSPConfigureAudio::AudioOutput, UpChannelizer::configure(), NFMMod::MsgReportFileSourceStreamTiming::create(), DSPConfigureAudio::getAudioType(), UpChannelizer::MsgChannelizerNotification::getBasebandSampleRate(), NFMMod::MsgConfigureChannelizer::getCenterFrequency(), NFMMod::MsgConfigureFileSourceName::getFileName(), NFMMod::MsgConfigureNFMMod::getForce(), UpChannelizer::MsgChannelizerNotification::getFrequencyOffset(), BasebandSampleSource::getInputMessageQueue(), BasebandSampleSource::getMessageQueueToGUI(), NFMMod::MsgConfigureFileSourceSeek::getPercentage(), UpChannelizer::MsgChannelizerNotification::getSampleRate(), NFMMod::MsgConfigureChannelizer::getSampleRate(), DSPConfigureAudio::getSampleRate(), NFMMod::MsgConfigureNFMMod::getSettings(), CWKeyer::MsgConfigureCWKeyer::getSettings(), m_audioSampleRate, m_channelizer, m_fileName, m_fileSize, m_ifstream, m_settings, NFMModSettings::m_useReverseAPI, Message::match(), openFileStream(), MessageQueue::push(), seekFileStream(), and webapiReverseSendCWSettings().
Referenced by destroy().
|
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 177 of file nfmmod.cpp.
References calculateLevel(), cos(), Bandpass< Type >::filter(), m_audioBufferFill, m_audioSampleRate, m_bandpass, m_ctcssNco, NFMModSettings::m_ctcssOn, NFMModSettings::m_feedbackAudioEnable, NFMModSettings::m_feedbackVolumeFactor, NFMModSettings::m_fmDeviation, m_modPhasor, m_modSample, M_PI, m_settings, NCOF::next(), pullAF(), pushFeedback(), SDR_TX_SCALEF, and sin().
Referenced by pull().
|
privateslot |
Definition at line 1023 of file nfmmod.cpp.
Referenced by NFMMod(), and ~NFMMod().
|
private |
Definition at line 460 of file nfmmod.cpp.
References NFMMod::MsgReportFileSourceStreamData::create(), BasebandSampleSource::getMessageQueueToGUI(), m_fileName, m_fileSize, m_ifstream, m_recordLength, m_sampleRate, and MessageQueue::push().
Referenced by handleMessage().
|
private |
Definition at line 294 of file nfmmod.cpp.
References AudioFifo::clear(), m_feedbackAudioBuffer, m_feedbackAudioBufferFill, m_feedbackAudioFifo, m_feedbackInterpolatorDistance, and AudioFifo::write().
Referenced by pushFeedback().
|
virtual |
Implements BasebandSampleSource.
Definition at line 119 of file nfmmod.cpp.
References MovingAverageUtil< T, Total, N >::asDouble(), Interpolator::decimate(), Interpolator::interpolate(), m_carrierNco, NFMModSettings::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 destroy().
|
private |
Definition at line 204 of file nfmmod.cpp.
References CWKeyer::getCWSmoother(), CWSmoother::getFadeSample(), CWKeyer::getSample(), m_audioBuffer, m_audioBufferFill, m_cwKeyer, m_ifstream, NFMModSettings::m_modAFInput, NFMModSettings::m_playLoop, m_settings, m_toneNco, NFMModSettings::m_volumeFactor, NCOF::next(), NFMModSettings::NFMModInputAudio, NFMModSettings::NFMModInputCWTone, NFMModSettings::NFMModInputFile, NFMModSettings::NFMModInputNone, NFMModSettings::NFMModInputTone, and NCOF::setPhase().
Referenced by modulateSample().
|
virtual |
Reimplemented from BasebandSampleSource.
Definition at line 164 of file nfmmod.cpp.
References m_audioBuffer, m_audioBufferFill, m_audioFifo, m_audioSampleRate, m_basebandSampleRate, and AudioFifo::read().
Referenced by destroy().
|
private |
Definition at line 271 of file nfmmod.cpp.
References Interpolator::decimate(), Interpolator::interpolate(), m_feedbackInterpolator, m_feedbackInterpolatorDistance, m_feedbackInterpolatorDistanceRemain, and processOneSample().
Referenced by modulateSample().
|
private |
Definition at line 482 of file nfmmod.cpp.
References m_ifstream, m_recordLength, m_sampleRate, and m_settingsMutex.
Referenced by handleMessage().
|
virtual |
Implements ChannelAPI.
Definition at line 697 of file nfmmod.cpp.
References m_settings, and NFMModSettings::serialize().
Referenced by getCenterFrequency().
|
virtual |
Implements BasebandSampleSource.
Definition at line 334 of file nfmmod.cpp.
References applyChannelSettings(), AudioFifo::clear(), m_audioFifo, m_basebandSampleRate, m_inputFrequencyOffset, and m_outputSampleRate.
Referenced by destroy().
|
virtual |
Implements BasebandSampleSource.
Definition at line 343 of file nfmmod.cpp.
Referenced by destroy().
|
private |
Definition at line 903 of file nfmmod.cpp.
References CalcDb::dbPower(), getMagSq(), SWGSDRangel::SWGChannelReport::getNfmModReport(), m_audioSampleRate, m_outputSampleRate, SWGSDRangel::SWGNFMModReport::setAudioSampleRate(), SWGSDRangel::SWGNFMModReport::setChannelPowerDb(), and SWGSDRangel::SWGNFMModReport::setChannelSampleRate().
Referenced by webapiReportGet().
|
private |
Definition at line 852 of file nfmmod.cpp.
References SWGSDRangel::SWGNFMModSettings::getAudioDeviceName(), SWGSDRangel::SWGNFMModSettings::getCwKeyer(), SWGSDRangel::SWGChannelSettings::getNfmModSettings(), SWGSDRangel::SWGNFMModSettings::getReverseApiAddress(), CWKeyer::getSettings(), SWGSDRangel::SWGNFMModSettings::getTitle(), NFMModSettings::m_afBandwidth, NFMModSettings::m_audioDeviceName, NFMModSettings::m_channelMute, NFMModSettings::m_ctcssIndex, NFMModSettings::m_ctcssOn, m_cwKeyer, NFMModSettings::m_fmDeviation, NFMModSettings::m_inputFrequencyOffset, NFMModSettings::m_modAFInput, NFMModSettings::m_playLoop, NFMModSettings::m_reverseAPIAddress, NFMModSettings::m_reverseAPIChannelIndex, NFMModSettings::m_reverseAPIDeviceIndex, NFMModSettings::m_reverseAPIPort, NFMModSettings::m_rfBandwidth, NFMModSettings::m_rgbColor, NFMModSettings::m_title, NFMModSettings::m_toneFrequency, NFMModSettings::m_useReverseAPI, NFMModSettings::m_volumeFactor, CWKeyerSettings::m_wpm, SWGSDRangel::SWGNFMModSettings::setAfBandwidth(), SWGSDRangel::SWGNFMModSettings::setAudioDeviceName(), SWGSDRangel::SWGNFMModSettings::setChannelMute(), SWGSDRangel::SWGNFMModSettings::setCtcssIndex(), SWGSDRangel::SWGNFMModSettings::setCtcssOn(), SWGSDRangel::SWGNFMModSettings::setCwKeyer(), SWGSDRangel::SWGNFMModSettings::setFmDeviation(), SWGSDRangel::SWGNFMModSettings::setInputFrequencyOffset(), SWGSDRangel::SWGNFMModSettings::setModAfInput(), SWGSDRangel::SWGNFMModSettings::setPlayLoop(), SWGSDRangel::SWGNFMModSettings::setReverseApiAddress(), SWGSDRangel::SWGNFMModSettings::setReverseApiChannelIndex(), SWGSDRangel::SWGNFMModSettings::setReverseApiDeviceIndex(), SWGSDRangel::SWGNFMModSettings::setReverseApiPort(), SWGSDRangel::SWGNFMModSettings::setRfBandwidth(), SWGSDRangel::SWGNFMModSettings::setRgbColor(), SWGSDRangel::SWGNFMModSettings::setTitle(), SWGSDRangel::SWGNFMModSettings::setToneFrequency(), SWGSDRangel::SWGNFMModSettings::setUseReverseApi(), SWGSDRangel::SWGNFMModSettings::setVolumeFactor(), SWGSDRangel::SWGCWKeyerSettings::setWpm(), and CWKeyer::webapiFormatChannelSettings().
Referenced by webapiSettingsGet(), and webapiSettingsPutPatch().
|
virtual |
Reimplemented from ChannelAPI.
Definition at line 841 of file nfmmod.cpp.
References SWGSDRangel::SWGChannelReport::getNfmModReport(), SWGSDRangel::SWGNFMModReport::init(), SWGSDRangel::SWGChannelReport::setNfmModReport(), and webapiFormatChannelReport().
Referenced by getStreamCenterFrequency().
|
private |
Definition at line 992 of file nfmmod.cpp.
References SWGSDRangel::SWGChannelSettings::asJson(), SWGSDRangel::SWGNFMModSettings::getCwKeyer(), SWGSDRangel::SWGChannelSettings::getNfmModSettings(), m_cwKeyer, m_networkManager, m_networkRequest, NFMModSettings::m_reverseAPIAddress, NFMModSettings::m_reverseAPIChannelIndex, NFMModSettings::m_reverseAPIDeviceIndex, NFMModSettings::m_reverseAPIPort, m_settings, SWGSDRangel::SWGChannelSettings::setChannelType(), SWGSDRangel::SWGNFMModSettings::setCwKeyer(), SWGSDRangel::SWGChannelSettings::setDirection(), SWGSDRangel::SWGChannelSettings::setNfmModSettings(), and CWKeyer::webapiFormatChannelSettings().
Referenced by handleMessage().
|
private |
Definition at line 910 of file nfmmod.cpp.
References SWGSDRangel::SWGChannelSettings::asJson(), SWGSDRangel::SWGNFMModSettings::getCwKeyer(), ChannelAPI::getDeviceSetIndex(), ChannelAPI::getIndexInDeviceSet(), SWGSDRangel::SWGChannelSettings::getNfmModSettings(), CWKeyer::getSettings(), NFMModSettings::m_afBandwidth, NFMModSettings::m_audioDeviceName, NFMModSettings::m_channelMute, NFMModSettings::m_ctcssIndex, NFMModSettings::m_ctcssOn, m_cwKeyer, NFMModSettings::m_fmDeviation, NFMModSettings::m_inputFrequencyOffset, NFMModSettings::m_modAFInput, m_networkManager, m_networkRequest, NFMModSettings::m_playLoop, NFMModSettings::m_reverseAPIAddress, NFMModSettings::m_reverseAPIChannelIndex, NFMModSettings::m_reverseAPIDeviceIndex, NFMModSettings::m_reverseAPIPort, NFMModSettings::m_rfBandwidth, NFMModSettings::m_rgbColor, NFMModSettings::m_title, NFMModSettings::m_toneFrequency, NFMModSettings::m_volumeFactor, SWGSDRangel::SWGNFMModSettings::setAfBandwidth(), SWGSDRangel::SWGNFMModSettings::setAudioDeviceName(), SWGSDRangel::SWGNFMModSettings::setChannelMute(), SWGSDRangel::SWGChannelSettings::setChannelType(), SWGSDRangel::SWGNFMModSettings::setCtcssIndex(), SWGSDRangel::SWGNFMModSettings::setCtcssOn(), SWGSDRangel::SWGNFMModSettings::setCwKeyer(), SWGSDRangel::SWGChannelSettings::setDirection(), SWGSDRangel::SWGNFMModSettings::setFmDeviation(), SWGSDRangel::SWGNFMModSettings::setInputFrequencyOffset(), SWGSDRangel::SWGNFMModSettings::setModAfInput(), SWGSDRangel::SWGChannelSettings::setNfmModSettings(), SWGSDRangel::SWGChannelSettings::setOriginatorChannelIndex(), SWGSDRangel::SWGChannelSettings::setOriginatorDeviceSetIndex(), SWGSDRangel::SWGNFMModSettings::setPlayLoop(), SWGSDRangel::SWGNFMModSettings::setRfBandwidth(), SWGSDRangel::SWGNFMModSettings::setRgbColor(), SWGSDRangel::SWGNFMModSettings::setTitle(), SWGSDRangel::SWGNFMModSettings::setToneFrequency(), SWGSDRangel::SWGNFMModSettings::setVolumeFactor(), and CWKeyer::webapiFormatChannelSettings().
Referenced by applySettings().
|
virtual |
Reimplemented from ChannelAPI.
Definition at line 722 of file nfmmod.cpp.
References SWGSDRangel::SWGChannelSettings::getNfmModSettings(), SWGSDRangel::SWGNFMModSettings::init(), m_settings, SWGSDRangel::SWGChannelSettings::setNfmModSettings(), and webapiFormatChannelSettings().
Referenced by getStreamCenterFrequency().
|
virtual |
Reimplemented from ChannelAPI.
Definition at line 733 of file nfmmod.cpp.
References NFMMod::MsgConfigureNFMMod::create(), CWKeyer::MsgConfigureCWKeyer::create(), NFMMod::MsgConfigureChannelizer::create(), SWGSDRangel::SWGNFMModSettings::getAfBandwidth(), SWGSDRangel::SWGNFMModSettings::getChannelMute(), SWGSDRangel::SWGNFMModSettings::getCtcssIndex(), SWGSDRangel::SWGNFMModSettings::getCtcssOn(), SWGSDRangel::SWGNFMModSettings::getCwKeyer(), SWGSDRangel::SWGNFMModSettings::getFmDeviation(), SWGSDRangel::SWGNFMModSettings::getInputFrequencyOffset(), CWKeyer::getInputMessageQueue(), SWGSDRangel::SWGNFMModSettings::getModAfInput(), SWGSDRangel::SWGChannelSettings::getNfmModSettings(), SWGSDRangel::SWGNFMModSettings::getPlayLoop(), SWGSDRangel::SWGNFMModSettings::getReverseApiAddress(), SWGSDRangel::SWGNFMModSettings::getReverseApiChannelIndex(), SWGSDRangel::SWGNFMModSettings::getReverseApiDeviceIndex(), SWGSDRangel::SWGNFMModSettings::getReverseApiPort(), SWGSDRangel::SWGNFMModSettings::getRfBandwidth(), SWGSDRangel::SWGNFMModSettings::getRgbColor(), CWKeyer::getSettings(), SWGSDRangel::SWGNFMModSettings::getTitle(), SWGSDRangel::SWGNFMModSettings::getToneFrequency(), SWGSDRangel::SWGNFMModSettings::getUseReverseApi(), SWGSDRangel::SWGNFMModSettings::getVolumeFactor(), NFMModSettings::m_afBandwidth, m_audioSampleRate, NFMModSettings::m_channelMute, NFMModSettings::m_ctcssIndex, NFMModSettings::m_ctcssOn, m_cwKeyer, NFMModSettings::m_fmDeviation, BasebandSampleSource::m_guiMessageQueue, NFMModSettings::m_inputFrequencyOffset, BasebandSampleSource::m_inputMessageQueue, NFMModSettings::m_modAFInput, NFMModSettings::m_playLoop, NFMModSettings::m_reverseAPIAddress, NFMModSettings::m_reverseAPIChannelIndex, NFMModSettings::m_reverseAPIDeviceIndex, NFMModSettings::m_reverseAPIPort, NFMModSettings::m_rfBandwidth, NFMModSettings::m_rgbColor, m_settings, NFMModSettings::m_title, NFMModSettings::m_toneFrequency, NFMModSettings::m_useReverseAPI, NFMModSettings::m_volumeFactor, MessageQueue::push(), webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
Referenced by getStreamCenterFrequency().
|
private |
|
private |
Definition at line 302 of file nfmmod.h.
Referenced by NFMMod(), pullAF(), and pullAudio().
|
private |
Definition at line 303 of file nfmmod.h.
Referenced by modulateSample(), NFMMod(), pullAF(), and pullAudio().
|
private |
Definition at line 304 of file nfmmod.h.
Referenced by applySettings(), NFMMod(), pullAudio(), start(), and ~NFMMod().
|
private |
Definition at line 301 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applyChannelSettings(), applyFeedbackAudioSampleRate(), applySettings(), handleMessage(), modulateSample(), NFMMod(), pullAudio(), webapiFormatChannelReport(), and webapiSettingsPutPatch().
Definition at line 296 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applySettings(), and modulateSample().
|
private |
Definition at line 274 of file nfmmod.h.
Referenced by applyChannelSettings(), NFMMod(), pullAudio(), and start().
|
private |
Definition at line 279 of file nfmmod.h.
Referenced by applyChannelSettings(), and pull().
|
static |
Definition at line 252 of file nfmmod.h.
Referenced by NFMModPlugin::initPlugin(), and NFMMod().
|
static |
Definition at line 251 of file nfmmod.h.
Referenced by NFMModPlugin::initPlugin(), and NFMModGUI::NFMModGUI().
|
private |
Definition at line 272 of file nfmmod.h.
Referenced by handleMessage(), NFMMod(), and ~NFMMod().
|
private |
Definition at line 281 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applySettings(), modulateSample(), and NFMMod().
|
private |
Definition at line 324 of file nfmmod.h.
Referenced by applyAudioSampleRate(), getCWKeyer(), NFMMod(), pullAF(), webapiFormatChannelSettings(), webapiReverseSendCWSettings(), webapiReverseSendSettings(), and webapiSettingsPutPatch().
|
private |
|
private |
Definition at line 307 of file nfmmod.h.
Referenced by NFMMod(), and processOneSample().
|
private |
Definition at line 308 of file nfmmod.h.
Referenced by NFMMod(), and processOneSample().
|
private |
Definition at line 309 of file nfmmod.h.
Referenced by applySettings(), NFMMod(), processOneSample(), and ~NFMMod().
|
private |
Definition at line 306 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applyFeedbackAudioSampleRate(), applySettings(), and NFMMod().
|
private |
Definition at line 290 of file nfmmod.h.
Referenced by applyFeedbackAudioSampleRate(), and pushFeedback().
|
private |
Definition at line 293 of file nfmmod.h.
Referenced by applyFeedbackAudioSampleRate().
|
private |
Definition at line 291 of file nfmmod.h.
Referenced by applyFeedbackAudioSampleRate(), processOneSample(), and pushFeedback().
|
private |
Definition at line 292 of file nfmmod.h.
Referenced by applyFeedbackAudioSampleRate(), and pushFeedback().
|
private |
Definition at line 315 of file nfmmod.h.
Referenced by NFMMod::MsgConfigureFileSourceName::getFileName(), handleMessage(), and openFileStream().
|
private |
raw file size (bytes)
Definition at line 316 of file nfmmod.h.
Referenced by handleMessage(), and openFileStream().
|
private |
Definition at line 314 of file nfmmod.h.
Referenced by handleMessage(), openFileStream(), pullAF(), and seekFileStream().
|
private |
Definition at line 276 of file nfmmod.h.
Referenced by applyChannelSettings(), NFMMod(), and start().
|
private |
Definition at line 285 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applyChannelSettings(), applySettings(), and pull().
|
private |
Definition at line 288 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applyChannelSettings(), and applySettings().
|
private |
Definition at line 286 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applyChannelSettings(), applySettings(), and pull().
|
private |
Definition at line 287 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applyChannelSettings(), applySettings(), and pull().
|
private |
Definition at line 321 of file nfmmod.h.
Referenced by calculateLevel().
|
staticprivate |
Definition at line 329 of file nfmmod.h.
Referenced by calculateLevel().
|
private |
Definition at line 323 of file nfmmod.h.
Referenced by calculateLevel().
Definition at line 295 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applySettings(), and NFMMod().
|
private |
Definition at line 298 of file nfmmod.h.
Referenced by getMagSq(), NFMMod(), and pull().
|
private |
|
private |
Definition at line 283 of file nfmmod.h.
Referenced by modulateSample(), and pull().
|
private |
|
private |
Definition at line 326 of file nfmmod.h.
Referenced by NFMMod(), webapiReverseSendCWSettings(), webapiReverseSendSettings(), and ~NFMMod().
|
private |
Definition at line 327 of file nfmmod.h.
Referenced by webapiReverseSendCWSettings(), and webapiReverseSendSettings().
|
private |
Definition at line 275 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applyChannelSettings(), applySettings(), NFMMod(), start(), and webapiFormatChannelReport().
|
private |
Definition at line 322 of file nfmmod.h.
Referenced by calculateLevel().
|
private |
record length in seconds computed from file size
Definition at line 317 of file nfmmod.h.
Referenced by NFMMod::MsgReportFileSourceStreamData::getRecordLength(), openFileStream(), and seekFileStream().
|
private |
|
private |
Definition at line 318 of file nfmmod.h.
Referenced by NFMMod::MsgConfigureChannelizer::getSampleRate(), NFMMod::MsgReportFileSourceStreamData::getSampleRate(), openFileStream(), and seekFileStream().
|
private |
Definition at line 277 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applyChannelSettings(), applySettings(), deserialize(), handleMessage(), modulateSample(), NFMMod(), pull(), pullAF(), serialize(), webapiReverseSendCWSettings(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
private |
Definition at line 312 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applyChannelSettings(), applyFeedbackAudioSampleRate(), applySettings(), pull(), and seekFileStream().
|
private |
|
private |
Definition at line 280 of file nfmmod.h.
Referenced by applyAudioSampleRate(), applySettings(), NFMMod(), and pullAF().