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 <freedvmod.h>
Classes | |
class | MsgConfigureChannelizer |
class | MsgConfigureFileSourceName |
class | MsgConfigureFileSourceSeek |
class | MsgConfigureFileSourceStreamTiming |
class | MsgConfigureFreeDVMod |
class | MsgReportFileSourceStreamData |
class | MsgReportFileSourceStreamTiming |
Signals | |
void | levelChanged (qreal rmsLevel, qreal peakLevel, int numSamples) |
Public Member Functions | |
FreeDVMod (DeviceAPI *deviceAPI) | |
~FreeDVMod () | |
virtual void | destroy () |
void | setSpectrumSampleSink (BasebandSampleSink *sampleSink) |
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) |
uint32_t | getAudioSampleRate () const |
uint32_t | getModemSampleRate () const |
double | getMagSq () const |
Real | getLowCutoff () const |
Real | getHiCutoff () 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.freedvmod" |
static const QString | m_channelId = "FreeDVMod" |
Private Types | |
enum | RateState { RSInitialFill, RSRunning } |
Private Slots | |
void | networkManagerFinished (QNetworkReply *reply) |
Private Member Functions | |
void | applyAudioSampleRate (int sampleRate) |
void | applyChannelSettings (int basebandSampleRate, int outputSampleRate, int inputFrequencyOffset, bool force=false) |
void | applySettings (const FreeDVModSettings &settings, bool force=false) |
void | applyFreeDVMode (FreeDVModSettings::FreeDVMode mode) |
void | pullAF (Complex &sample) |
void | calculateLevel (Complex &sample) |
void | calculateLevel (qint16 &sample) |
void | modulateSample () |
void | openFileStream () |
void | seekFileStream (int seekPercentage) |
void | webapiFormatChannelSettings (SWGSDRangel::SWGChannelSettings &response, const FreeDVModSettings &settings) |
void | webapiFormatChannelReport (SWGSDRangel::SWGChannelReport &response) |
void | webapiReverseSendSettings (QList< QString > &channelSettingsKeys, const FreeDVModSettings &settings, bool force) |
void | webapiReverseSendCWSettings (const CWKeyerSettings &settings) |
Static Private Attributes | |
static const int | m_ssbFftLen = 1024 |
static const int | m_levelNbSamples = 80 |
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 51 of file freedvmod.h.
|
private |
Enumerator | |
---|---|
RSInitialFill | |
RSRunning |
Definition at line 273 of file freedvmod.h.
FreeDVMod::FreeDVMod | ( | DeviceAPI * | deviceAPI | ) |
Definition at line 57 of file freedvmod.cpp.
References AudioDeviceManager::addAudioSource(), DeviceAPI::addChannelSource(), DeviceAPI::addChannelSourceAPI(), applyChannelSettings(), applySettings(), DSPEngine::getAudioDeviceManager(), BasebandSampleSource::getInputMessageQueue(), AudioDeviceManager::getInputSampleRate(), DSPEngine::instance(), m_audioBuffer, m_audioBufferFill, m_audioFifo, m_audioSampleRate, m_basebandSampleRate, m_channelId, m_channelizer, m_cwKeyer, m_deviceAPI, m_hiCutoff, m_inputFrequencyOffset, m_inputSampleRate, m_lowCutoff, m_magsq, m_networkManager, m_outputSampleRate, m_settings, m_ssbFftLen, m_SSBFilter, m_SSBFilterBuffer, m_sum, m_sumCount, m_threadedChannelizer, m_toneNco, m_undersampleCount, networkManagerFinished(), CWKeyer::reset(), NCOF::setFreq(), and CWKeyer::setSampleRate().
Referenced by FreeDVMod::MsgReportFileSourceStreamData::MsgReportFileSourceStreamData().
FreeDVMod::~FreeDVMod | ( | ) |
Definition at line 122 of file freedvmod.cpp.
References DSPEngine::getAudioDeviceManager(), DSPEngine::instance(), m_audioFifo, m_channelizer, m_deviceAPI, m_freeDV, m_networkManager, m_SSBFilter, m_SSBFilterBuffer, m_threadedChannelizer, networkManagerFinished(), AudioDeviceManager::removeAudioSource(), DeviceAPI::removeChannelSource(), and DeviceAPI::removeChannelSourceAPI().
Referenced by FreeDVMod::MsgReportFileSourceStreamData::MsgReportFileSourceStreamData().
|
private |
Definition at line 567 of file freedvmod.cpp.
References m_audioResampler, m_audioSampleRate, m_inputSampleRate, m_settingsMutex, AudioResampler::setAudioFilters(), and AudioResampler::setDecimation().
Referenced by applySettings(), and handleMessage().
|
private |
Definition at line 580 of file freedvmod.cpp.
References Interpolator::create(), m_basebandSampleRate, m_carrierNco, m_hiCutoff, m_inputFrequencyOffset, m_interpolator, m_interpolatorConsumed, m_interpolatorDistance, m_interpolatorDistanceRemain, m_modemSampleRate, m_outputSampleRate, m_settingsMutex, and NCOF::setFreq().
Referenced by FreeDVMod(), handleMessage(), and start().
|
private |
Definition at line 610 of file freedvmod.cpp.
References DSPConfigureAudio::AudioInput, Interpolator::create(), FreeDVMod::MsgConfigureChannelizer::create(), fftfilt::create_filter(), FreeDVModSettings::FreeDVMode1600, FreeDVModSettings::FreeDVMode2400A, FreeDVModSettings::FreeDVMode700C, FreeDVModSettings::FreeDVMode700D, FreeDVModSettings::FreeDVMode800XA, FreeDVModSettings::getHiCutoff(), FreeDVModSettings::getLowCutoff(), BasebandSampleSource::getMessageQueueToGUI(), FreeDVModSettings::getModSampleRate(), m_freeDV, m_hiCutoff, m_iModem, FreeDVModSettings::m_inputFrequencyOffset, BasebandSampleSource::m_inputMessageQueue, m_interpolator, m_interpolatorConsumed, m_interpolatorDistance, m_interpolatorDistanceRemain, m_iSpeech, m_lowCutoff, m_modemSampleRate, m_modOut, m_nNomModemSamples, m_nSpeechSamples, m_outputSampleRate, m_scaleFactor, m_settings, m_settingsMutex, m_speechIn, m_SSBFilter, MessageQueue::push(), and SDR_TX_SCALEF.
Referenced by applySettings().
|
private |
Definition at line 738 of file freedvmod.cpp.
References AudioDeviceManager::addAudioSource(), applyAudioSampleRate(), applyFreeDVMode(), DSPEngine::getAudioDeviceManager(), AudioDeviceManager::getInputDeviceIndex(), BasebandSampleSource::getInputMessageQueue(), AudioDeviceManager::getInputSampleRate(), DSPEngine::instance(), FreeDVModSettings::m_audioDeviceName, m_audioFifo, FreeDVModSettings::m_audioMute, m_audioSampleRate, FreeDVModSettings::m_freeDVMode, FreeDVModSettings::m_gaugeInputElseModem, FreeDVModSettings::m_inputFrequencyOffset, m_inputSampleRate, FreeDVModSettings::m_modAFInput, FreeDVModSettings::m_playLoop, FreeDVModSettings::m_reverseAPIAddress, FreeDVModSettings::m_reverseAPIChannelIndex, FreeDVModSettings::m_reverseAPIDeviceIndex, FreeDVModSettings::m_reverseAPIPort, FreeDVModSettings::m_rgbColor, m_settings, m_settingsMutex, FreeDVModSettings::m_spanLog2, FreeDVModSettings::m_title, FreeDVModSettings::m_toneFrequency, m_toneNco, FreeDVModSettings::m_useReverseAPI, FreeDVModSettings::m_volumeFactor, NCOF::setFreq(), and webapiReverseSendSettings().
Referenced by FreeDVMod(), and handleMessage().
|
private |
Definition at line 375 of file freedvmod.cpp.
References levelChanged(), m_levelCalcCount, m_levelNbSamples, m_levelSum, m_peakLevel, leansdr::max(), and sqrt().
Referenced by modulateSample(), and pullAF().
|
private |
Definition at line 396 of file freedvmod.cpp.
References levelChanged(), m_levelCalcCount, m_levelNbSamples, m_levelSum, m_peakLevel, leansdr::max(), SDR_TX_SCALEF, and sqrt().
|
virtual |
Implements ChannelAPI.
Definition at line 820 of file freedvmod.cpp.
References FreeDVMod::MsgConfigureFreeDVMod::create(), FreeDVModSettings::deserialize(), BasebandSampleSource::m_inputMessageQueue, m_settings, MessageQueue::push(), and FreeDVModSettings::resetToDefaults().
Referenced by getCenterFrequency().
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Applies to a default stream.
Implements ChannelAPI.
Definition at line 222 of file freedvmod.h.
References deserialize(), FreeDVModSettings::m_inputFrequencyOffset, FreeDVMod::MsgConfigureFreeDVMod::m_settings, and serialize().
|
inline |
Definition at line 257 of file freedvmod.h.
References m_cwKeyer.
Referenced by FreeDVModGUI::FreeDVModGUI().
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
Definition at line 253 of file freedvmod.h.
References m_magsq.
Referenced by FreeDVModGUI::tick(), and webapiFormatChannelReport().
|
inline |
Definition at line 252 of file freedvmod.h.
References m_modemSampleRate.
Referenced by FreeDVModGUI::displayBandwidths(), and FreeDVModGUI::handleMessage().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements ChannelAPI.
Definition at line 230 of file freedvmod.h.
References FreeDVModSettings::m_inputFrequencyOffset, FreeDVMod::MsgConfigureFreeDVMod::m_settings, webapiReportGet(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
inlinevirtual |
Implements ChannelAPI.
Definition at line 221 of file freedvmod.h.
References FreeDVMod::MsgConfigureFreeDVMod::m_settings, and FreeDVModSettings::m_title.
|
virtual |
Processing of a message. Returns true if message has actually been processed.
Implements BasebandSampleSource.
Definition at line 430 of file freedvmod.cpp.
References applyAudioSampleRate(), applyChannelSettings(), applySettings(), UpChannelizer::configure(), FreeDVMod::MsgReportFileSourceStreamTiming::create(), UpChannelizer::MsgChannelizerNotification::getBasebandSampleRate(), FreeDVMod::MsgConfigureChannelizer::getCenterFrequency(), FreeDVMod::MsgConfigureFileSourceName::getFileName(), FreeDVMod::MsgConfigureFreeDVMod::getForce(), UpChannelizer::MsgChannelizerNotification::getFrequencyOffset(), BasebandSampleSource::getInputMessageQueue(), BasebandSampleSource::getMessageQueueToGUI(), FreeDVMod::MsgConfigureFileSourceSeek::getPercentage(), UpChannelizer::MsgChannelizerNotification::getSampleRate(), FreeDVMod::MsgConfigureChannelizer::getSampleRate(), DSPConfigureAudio::getSampleRate(), FreeDVMod::MsgConfigureFreeDVMod::getSettings(), CWKeyer::MsgConfigureCWKeyer::getSettings(), m_audioSampleRate, m_channelizer, m_fileName, m_fileSize, m_ifstream, m_settings, FreeDVModSettings::m_useReverseAPI, Message::match(), openFileStream(), MessageQueue::push(), seekFileStream(), and webapiReverseSendCWSettings().
Referenced by setSpectrumSampleSink().
|
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 194 of file freedvmod.cpp.
References calculateLevel(), m_audioBufferFill, FreeDVModSettings::m_gaugeInputElseModem, m_modSample, m_settings, and pullAF().
Referenced by pull().
|
privateslot |
Definition at line 1121 of file freedvmod.cpp.
Referenced by FreeDVMod(), and ~FreeDVMod().
|
private |
Definition at line 530 of file freedvmod.cpp.
References FreeDVMod::MsgReportFileSourceStreamData::create(), BasebandSampleSource::getMessageQueueToGUI(), m_fileName, m_fileSize, m_ifstream, m_inputSampleRate, m_recordLength, and MessageQueue::push().
Referenced by handleMessage().
|
virtual |
Implements BasebandSampleSource.
Definition at line 142 of file freedvmod.cpp.
References MovingAverageUtil< T, Total, N >::asDouble(), Interpolator::decimate(), Interpolator::interpolate(), m_carrierNco, Sample::m_imag, m_interpolator, m_interpolatorDistance, m_interpolatorDistanceRemain, m_magsq, m_modSample, m_movingAverage, Sample::m_real, m_settingsMutex, modulateSample(), NCOF::nextIQ(), SDR_TX_SCALED, and SDR_TX_SCALEF.
Referenced by setSpectrumSampleSink().
|
private |
Definition at line 203 of file freedvmod.cpp.
References calculateLevel(), AudioResampler::downSample(), BasebandSampleSink::feed(), FreeDVModSettings::FreeDVModInputAudio, FreeDVModSettings::FreeDVModInputCWTone, FreeDVModSettings::FreeDVModInputFile, FreeDVModSettings::FreeDVModInputNone, FreeDVModSettings::FreeDVModInputTone, CWKeyer::getCWSmoother(), CWSmoother::getFadeSample(), CWKeyer::getSample(), i, m_audioBuffer, m_audioBufferFill, FreeDVModSettings::m_audioMute, m_audioResampler, m_cwKeyer, m_freeDV, FreeDVModSettings::m_gaugeInputElseModem, m_ifstream, m_iModem, FreeDVModSettings::m_modAFInput, m_modOut, m_nNomModemSamples, m_nSpeechSamples, FreeDVModSettings::m_playLoop, m_sampleBuffer, m_sampleSink, m_scaleFactor, m_settings, FreeDVModSettings::m_spanLog2, m_speechIn, m_SSBFilter, m_SSBFilterBuffer, m_SSBFilterBufferIndex, m_sum, m_toneNco, m_undersampleCount, FreeDVModSettings::m_volumeFactor, NCOF::next(), fftfilt::runSSB(), SDR_TX_SCALEF, and NCOF::setPhase().
Referenced by modulateSample().
|
virtual |
Reimplemented from BasebandSampleSource.
Definition at line 181 of file freedvmod.cpp.
References m_audioBuffer, m_audioBufferFill, m_audioFifo, m_audioSampleRate, m_modemSampleRate, and AudioFifo::read().
Referenced by setSpectrumSampleSink().
|
private |
Definition at line 554 of file freedvmod.cpp.
References m_ifstream, m_inputSampleRate, m_recordLength, and m_settingsMutex.
Referenced by handleMessage().
|
virtual |
Implements ChannelAPI.
Definition at line 815 of file freedvmod.cpp.
References m_settings, and FreeDVModSettings::serialize().
Referenced by getCenterFrequency().
|
inline |
Definition at line 212 of file freedvmod.h.
References handleMessage(), m_sampleSink, pull(), pullAudio(), start(), and stop().
Referenced by FreeDVModGUI::FreeDVModGUI().
|
virtual |
Implements BasebandSampleSource.
Definition at line 417 of file freedvmod.cpp.
References applyChannelSettings(), AudioFifo::clear(), m_audioFifo, m_basebandSampleRate, FreeDVModSettings::m_inputFrequencyOffset, m_inputFrequencyOffset, m_outputSampleRate, and m_settings.
Referenced by setSpectrumSampleSink().
|
virtual |
Implements BasebandSampleSource.
Definition at line 426 of file freedvmod.cpp.
Referenced by setSpectrumSampleSink().
|
private |
Definition at line 1007 of file freedvmod.cpp.
References CalcDb::dbPower(), SWGSDRangel::SWGChannelReport::getFreeDvModReport(), getMagSq(), m_audioSampleRate, m_outputSampleRate, SWGSDRangel::SWGFreeDVModReport::setAudioSampleRate(), SWGSDRangel::SWGFreeDVModReport::setChannelPowerDb(), and SWGSDRangel::SWGFreeDVModReport::setChannelSampleRate().
Referenced by webapiReportGet().
|
private |
Definition at line 960 of file freedvmod.cpp.
References SWGSDRangel::SWGFreeDVModSettings::getAudioDeviceName(), SWGSDRangel::SWGFreeDVModSettings::getCwKeyer(), SWGSDRangel::SWGChannelSettings::getFreeDvModSettings(), SWGSDRangel::SWGFreeDVModSettings::getReverseApiAddress(), CWKeyer::getSettings(), SWGSDRangel::SWGFreeDVModSettings::getTitle(), FreeDVModSettings::m_audioDeviceName, FreeDVModSettings::m_audioMute, m_cwKeyer, FreeDVModSettings::m_freeDVMode, FreeDVModSettings::m_gaugeInputElseModem, FreeDVModSettings::m_inputFrequencyOffset, FreeDVModSettings::m_modAFInput, FreeDVModSettings::m_playLoop, FreeDVModSettings::m_reverseAPIAddress, FreeDVModSettings::m_reverseAPIChannelIndex, FreeDVModSettings::m_reverseAPIDeviceIndex, FreeDVModSettings::m_reverseAPIPort, FreeDVModSettings::m_rgbColor, FreeDVModSettings::m_spanLog2, FreeDVModSettings::m_title, FreeDVModSettings::m_toneFrequency, FreeDVModSettings::m_useReverseAPI, FreeDVModSettings::m_volumeFactor, SWGSDRangel::SWGFreeDVModSettings::setAudioDeviceName(), SWGSDRangel::SWGFreeDVModSettings::setAudioMute(), SWGSDRangel::SWGFreeDVModSettings::setCwKeyer(), SWGSDRangel::SWGFreeDVModSettings::setFreeDvMode(), SWGSDRangel::SWGFreeDVModSettings::setGaugeInputElseModem(), SWGSDRangel::SWGFreeDVModSettings::setInputFrequencyOffset(), SWGSDRangel::SWGFreeDVModSettings::setModAfInput(), SWGSDRangel::SWGFreeDVModSettings::setPlayLoop(), SWGSDRangel::SWGFreeDVModSettings::setReverseApiAddress(), SWGSDRangel::SWGFreeDVModSettings::setReverseApiChannelIndex(), SWGSDRangel::SWGFreeDVModSettings::setReverseApiDeviceIndex(), SWGSDRangel::SWGFreeDVModSettings::setReverseApiPort(), SWGSDRangel::SWGFreeDVModSettings::setRgbColor(), SWGSDRangel::SWGFreeDVModSettings::setSpanLog2(), SWGSDRangel::SWGFreeDVModSettings::setTitle(), SWGSDRangel::SWGFreeDVModSettings::setToneFrequency(), SWGSDRangel::SWGFreeDVModSettings::setUseReverseApi(), SWGSDRangel::SWGFreeDVModSettings::setVolumeFactor(), and CWKeyer::webapiFormatChannelSettings().
Referenced by webapiSettingsGet(), and webapiSettingsPutPatch().
|
virtual |
Reimplemented from ChannelAPI.
Definition at line 949 of file freedvmod.cpp.
References SWGSDRangel::SWGChannelReport::getFreeDvModReport(), SWGSDRangel::SWGFreeDVModReport::init(), SWGSDRangel::SWGChannelReport::setFreeDvModReport(), and webapiFormatChannelReport().
Referenced by getStreamCenterFrequency().
|
private |
Definition at line 1090 of file freedvmod.cpp.
References SWGSDRangel::SWGChannelSettings::asJson(), SWGSDRangel::SWGFreeDVModSettings::getCwKeyer(), SWGSDRangel::SWGChannelSettings::getFreeDvModSettings(), m_cwKeyer, m_networkManager, m_networkRequest, FreeDVModSettings::m_reverseAPIAddress, FreeDVModSettings::m_reverseAPIChannelIndex, FreeDVModSettings::m_reverseAPIDeviceIndex, FreeDVModSettings::m_reverseAPIPort, m_settings, SWGSDRangel::SWGChannelSettings::setChannelType(), SWGSDRangel::SWGFreeDVModSettings::setCwKeyer(), SWGSDRangel::SWGChannelSettings::setDirection(), SWGSDRangel::SWGChannelSettings::setFreeDvModSettings(), and CWKeyer::webapiFormatChannelSettings().
Referenced by handleMessage().
|
private |
Definition at line 1014 of file freedvmod.cpp.
References SWGSDRangel::SWGChannelSettings::asJson(), SWGSDRangel::SWGFreeDVModSettings::getCwKeyer(), ChannelAPI::getDeviceSetIndex(), SWGSDRangel::SWGChannelSettings::getFreeDvModSettings(), ChannelAPI::getIndexInDeviceSet(), CWKeyer::getSettings(), FreeDVModSettings::m_audioDeviceName, FreeDVModSettings::m_audioMute, m_cwKeyer, FreeDVModSettings::m_freeDVMode, FreeDVModSettings::m_gaugeInputElseModem, FreeDVModSettings::m_inputFrequencyOffset, FreeDVModSettings::m_modAFInput, m_networkManager, m_networkRequest, FreeDVModSettings::m_playLoop, FreeDVModSettings::m_reverseAPIAddress, FreeDVModSettings::m_reverseAPIChannelIndex, FreeDVModSettings::m_reverseAPIDeviceIndex, FreeDVModSettings::m_reverseAPIPort, FreeDVModSettings::m_rgbColor, FreeDVModSettings::m_spanLog2, FreeDVModSettings::m_title, FreeDVModSettings::m_toneFrequency, FreeDVModSettings::m_volumeFactor, SWGSDRangel::SWGFreeDVModSettings::setAudioDeviceName(), SWGSDRangel::SWGFreeDVModSettings::setAudioMute(), SWGSDRangel::SWGChannelSettings::setChannelType(), SWGSDRangel::SWGFreeDVModSettings::setCwKeyer(), SWGSDRangel::SWGChannelSettings::setDirection(), SWGSDRangel::SWGFreeDVModSettings::setFreeDvMode(), SWGSDRangel::SWGChannelSettings::setFreeDvModSettings(), SWGSDRangel::SWGFreeDVModSettings::setInputFrequencyOffset(), SWGSDRangel::SWGFreeDVModSettings::setModAfInput(), SWGSDRangel::SWGChannelSettings::setOriginatorChannelIndex(), SWGSDRangel::SWGChannelSettings::setOriginatorDeviceSetIndex(), SWGSDRangel::SWGFreeDVModSettings::setPlayLoop(), SWGSDRangel::SWGFreeDVModSettings::setRgbColor(), SWGSDRangel::SWGFreeDVModSettings::setSpanLog2(), SWGSDRangel::SWGFreeDVModSettings::setTitle(), SWGSDRangel::SWGFreeDVModSettings::setToneFrequency(), SWGSDRangel::SWGFreeDVModSettings::setVolumeFactor(), and CWKeyer::webapiFormatChannelSettings().
Referenced by applySettings().
|
virtual |
Reimplemented from ChannelAPI.
Definition at line 837 of file freedvmod.cpp.
References SWGSDRangel::SWGChannelSettings::getFreeDvModSettings(), SWGSDRangel::SWGFreeDVModSettings::init(), m_settings, SWGSDRangel::SWGChannelSettings::setFreeDvModSettings(), and webapiFormatChannelSettings().
Referenced by getStreamCenterFrequency().
|
virtual |
Reimplemented from ChannelAPI.
Definition at line 848 of file freedvmod.cpp.
References FreeDVMod::MsgConfigureFreeDVMod::create(), CWKeyer::MsgConfigureCWKeyer::create(), FreeDVMod::MsgConfigureChannelizer::create(), SWGSDRangel::SWGFreeDVModSettings::getAudioDeviceName(), SWGSDRangel::SWGFreeDVModSettings::getAudioMute(), SWGSDRangel::SWGFreeDVModSettings::getCwKeyer(), SWGSDRangel::SWGFreeDVModSettings::getFreeDvMode(), SWGSDRangel::SWGChannelSettings::getFreeDvModSettings(), SWGSDRangel::SWGFreeDVModSettings::getGaugeInputElseModem(), SWGSDRangel::SWGFreeDVModSettings::getInputFrequencyOffset(), CWKeyer::getInputMessageQueue(), SWGSDRangel::SWGFreeDVModSettings::getModAfInput(), SWGSDRangel::SWGFreeDVModSettings::getPlayLoop(), SWGSDRangel::SWGFreeDVModSettings::getReverseApiAddress(), SWGSDRangel::SWGFreeDVModSettings::getReverseApiChannelIndex(), SWGSDRangel::SWGFreeDVModSettings::getReverseApiDeviceIndex(), SWGSDRangel::SWGFreeDVModSettings::getReverseApiPort(), SWGSDRangel::SWGFreeDVModSettings::getRgbColor(), CWKeyer::getSettings(), SWGSDRangel::SWGFreeDVModSettings::getSpanLog2(), SWGSDRangel::SWGFreeDVModSettings::getTitle(), SWGSDRangel::SWGFreeDVModSettings::getToneFrequency(), SWGSDRangel::SWGFreeDVModSettings::getUseReverseApi(), SWGSDRangel::SWGFreeDVModSettings::getVolumeFactor(), FreeDVModSettings::m_audioDeviceName, FreeDVModSettings::m_audioMute, m_audioSampleRate, m_cwKeyer, FreeDVModSettings::m_freeDVMode, FreeDVModSettings::m_gaugeInputElseModem, BasebandSampleSource::m_guiMessageQueue, FreeDVModSettings::m_inputFrequencyOffset, BasebandSampleSource::m_inputMessageQueue, FreeDVModSettings::m_modAFInput, FreeDVModSettings::m_playLoop, FreeDVModSettings::m_reverseAPIAddress, FreeDVModSettings::m_reverseAPIChannelIndex, FreeDVModSettings::m_reverseAPIDeviceIndex, FreeDVModSettings::m_reverseAPIPort, FreeDVModSettings::m_rgbColor, m_settings, FreeDVModSettings::m_spanLog2, FreeDVModSettings::m_title, FreeDVModSettings::m_toneFrequency, FreeDVModSettings::m_useReverseAPI, FreeDVModSettings::m_volumeFactor, MessageQueue::push(), webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
Referenced by getStreamCenterFrequency().
|
private |
Definition at line 313 of file freedvmod.h.
Referenced by FreeDVMod(), pullAF(), and pullAudio().
|
private |
Definition at line 314 of file freedvmod.h.
Referenced by FreeDVMod(), modulateSample(), pullAF(), and pullAudio().
|
private |
Definition at line 315 of file freedvmod.h.
Referenced by applySettings(), FreeDVMod(), pullAudio(), start(), and ~FreeDVMod().
|
private |
Definition at line 341 of file freedvmod.h.
Referenced by applyAudioSampleRate(), and pullAF().
|
private |
Definition at line 312 of file freedvmod.h.
Referenced by applyAudioSampleRate(), applySettings(), FreeDVMod(), getAudioSampleRate(), handleMessage(), pullAudio(), webapiFormatChannelReport(), and webapiSettingsPutPatch().
|
private |
Definition at line 282 of file freedvmod.h.
Referenced by applyChannelSettings(), FreeDVMod(), and start().
|
private |
Definition at line 290 of file freedvmod.h.
Referenced by applyChannelSettings(), and pull().
|
static |
Definition at line 260 of file freedvmod.h.
Referenced by FreeDVMod(), and FreeDVModPlugin::initPlugin().
|
static |
Definition at line 259 of file freedvmod.h.
Referenced by FreeDVModGUI::FreeDVModGUI(), and FreeDVModPlugin::initPlugin().
|
private |
Definition at line 280 of file freedvmod.h.
Referenced by FreeDVMod(), handleMessage(), and ~FreeDVMod().
|
private |
Definition at line 328 of file freedvmod.h.
Referenced by FreeDVMod(), getCWKeyer(), pullAF(), webapiFormatChannelSettings(), webapiReverseSendCWSettings(), webapiReverseSendSettings(), and webapiSettingsPutPatch().
|
private |
Definition at line 278 of file freedvmod.h.
Referenced by FreeDVMod(), and ~FreeDVMod().
|
private |
Definition at line 320 of file freedvmod.h.
Referenced by FreeDVMod::MsgConfigureFileSourceName::getFileName(), handleMessage(), and openFileStream().
|
private |
raw file size (bytes)
Definition at line 321 of file freedvmod.h.
Referenced by handleMessage(), and openFileStream().
|
private |
Definition at line 333 of file freedvmod.h.
Referenced by applyFreeDVMode(), pullAF(), and ~FreeDVMod().
|
private |
Definition at line 287 of file freedvmod.h.
Referenced by applyChannelSettings(), applyFreeDVMode(), FreeDVMod(), and getHiCutoff().
|
private |
Definition at line 319 of file freedvmod.h.
Referenced by handleMessage(), openFileStream(), pullAF(), and seekFileStream().
|
private |
Definition at line 337 of file freedvmod.h.
Referenced by applyFreeDVMode(), and pullAF().
|
private |
Definition at line 285 of file freedvmod.h.
Referenced by applyChannelSettings(), FreeDVMod(), and start().
|
private |
speech (input) sample rate (fixed 8000 S/s)
Definition at line 323 of file freedvmod.h.
Referenced by applyAudioSampleRate(), applySettings(), FreeDVMod(), openFileStream(), and seekFileStream().
|
private |
Definition at line 293 of file freedvmod.h.
Referenced by applyChannelSettings(), applyFreeDVMode(), and pull().
|
private |
Definition at line 296 of file freedvmod.h.
Referenced by applyChannelSettings(), and applyFreeDVMode().
|
private |
Definition at line 294 of file freedvmod.h.
Referenced by applyChannelSettings(), applyFreeDVMode(), and pull().
|
private |
Definition at line 295 of file freedvmod.h.
Referenced by applyChannelSettings(), applyFreeDVMode(), and pull().
|
private |
Definition at line 336 of file freedvmod.h.
Referenced by applyFreeDVMode().
|
private |
Definition at line 325 of file freedvmod.h.
Referenced by calculateLevel().
|
staticprivate |
Definition at line 343 of file freedvmod.h.
Referenced by calculateLevel().
|
private |
Definition at line 327 of file freedvmod.h.
Referenced by calculateLevel().
|
private |
Definition at line 286 of file freedvmod.h.
Referenced by applyFreeDVMode(), FreeDVMod(), and getLowCutoff().
|
private |
Definition at line 309 of file freedvmod.h.
Referenced by FreeDVMod(), getMagSq(), and pull().
|
private |
Definition at line 284 of file freedvmod.h.
Referenced by applyChannelSettings(), applyFreeDVMode(), getModemSampleRate(), and pullAudio().
|
private |
Definition at line 339 of file freedvmod.h.
Referenced by applyFreeDVMode(), and pullAF().
|
private |
Definition at line 292 of file freedvmod.h.
Referenced by modulateSample(), and pull().
|
private |
Definition at line 310 of file freedvmod.h.
Referenced by pull().
|
private |
Definition at line 330 of file freedvmod.h.
Referenced by FreeDVMod(), webapiReverseSendCWSettings(), webapiReverseSendSettings(), and ~FreeDVMod().
|
private |
Definition at line 331 of file freedvmod.h.
Referenced by webapiReverseSendCWSettings(), and webapiReverseSendSettings().
|
private |
Definition at line 335 of file freedvmod.h.
Referenced by applyFreeDVMode(), and pullAF().
|
private |
Definition at line 334 of file freedvmod.h.
Referenced by applyFreeDVMode(), and pullAF().
|
private |
Definition at line 283 of file freedvmod.h.
Referenced by applyChannelSettings(), applyFreeDVMode(), FreeDVMod(), start(), and webapiFormatChannelReport().
|
private |
Definition at line 326 of file freedvmod.h.
Referenced by calculateLevel().
|
private |
record length in seconds computed from file size
Definition at line 322 of file freedvmod.h.
Referenced by FreeDVMod::MsgReportFileSourceStreamData::getRecordLength(), openFileStream(), and seekFileStream().
|
private |
Definition at line 303 of file freedvmod.h.
Referenced by pullAF().
|
private |
Definition at line 302 of file freedvmod.h.
Referenced by pullAF(), and setSpectrumSampleSink().
|
private |
divide by this amount to scale from int16 to float in [-1.0, 1.0] interval
Definition at line 340 of file freedvmod.h.
Referenced by applyFreeDVMode(), and pullAF().
|
private |
Definition at line 288 of file freedvmod.h.
Referenced by applyFreeDVMode(), applySettings(), deserialize(), FreeDVMod(), handleMessage(), modulateSample(), pullAF(), serialize(), start(), webapiReverseSendCWSettings(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
private |
Definition at line 317 of file freedvmod.h.
Referenced by applyAudioSampleRate(), applyChannelSettings(), applyFreeDVMode(), applySettings(), pull(), and seekFileStream().
|
private |
Definition at line 338 of file freedvmod.h.
Referenced by applyFreeDVMode(), and pullAF().
|
staticprivate |
Definition at line 300 of file freedvmod.h.
Referenced by FreeDVMod().
|
private |
Definition at line 297 of file freedvmod.h.
Referenced by applyFreeDVMode(), FreeDVMod(), pullAF(), and ~FreeDVMod().
|
private |
Definition at line 298 of file freedvmod.h.
Referenced by FreeDVMod(), pullAF(), and ~FreeDVMod().
|
private |
Definition at line 299 of file freedvmod.h.
Referenced by pullAF().
|
private |
Definition at line 305 of file freedvmod.h.
Referenced by FreeDVMod(), and pullAF().
|
private |
Definition at line 307 of file freedvmod.h.
Referenced by FreeDVMod().
|
private |
Definition at line 279 of file freedvmod.h.
Referenced by FreeDVMod(), and ~FreeDVMod().
|
private |
Definition at line 291 of file freedvmod.h.
Referenced by applySettings(), FreeDVMod(), and pullAF().
|
private |
Definition at line 306 of file freedvmod.h.
Referenced by FreeDVMod(), and pullAF().