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 <soapysdroutput.h>
Classes | |
class | MsgConfigureSoapySDROutput |
class | MsgReportGainChange |
class | MsgStartStop |
Public Member Functions | |
SoapySDROutput (DeviceAPI *deviceAPI) | |
virtual | ~SoapySDROutput () |
virtual void | destroy () |
virtual void | init () |
initializations to be done when all collaborating objects are created and possibly connected More... | |
virtual bool | start () |
virtual void | stop () |
SoapySDROutputThread * | getThread () |
void | setThread (SoapySDROutputThread *thread) |
virtual QByteArray | serialize () const |
virtual bool | deserialize (const QByteArray &data) |
virtual void | setMessageQueueToGUI (MessageQueue *queue) |
virtual const QString & | getDeviceDescription () const |
virtual int | getSampleRate () const |
Sample rate exposed by the sink. More... | |
virtual void | setSampleRate (int sampleRate) |
For when the sink sample rate is set externally. More... | |
virtual quint64 | getCenterFrequency () const |
Center frequency exposed by the sink. More... | |
virtual void | setCenterFrequency (qint64 centerFrequency) |
virtual bool | handleMessage (const Message &message) |
void | getFrequencyRange (uint64_t &min, uint64_t &max) |
void | getGlobalGainRange (int &min, int &max) |
bool | isAGCSupported () |
const SoapySDR::RangeList & | getRateRanges () |
const std::vector< std::string > & | getAntennas () |
const SoapySDR::RangeList & | getBandwidthRanges () |
const std::vector< DeviceSoapySDRParams::FrequencySetting > & | getTunableElements () |
const std::vector< DeviceSoapySDRParams::GainSetting > & | getIndividualGainsRanges () |
const SoapySDR::ArgInfoList & | getStreamArgInfoList () |
const SoapySDR::ArgInfoList & | getDeviceArgInfoList () |
void | initGainSettings (SoapySDROutputSettings &settings) |
void | initTunableElementsSettings (SoapySDROutputSettings &settings) |
void | initStreamArgSettings (SoapySDROutputSettings &settings) |
void | initDeviceArgSettings (SoapySDROutputSettings &settings) |
bool | hasDCAutoCorrection () |
bool | hasDCCorrectionValue () |
bool | hasIQAutoCorrection () |
bool | hasIQCorrectionValue () |
virtual int | webapiSettingsGet (SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage) |
virtual int | webapiSettingsPutPatch (bool force, const QStringList &deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage) |
virtual int | webapiReportGet (SWGSDRangel::SWGDeviceReport &response, QString &errorMessage) |
virtual int | webapiRunGet (SWGSDRangel::SWGDeviceState &response, QString &errorMessage) |
virtual int | webapiRun (bool run, SWGSDRangel::SWGDeviceState &response, QString &errorMessage) |
Public Member Functions inherited from DeviceSampleSink | |
DeviceSampleSink () | |
virtual | ~DeviceSampleSink () |
MessageQueue * | getInputMessageQueue () |
MessageQueue * | getMessageQueueToGUI () |
SampleSourceFifo * | getSampleFifo () |
Private Slots | |
void | networkManagerFinished (QNetworkReply *reply) |
Private Member Functions | |
bool | openDevice () |
void | closeDevice () |
SoapySDROutputThread * | findThread () |
void | moveThreadToBuddy () |
bool | applySettings (const SoapySDROutputSettings &settings, bool force=false) |
bool | setDeviceCenterFrequency (SoapySDR::Device *dev, int requestedChannel, quint64 freq_hz, int loPpmTenths) |
void | updateGains (SoapySDR::Device *dev, int requestedChannel, SoapySDROutputSettings &settings) |
void | updateTunableElements (SoapySDR::Device *dev, int requestedChannel, SoapySDROutputSettings &settings) |
void | webapiFormatDeviceSettings (SWGSDRangel::SWGDeviceSettings &response, const SoapySDROutputSettings &settings) |
void | webapiFormatDeviceReport (SWGSDRangel::SWGDeviceReport &response) |
QVariant | webapiVariantFromArgValue (SWGSDRangel::SWGArgValue *argValue) |
void | webapiFormatArgValue (const QVariant &v, SWGSDRangel::SWGArgValue *argValue) |
void | webapiFormatArgInfo (const SoapySDR::ArgInfo &arg, SWGSDRangel::SWGArgInfo *argInfo) |
void | webapiReverseSendSettings (QList< QString > &deviceSettingsKeys, const SoapySDROutputSettings &settings, bool force) |
void | webapiReverseSendStartStop (bool start) |
Private Attributes | |
DeviceAPI * | m_deviceAPI |
QMutex | m_mutex |
SoapySDROutputSettings | m_settings |
QString | m_deviceDescription |
bool | m_running |
SoapySDROutputThread * | m_thread |
DeviceSoapySDRShared | m_deviceShared |
QNetworkAccessManager * | m_networkManager |
QNetworkRequest | m_networkRequest |
Additional Inherited Members | |
Public Types inherited from DeviceSampleSink | |
enum | fcPos_t { FC_POS_INFRA = 0, FC_POS_SUPRA, FC_POS_CENTER } |
Static Public Member Functions inherited from DeviceSampleSink | |
static qint64 | calculateDeviceCenterFrequency (quint64 centerFrequency, qint64 transverterDeltaFrequency, int log2Interp, fcPos_t fcPos, quint32 devSampleRate, bool transverterMode=false) |
static qint64 | calculateCenterFrequency (quint64 deviceCenterFrequency, qint64 transverterDeltaFrequency, int log2Interp, fcPos_t fcPos, quint32 devSampleRate, bool transverterMode=false) |
static qint32 | calculateFrequencyShift (int log2Interp, fcPos_t fcPos, quint32 devSampleRate) |
Protected Slots inherited from DeviceSampleSink | |
void | handleInputMessages () |
Protected Attributes inherited from DeviceSampleSink | |
SampleSourceFifo | m_sampleSourceFifo |
MessageQueue | m_inputMessageQueue |
Input queue to the sink. More... | |
MessageQueue * | m_guiMessageQueue |
Input message queue to the GUI. More... | |
Definition at line 49 of file soapysdroutput.h.
SoapySDROutput::SoapySDROutput | ( | DeviceAPI * | deviceAPI | ) |
Definition at line 41 of file soapysdroutput.cpp.
|
virtual |
Definition at line 58 of file soapysdroutput.cpp.
References closeDevice(), m_networkManager, m_running, networkManagerFinished(), and stop().
|
private |
Definition at line 854 of file soapysdroutput.cpp.
References DeviceSoapySDRShared::MsgReportBuddyChange::create(), SoapySDROutput::MsgReportGainChange::create(), DeviceSoapySDRShared::MsgReportDeviceArgsChange::create(), findThread(), DeviceAPI::getDeviceEngineInputMessageQueue(), DeviceAPI::getDeviceItemIndex(), SoapySDROutputThread::getFifo(), DeviceSampleSink::getMessageQueueToGUI(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), hasDCAutoCorrection(), hasDCCorrectionValue(), hasIQCorrectionValue(), SoapySDROutputThread::isRunning(), SoapySDROutputSettings::m_antenna, SoapySDROutputSettings::m_autoDCCorrection, SoapySDROutputSettings::m_autoGain, SoapySDROutputSettings::m_bandwidth, SoapySDROutputSettings::m_centerFrequency, SoapySDROutputSettings::m_dcCorrection, DeviceSoapySDRShared::m_device, m_deviceAPI, SoapySDROutputSettings::m_deviceArgSettings, m_deviceShared, SoapySDROutputSettings::m_devSampleRate, SoapySDROutputSettings::m_globalGain, SoapySDROutputSettings::m_individualGains, SoapySDROutputSettings::m_iqCorrection, SoapySDROutputSettings::m_log2Interp, SoapySDROutputSettings::m_LOppmTenths, SoapySDROutputSettings::m_reverseAPIAddress, SoapySDROutputSettings::m_reverseAPIDeviceIndex, SoapySDROutputSettings::m_reverseAPIPort, DeviceSoapySDRShared::m_sampleFifoLengthInSeconds, DeviceSoapySDRShared::m_sampleFifoMinSize, DeviceSoapySDRShared::m_sampleFifoMinSize32, DeviceSampleSink::m_sampleSourceFifo, m_settings, SoapySDROutputSettings::m_streamArgSettings, SoapySDROutputSettings::m_transverterDeltaFrequency, SoapySDROutputSettings::m_transverterMode, SoapySDROutputSettings::m_tunableElements, SoapySDROutputSettings::m_useReverseAPI, leansdr::max(), MessageQueue::push(), SampleSourceFifo::resize(), setDeviceCenterFrequency(), SoapySDROutputThread::setFifo(), SoapySDROutputThread::setLog2Interpolation(), SoapySDROutputThread::setSampleRate(), SoapySDROutputThread::startWork(), SoapySDROutputThread::stopWork(), updateGains(), and webapiReverseSendSettings().
Referenced by handleMessage(), init(), and stop().
|
private |
Definition at line 151 of file soapysdroutput.cpp.
References DeviceSoapySDR::closeSoapySdr(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), DeviceSoapySDR::instance(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_device, m_deviceAPI, m_deviceShared, m_running, DeviceSoapySDRShared::m_sink, m_thread, moveThreadToBuddy(), and stop().
Referenced by ~SoapySDROutput().
|
virtual |
Implements DeviceSampleSink.
Definition at line 644 of file soapysdroutput.cpp.
References SoapySDROutput::MsgConfigureSoapySDROutput::create(), SoapySDROutputSettings::deserialize(), DeviceSampleSink::m_guiMessageQueue, DeviceSampleSink::m_inputMessageQueue, m_settings, MessageQueue::push(), and SoapySDROutputSettings::resetToDefaults().
|
virtual |
Implements DeviceSampleSink.
Definition at line 70 of file soapysdroutput.cpp.
|
private |
Definition at line 362 of file soapysdroutput.cpp.
References DeviceAPI::getSinkBuddies(), getThread(), m_deviceAPI, and m_thread.
Referenced by applySettings(), start(), and stop().
const std::vector< std::string > & SoapySDROutput::getAntennas | ( | ) |
Definition at line 234 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRParams::ChannelSettings::m_antennas, DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
const SoapySDR::RangeList & SoapySDROutput::getBandwidthRanges | ( | ) |
Definition at line 240 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRParams::ChannelSettings::m_bandwidthsRanges, DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
|
virtual |
Center frequency exposed by the sink.
Implements DeviceSampleSink.
Definition at line 677 of file soapysdroutput.cpp.
References SoapySDROutputSettings::m_centerFrequency, and m_settings.
const SoapySDR::ArgInfoList & SoapySDROutput::getDeviceArgInfoList | ( | ) |
Definition at line 258 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getDeviceArgs(), DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
|
virtual |
Implements DeviceSampleSink.
Definition at line 666 of file soapysdroutput.cpp.
References m_deviceDescription.
Definition at line 178 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, DeviceSoapySDRParams::ChannelSettings::m_frequencySettings, and DeviceSoapySDRParams::FrequencySetting::m_ranges.
Referenced by SoapySDROutputGui::SoapySDROutputGui(), and SoapySDROutputGui::updateFrequencyLimits().
void SoapySDROutput::getGlobalGainRange | ( | int & | min, |
int & | max | ||
) |
Definition at line 206 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_gainRange.
Referenced by SoapySDROutputGui::createGlobalGainControl().
const std::vector< DeviceSoapySDRParams::GainSetting > & SoapySDROutput::getIndividualGainsRanges | ( | ) |
Definition at line 252 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_gainSettings.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
const SoapySDR::RangeList & SoapySDROutput::getRateRanges | ( | ) |
Definition at line 228 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_ratesRanges.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
|
virtual |
Sample rate exposed by the sink.
Implements DeviceSampleSink.
Definition at line 671 of file soapysdroutput.cpp.
References SoapySDROutputSettings::m_devSampleRate, SoapySDROutputSettings::m_log2Interp, and m_settings.
const SoapySDR::ArgInfoList & SoapySDROutput::getStreamArgInfoList | ( | ) |
Definition at line 296 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_streamSettingsArgs.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
|
inline |
Definition at line 127 of file soapysdroutput.h.
Referenced by findThread().
const std::vector< DeviceSoapySDRParams::FrequencySetting > & SoapySDROutput::getTunableElements | ( | ) |
Definition at line 246 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_frequencySettings.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
|
virtual |
Implements DeviceSampleSink.
Definition at line 756 of file soapysdroutput.cpp.
References applySettings(), SoapySDROutput::MsgConfigureSoapySDROutput::create(), DeviceSoapySDRShared::MsgReportDeviceArgsChange::create(), DeviceSoapySDRShared::MsgReportDeviceArgsChange::getDeviceArgSettings(), DeviceAPI::getDeviceItemIndex(), SoapySDROutput::MsgConfigureSoapySDROutput::getForce(), DeviceSampleSink::getMessageQueueToGUI(), SoapySDROutput::MsgConfigureSoapySDROutput::getSettings(), SoapySDROutput::MsgStartStop::getStartStop(), DeviceSoapySDRParams::getTxChannelMainTunableElementName(), DeviceAPI::initDeviceEngine(), SoapySDROutputSettings::m_bandwidth, SoapySDROutputSettings::m_centerFrequency, DeviceSoapySDRShared::m_device, m_deviceAPI, SoapySDROutputSettings::m_deviceArgSettings, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, SoapySDROutputSettings::m_devSampleRate, m_settings, SoapySDROutputSettings::m_useReverseAPI, Message::match(), MessageQueue::push(), DeviceAPI::startDeviceEngine(), DeviceAPI::stopDeviceEngine(), and webapiReverseSendStartStop().
bool SoapySDROutput::hasDCAutoCorrection | ( | ) |
Definition at line 339 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_hasDCAutoCorrection.
Referenced by applySettings(), and SoapySDROutputGui::createCorrectionsControl().
bool SoapySDROutput::hasDCCorrectionValue | ( | ) |
Definition at line 345 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_hasDCOffsetValue.
Referenced by applySettings(), and SoapySDROutputGui::createCorrectionsControl().
|
inline |
Definition at line 158 of file soapysdroutput.h.
Referenced by SoapySDROutputGui::createCorrectionsControl().
bool SoapySDROutput::hasIQCorrectionValue | ( | ) |
Definition at line 351 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_hasIQBalanceValue.
Referenced by applySettings(), and SoapySDROutputGui::createCorrectionsControl().
|
virtual |
initializations to be done when all collaborating objects are created and possibly connected
Implements DeviceSampleSink.
Definition at line 357 of file soapysdroutput.cpp.
References applySettings(), and m_settings.
void SoapySDROutput::initDeviceArgSettings | ( | SoapySDROutputSettings & | settings | ) |
Definition at line 321 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getDeviceArgs(), SoapySDROutputSettings::m_deviceArgSettings, DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
void SoapySDROutput::initGainSettings | ( | SoapySDROutputSettings & | settings | ) |
Definition at line 263 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_device, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, DeviceSoapySDRParams::ChannelSettings::m_gainSettings, SoapySDROutputSettings::m_globalGain, SoapySDROutputSettings::m_individualGains, and updateGains().
Referenced by SoapySDROutputGui::SoapySDROutputGui().
void SoapySDROutput::initStreamArgSettings | ( | SoapySDROutputSettings & | settings | ) |
Definition at line 302 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, SoapySDROutputSettings::m_streamArgSettings, and DeviceSoapySDRParams::ChannelSettings::m_streamSettingsArgs.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
void SoapySDROutput::initTunableElementsSettings | ( | SoapySDROutputSettings & | settings | ) |
Definition at line 276 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_device, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, DeviceSoapySDRParams::ChannelSettings::m_frequencySettings, SoapySDROutputSettings::m_tunableElements, and updateTunableElements().
Referenced by SoapySDROutputGui::SoapySDROutputGui().
bool SoapySDROutput::isAGCSupported | ( | ) |
Definition at line 222 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_hasAGC.
Referenced by SoapySDROutputGui::createGlobalGainControl().
|
private |
Definition at line 394 of file soapysdroutput.cpp.
References DeviceAPI::getSinkBuddies(), m_deviceAPI, m_thread, and setThread().
Referenced by closeDevice().
|
privateslot |
Definition at line 1929 of file soapysdroutput.cpp.
Referenced by ~SoapySDROutput().
|
private |
Definition at line 75 of file soapysdroutput.cpp.
References DeviceAPI::getBuddySharedPtr(), DeviceAPI::getDeviceItemIndex(), DeviceAPI::getHardwareUserArguments(), DeviceAPI::getSamplingDeviceSequence(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), DeviceSoapySDR::instance(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_device, m_deviceAPI, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, SoapySDROutputSettings::m_devSampleRate, SoapySDROutputSettings::m_log2Interp, DeviceSampleSink::m_sampleSourceFifo, m_settings, DeviceSoapySDRShared::m_sink, DeviceSoapySDR::openSoapySDR(), SampleSourceFifo::resize(), and DeviceAPI::setBuddySharedPtr().
|
virtual |
Implements DeviceSampleSink.
Definition at line 639 of file soapysdroutput.cpp.
References m_settings, and SoapySDROutputSettings::serialize().
|
virtual |
Implements DeviceSampleSink.
Definition at line 682 of file soapysdroutput.cpp.
References SoapySDROutput::MsgConfigureSoapySDROutput::create(), SoapySDROutputSettings::m_centerFrequency, DeviceSampleSink::m_guiMessageQueue, DeviceSampleSink::m_inputMessageQueue, m_settings, and MessageQueue::push().
|
private |
Definition at line 697 of file soapysdroutput.cpp.
References DeviceSoapySDRParams::getTxChannelMainTunableElementName(), DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by applySettings().
|
inlinevirtual |
Implements DeviceSampleSink.
Definition at line 133 of file soapysdroutput.h.
Referenced by SoapySDROutputGui::SoapySDROutputGui().
|
inlinevirtual |
For when the sink sample rate is set externally.
Implements DeviceSampleSink.
Definition at line 136 of file soapysdroutput.h.
References leansdr::max(), and leansdr::min().
|
inline |
Definition at line 128 of file soapysdroutput.h.
Referenced by moveThreadToBuddy().
|
virtual |
Implements DeviceSampleSink.
Definition at line 411 of file soapysdroutput.cpp.
References findThread(), DeviceAPI::getDeviceItemIndex(), SoapySDROutputThread::getFifo(), SoapySDROutputThread::getLog2Interpolation(), SoapySDROutputThread::getNbChannels(), DeviceAPI::getSinkBuddies(), i, DeviceSoapySDRShared::m_device, m_deviceAPI, m_deviceShared, SoapySDROutputSettings::m_devSampleRate, SoapySDROutputSettings::m_log2Interp, m_running, DeviceSampleSink::m_sampleSourceFifo, m_settings, m_thread, SoapySDROutputThread::setFifo(), SoapySDROutputThread::setLog2Interpolation(), SoapySDROutputThread::setSampleRate(), SoapySDROutputThread::startWork(), and SoapySDROutputThread::stopWork().
|
virtual |
Implements DeviceSampleSink.
Definition at line 528 of file soapysdroutput.cpp.
References applySettings(), findThread(), DeviceAPI::getDeviceItemIndex(), SoapySDROutputThread::getFifo(), SoapySDROutputThread::getLog2Interpolation(), SoapySDROutputThread::getNbChannels(), DeviceAPI::getSinkBuddies(), i, DeviceSoapySDRShared::m_device, m_deviceAPI, m_deviceShared, m_running, m_settings, m_thread, SoapySDROutputThread::setFifo(), SoapySDROutputThread::setLog2Interpolation(), SoapySDROutputThread::startWork(), and SoapySDROutputThread::stopWork().
Referenced by closeDevice(), and ~SoapySDROutput().
|
private |
Definition at line 718 of file soapysdroutput.cpp.
References SoapySDROutputSettings::m_globalGain, and SoapySDROutputSettings::m_individualGains.
Referenced by applySettings(), and initGainSettings().
|
private |
Definition at line 738 of file soapysdroutput.cpp.
References SoapySDROutputSettings::m_tunableElements.
Referenced by initTunableElementsSettings().
|
private |
Definition at line 1783 of file soapysdroutput.cpp.
References SWGSDRangel::SWGArgInfo::getOptionNames(), SWGSDRangel::SWGArgInfo::getRange(), SWGSDRangel::SWGArgInfo::getValueOptions(), SWGSDRangel::SWGArgInfo::setDescription(), SWGSDRangel::SWGArgInfo::setKey(), SWGSDRangel::SWGRangeFloat::setMax(), SWGSDRangel::SWGRangeFloat::setMin(), SWGSDRangel::SWGArgInfo::setName(), SWGSDRangel::SWGArgInfo::setOptionNames(), SWGSDRangel::SWGArgInfo::setRange(), SWGSDRangel::SWGArgInfo::setUnits(), SWGSDRangel::SWGArgInfo::setValueOptions(), SWGSDRangel::SWGArgInfo::setValueString(), and SWGSDRangel::SWGArgInfo::setValueType().
Referenced by webapiFormatDeviceReport().
|
private |
Definition at line 1759 of file soapysdroutput.cpp.
References arg(), SWGSDRangel::SWGArgValue::setValueString(), and SWGSDRangel::SWGArgValue::setValueType().
Referenced by webapiFormatDeviceSettings().
|
private |
Definition at line 1637 of file soapysdroutput.cpp.
References SWGSDRangel::SWGSoapySDRReport::getAntennas(), SWGSDRangel::SWGSoapySDRReport::getBandwidthsRanges(), DeviceSoapySDRParams::getDeviceArgs(), SWGSDRangel::SWGSoapySDRReport::getDeviceSettingsArgs(), SWGSDRangel::SWGSoapySDRReport::getFrequencySettings(), SWGSDRangel::SWGSoapySDRReport::getFrequencySettingsArgs(), SWGSDRangel::SWGSoapySDRReport::getGainRange(), SWGSDRangel::SWGSoapySDRReport::getGainSettings(), SWGSDRangel::SWGSoapySDRReport::getRatesRanges(), SWGSDRangel::SWGDeviceReport::getSoapySdrOutputReport(), SWGSDRangel::SWGSoapySDRReport::getStreamSettingsArgs(), DeviceSoapySDRParams::getTxChannelSettings(), DeviceSoapySDRParams::ChannelSettings::m_antennas, DeviceSoapySDRParams::ChannelSettings::m_bandwidthsRanges, DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, DeviceSoapySDRParams::ChannelSettings::m_frequencySettings, DeviceSoapySDRParams::ChannelSettings::m_frequencySettingsArgs, DeviceSoapySDRParams::ChannelSettings::m_gainRange, DeviceSoapySDRParams::ChannelSettings::m_gainSettings, DeviceSoapySDRParams::ChannelSettings::m_hasAGC, DeviceSoapySDRParams::ChannelSettings::m_hasDCAutoCorrection, DeviceSoapySDRParams::ChannelSettings::m_hasDCOffsetValue, DeviceSoapySDRParams::ChannelSettings::m_hasFrequencyCorrectionValue, DeviceSoapySDRParams::ChannelSettings::m_hasIQBalanceValue, DeviceSoapySDRParams::ChannelSettings::m_ratesRanges, DeviceSoapySDRParams::ChannelSettings::m_streamSettingsArgs, SWGSDRangel::SWGSoapySDRReport::setAntennas(), SWGSDRangel::SWGSoapySDRReport::setBandwidthsRanges(), SWGSDRangel::SWGSoapySDRReport::setDeviceSettingsArgs(), SWGSDRangel::SWGSoapySDRReport::setFrequencySettings(), SWGSDRangel::SWGSoapySDRReport::setFrequencySettingsArgs(), SWGSDRangel::SWGSoapySDRReport::setGainRange(), SWGSDRangel::SWGSoapySDRReport::setGainSettings(), SWGSDRangel::SWGSoapySDRReport::setHasAgc(), SWGSDRangel::SWGSoapySDRReport::setHasDcAutoCorrection(), SWGSDRangel::SWGSoapySDRReport::setHasDcOffsetValue(), SWGSDRangel::SWGSoapySDRReport::setHasFrequencyCorrectionValue(), SWGSDRangel::SWGSoapySDRReport::setHasIqBalanceValue(), SWGSDRangel::SWGRangeFloat::setMax(), SWGSDRangel::SWGRangeFloat::setMin(), SWGSDRangel::SWGSoapySDRReport::setRatesRanges(), SWGSDRangel::SWGSoapySDRReport::setStreamSettingsArgs(), and webapiFormatArgInfo().
Referenced by webapiReportGet().
|
private |
Definition at line 1531 of file soapysdroutput.cpp.
References arg(), SWGSDRangel::SWGSoapySDROutputSettings::getAntenna(), SWGSDRangel::SWGSoapySDROutputSettings::getDcCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::getDeviceArgSettings(), SWGSDRangel::SWGSoapySDROutputSettings::getIndividualGains(), SWGSDRangel::SWGSoapySDROutputSettings::getIqCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::getReverseApiAddress(), SWGSDRangel::SWGDeviceSettings::getSoapySdrOutputSettings(), SWGSDRangel::SWGSoapySDROutputSettings::getStreamArgSettings(), SWGSDRangel::SWGSoapySDROutputSettings::getTunableElements(), SoapySDROutputSettings::m_antenna, SoapySDROutputSettings::m_autoDCCorrection, SoapySDROutputSettings::m_autoGain, SoapySDROutputSettings::m_autoIQCorrection, SoapySDROutputSettings::m_bandwidth, SoapySDROutputSettings::m_centerFrequency, SoapySDROutputSettings::m_dcCorrection, SoapySDROutputSettings::m_deviceArgSettings, SoapySDROutputSettings::m_devSampleRate, SoapySDROutputSettings::m_globalGain, SoapySDROutputSettings::m_individualGains, SoapySDROutputSettings::m_iqCorrection, SoapySDROutputSettings::m_log2Interp, SoapySDROutputSettings::m_LOppmTenths, SoapySDROutputSettings::m_reverseAPIAddress, SoapySDROutputSettings::m_reverseAPIDeviceIndex, SoapySDROutputSettings::m_reverseAPIPort, SoapySDROutputSettings::m_streamArgSettings, SoapySDROutputSettings::m_transverterDeltaFrequency, SoapySDROutputSettings::m_transverterMode, SoapySDROutputSettings::m_tunableElements, SoapySDROutputSettings::m_useReverseAPI, SWGSDRangel::SWGSoapySDROutputSettings::setAntenna(), SWGSDRangel::SWGSoapySDROutputSettings::setAutoDcCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::setAutoGain(), SWGSDRangel::SWGSoapySDROutputSettings::setAutoIqCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::setBandwidth(), SWGSDRangel::SWGSoapySDROutputSettings::setCenterFrequency(), SWGSDRangel::SWGSoapySDROutputSettings::setDcCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::setDeviceArgSettings(), SWGSDRangel::SWGSoapySDROutputSettings::setDevSampleRate(), SWGSDRangel::SWGSoapySDROutputSettings::setGlobalGain(), SWGSDRangel::SWGComplex::setImag(), SWGSDRangel::SWGSoapySDROutputSettings::setIndividualGains(), SWGSDRangel::SWGSoapySDROutputSettings::setIqCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::setLog2Interp(), SWGSDRangel::SWGSoapySDROutputSettings::setLOppmTenths(), SWGSDRangel::SWGComplex::setReal(), SWGSDRangel::SWGSoapySDROutputSettings::setReverseApiAddress(), SWGSDRangel::SWGSoapySDROutputSettings::setReverseApiDeviceIndex(), SWGSDRangel::SWGSoapySDROutputSettings::setReverseApiPort(), SWGSDRangel::SWGSoapySDROutputSettings::setStreamArgSettings(), SWGSDRangel::SWGSoapySDROutputSettings::setTransverterDeltaFrequency(), SWGSDRangel::SWGSoapySDROutputSettings::setTransverterMode(), SWGSDRangel::SWGSoapySDROutputSettings::setTunableElements(), SWGSDRangel::SWGSoapySDROutputSettings::setUseReverseApi(), and webapiFormatArgValue().
Referenced by webapiSettingsGet(), and webapiSettingsPutPatch().
|
virtual |
Reimplemented from DeviceSampleSink.
Definition at line 1494 of file soapysdroutput.cpp.
References SWGSDRangel::SWGDeviceReport::getSoapySdrOutputReport(), SWGSDRangel::SWGSoapySDRReport::init(), SWGSDRangel::SWGDeviceReport::setSoapySdrOutputReport(), and webapiFormatDeviceReport().
|
private |
Definition at line 1822 of file soapysdroutput.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), SWGSDRangel::SWGSoapySDROutputSettings::getDcCorrection(), DeviceAPI::getDeviceSetIndex(), SWGSDRangel::SWGSoapySDROutputSettings::getIqCorrection(), SWGSDRangel::SWGDeviceSettings::getSoapySdrOutputSettings(), SWGSDRangel::SWGSoapySDROutputSettings::init(), SoapySDROutputSettings::m_antenna, SoapySDROutputSettings::m_autoDCCorrection, SoapySDROutputSettings::m_autoGain, SoapySDROutputSettings::m_autoIQCorrection, SoapySDROutputSettings::m_bandwidth, SoapySDROutputSettings::m_centerFrequency, SoapySDROutputSettings::m_dcCorrection, m_deviceAPI, SoapySDROutputSettings::m_devSampleRate, SoapySDROutputSettings::m_globalGain, SoapySDROutputSettings::m_iqCorrection, SoapySDROutputSettings::m_log2Interp, SoapySDROutputSettings::m_LOppmTenths, m_networkManager, m_networkRequest, SoapySDROutputSettings::m_reverseAPIAddress, SoapySDROutputSettings::m_reverseAPIDeviceIndex, SoapySDROutputSettings::m_reverseAPIPort, SoapySDROutputSettings::m_transverterDeltaFrequency, SoapySDROutputSettings::m_transverterMode, SWGSDRangel::SWGSoapySDROutputSettings::setAntenna(), SWGSDRangel::SWGSoapySDROutputSettings::setAutoDcCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::setAutoGain(), SWGSDRangel::SWGSoapySDROutputSettings::setAutoIqCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::setBandwidth(), SWGSDRangel::SWGSoapySDROutputSettings::setCenterFrequency(), SWGSDRangel::SWGSoapySDROutputSettings::setDcCorrection(), SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGSoapySDROutputSettings::setDevSampleRate(), SWGSDRangel::SWGDeviceSettings::setDirection(), SWGSDRangel::SWGSoapySDROutputSettings::setGlobalGain(), SWGSDRangel::SWGComplex::setImag(), SWGSDRangel::SWGSoapySDROutputSettings::setIqCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::setLog2Interp(), SWGSDRangel::SWGSoapySDROutputSettings::setLOppmTenths(), SWGSDRangel::SWGDeviceSettings::setOriginatorIndex(), SWGSDRangel::SWGComplex::setReal(), SWGSDRangel::SWGDeviceSettings::setSoapySdrOutputSettings(), SWGSDRangel::SWGSoapySDROutputSettings::setTransverterDeltaFrequency(), and SWGSDRangel::SWGSoapySDROutputSettings::setTransverterMode().
Referenced by applySettings().
|
private |
Definition at line 1901 of file soapysdroutput.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), DeviceAPI::getDeviceSetIndex(), m_deviceAPI, m_networkManager, m_networkRequest, SoapySDROutputSettings::m_reverseAPIAddress, SoapySDROutputSettings::m_reverseAPIDeviceIndex, SoapySDROutputSettings::m_reverseAPIPort, m_settings, SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGDeviceSettings::setDirection(), and SWGSDRangel::SWGDeviceSettings::setOriginatorIndex().
Referenced by handleMessage().
|
virtual |
Reimplemented from DeviceSampleSink.
Definition at line 1512 of file soapysdroutput.cpp.
References SoapySDROutput::MsgStartStop::create(), DeviceAPI::getDeviceEngineStateStr(), SWGSDRangel::SWGDeviceState::getState(), m_deviceAPI, DeviceSampleSink::m_guiMessageQueue, DeviceSampleSink::m_inputMessageQueue, and MessageQueue::push().
|
virtual |
Reimplemented from DeviceSampleSink.
Definition at line 1503 of file soapysdroutput.cpp.
References DeviceAPI::getDeviceEngineStateStr(), SWGSDRangel::SWGDeviceState::getState(), and m_deviceAPI.
|
virtual |
Reimplemented from DeviceSampleSink.
Definition at line 1339 of file soapysdroutput.cpp.
References SWGSDRangel::SWGDeviceSettings::getSoapySdrOutputSettings(), SWGSDRangel::SWGSoapySDROutputSettings::init(), m_settings, SWGSDRangel::SWGDeviceSettings::setSoapySdrOutputSettings(), and webapiFormatDeviceSettings().
|
virtual |
Reimplemented from DeviceSampleSink.
Definition at line 1350 of file soapysdroutput.cpp.
References SoapySDROutput::MsgConfigureSoapySDROutput::create(), SWGSDRangel::SWGSoapySDROutputSettings::getAntenna(), SWGSDRangel::SWGSoapySDROutputSettings::getAutoDcCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::getAutoGain(), SWGSDRangel::SWGSoapySDROutputSettings::getAutoIqCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::getBandwidth(), SWGSDRangel::SWGSoapySDROutputSettings::getCenterFrequency(), SWGSDRangel::SWGSoapySDROutputSettings::getDcCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::getDeviceArgSettings(), SWGSDRangel::SWGSoapySDROutputSettings::getDevSampleRate(), SWGSDRangel::SWGSoapySDROutputSettings::getGlobalGain(), SWGSDRangel::SWGComplex::getImag(), SWGSDRangel::SWGSoapySDROutputSettings::getIndividualGains(), SWGSDRangel::SWGSoapySDROutputSettings::getIqCorrection(), SWGSDRangel::SWGSoapySDROutputSettings::getLog2Interp(), SWGSDRangel::SWGSoapySDROutputSettings::getLOppmTenths(), SWGSDRangel::SWGComplex::getReal(), SWGSDRangel::SWGSoapySDROutputSettings::getReverseApiAddress(), SWGSDRangel::SWGSoapySDROutputSettings::getReverseApiDeviceIndex(), SWGSDRangel::SWGSoapySDROutputSettings::getReverseApiPort(), SWGSDRangel::SWGDeviceSettings::getSoapySdrOutputSettings(), SWGSDRangel::SWGSoapySDROutputSettings::getStreamArgSettings(), SWGSDRangel::SWGSoapySDROutputSettings::getTransverterDeltaFrequency(), SWGSDRangel::SWGSoapySDROutputSettings::getTransverterMode(), SWGSDRangel::SWGSoapySDROutputSettings::getTunableElements(), SWGSDRangel::SWGSoapySDROutputSettings::getUseReverseApi(), SoapySDROutputSettings::m_antenna, SoapySDROutputSettings::m_autoDCCorrection, SoapySDROutputSettings::m_autoGain, SoapySDROutputSettings::m_autoIQCorrection, SoapySDROutputSettings::m_bandwidth, SoapySDROutputSettings::m_centerFrequency, SoapySDROutputSettings::m_dcCorrection, SoapySDROutputSettings::m_deviceArgSettings, SoapySDROutputSettings::m_devSampleRate, SoapySDROutputSettings::m_globalGain, DeviceSampleSink::m_guiMessageQueue, SoapySDROutputSettings::m_individualGains, DeviceSampleSink::m_inputMessageQueue, SoapySDROutputSettings::m_iqCorrection, SoapySDROutputSettings::m_log2Interp, SoapySDROutputSettings::m_LOppmTenths, SoapySDROutputSettings::m_reverseAPIAddress, SoapySDROutputSettings::m_reverseAPIDeviceIndex, SoapySDROutputSettings::m_reverseAPIPort, m_settings, SoapySDROutputSettings::m_streamArgSettings, SoapySDROutputSettings::m_transverterDeltaFrequency, SoapySDROutputSettings::m_transverterMode, SoapySDROutputSettings::m_tunableElements, SoapySDROutputSettings::m_useReverseAPI, MessageQueue::push(), webapiFormatDeviceSettings(), and webapiVariantFromArgValue().
|
private |
Definition at line 1746 of file soapysdroutput.cpp.
References SWGSDRangel::SWGArgValue::getValueString(), and SWGSDRangel::SWGArgValue::getValueType().
Referenced by webapiSettingsPutPatch().
|
private |
Definition at line 185 of file soapysdroutput.h.
Referenced by applySettings(), closeDevice(), findThread(), handleMessage(), moveThreadToBuddy(), openDevice(), start(), stop(), webapiReverseSendSettings(), webapiReverseSendStartStop(), webapiRun(), and webapiRunGet().
|
private |
Definition at line 188 of file soapysdroutput.h.
Referenced by getDeviceDescription().
|
private |
Definition at line 191 of file soapysdroutput.h.
Referenced by applySettings(), closeDevice(), getAntennas(), getBandwidthRanges(), getDeviceArgInfoList(), getFrequencyRange(), getGlobalGainRange(), getIndividualGainsRanges(), getRateRanges(), getStreamArgInfoList(), getTunableElements(), handleMessage(), hasDCAutoCorrection(), hasDCCorrectionValue(), hasIQCorrectionValue(), initDeviceArgSettings(), initGainSettings(), initStreamArgSettings(), initTunableElementsSettings(), isAGCSupported(), openDevice(), setDeviceCenterFrequency(), start(), stop(), and webapiFormatDeviceReport().
|
private |
Definition at line 186 of file soapysdroutput.h.
|
private |
Definition at line 192 of file soapysdroutput.h.
Referenced by webapiReverseSendSettings(), webapiReverseSendStartStop(), and ~SoapySDROutput().
|
private |
Definition at line 193 of file soapysdroutput.h.
Referenced by webapiReverseSendSettings(), and webapiReverseSendStartStop().
|
private |
Definition at line 189 of file soapysdroutput.h.
Referenced by closeDevice(), start(), stop(), and ~SoapySDROutput().
|
private |
Definition at line 187 of file soapysdroutput.h.
Referenced by applySettings(), deserialize(), getCenterFrequency(), getSampleRate(), handleMessage(), init(), openDevice(), serialize(), setCenterFrequency(), start(), stop(), webapiReverseSendStartStop(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
private |
Definition at line 190 of file soapysdroutput.h.
Referenced by closeDevice(), findThread(), moveThreadToBuddy(), start(), and stop().