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 <soapysdrinput.h>
Classes | |
class | MsgConfigureSoapySDRInput |
class | MsgFileRecord |
class | MsgReportGainChange |
class | MsgStartStop |
Public Member Functions | |
SoapySDRInput (DeviceAPI *deviceAPI) | |
virtual | ~SoapySDRInput () |
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 () |
SoapySDRInputThread * | getThread () |
void | setThread (SoapySDRInputThread *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 source. More... | |
virtual void | setSampleRate (int sampleRate) |
For when the source sample rate is set externally. More... | |
virtual quint64 | getCenterFrequency () const |
Center frequency exposed by the source. 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 std::vector< std::string > & | getAntennas () |
const SoapySDR::RangeList & | getRateRanges () |
const SoapySDR::RangeList & | getBandwidthRanges () |
int | getAntennaIndex (const std::string &antenna) |
const std::vector< DeviceSoapySDRParams::FrequencySetting > & | getTunableElements () |
const std::vector< DeviceSoapySDRParams::GainSetting > & | getIndividualGainsRanges () |
const SoapySDR::ArgInfoList & | getStreamArgInfoList () |
const SoapySDR::ArgInfoList & | getDeviceArgInfoList () |
void | initGainSettings (SoapySDRInputSettings &settings) |
void | initTunableElementsSettings (SoapySDRInputSettings &settings) |
void | initStreamArgSettings (SoapySDRInputSettings &settings) |
void | initDeviceArgSettings (SoapySDRInputSettings &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 DeviceSampleSource | |
DeviceSampleSource () | |
virtual | ~DeviceSampleSource () |
MessageQueue * | getInputMessageQueue () |
MessageQueue * | getMessageQueueToGUI () |
SampleSinkFifo * | getSampleFifo () |
Private Slots | |
void | networkManagerFinished (QNetworkReply *reply) |
Private Member Functions | |
bool | openDevice () |
void | closeDevice () |
SoapySDRInputThread * | findThread () |
void | moveThreadToBuddy () |
bool | applySettings (const SoapySDRInputSettings &settings, bool force=false) |
bool | setDeviceCenterFrequency (SoapySDR::Device *dev, int requestedChannel, quint64 freq_hz, int loPpmTenths) |
void | updateGains (SoapySDR::Device *dev, int requestedChannel, SoapySDRInputSettings &settings) |
void | updateTunableElements (SoapySDR::Device *dev, int requestedChannel, SoapySDRInputSettings &settings) |
void | webapiFormatDeviceSettings (SWGSDRangel::SWGDeviceSettings &response, const SoapySDRInputSettings &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 SoapySDRInputSettings &settings, bool force) |
void | webapiReverseSendStartStop (bool start) |
Private Attributes | |
DeviceAPI * | m_deviceAPI |
QMutex | m_mutex |
SoapySDRInputSettings | m_settings |
QString | m_deviceDescription |
bool | m_running |
SoapySDRInputThread * | m_thread |
DeviceSoapySDRShared | m_deviceShared |
FileRecord * | m_fileSink |
File sink to record device I/Q output. More... | |
QNetworkAccessManager * | m_networkManager |
QNetworkRequest | m_networkRequest |
Additional Inherited Members | |
Public Types inherited from DeviceSampleSource | |
enum | fcPos_t { FC_POS_INFRA = 0, FC_POS_SUPRA, FC_POS_CENTER } |
enum | FrequencyShiftScheme { FSHIFT_STD = 0, FSHIFT_TXSYNC } |
Static Public Member Functions inherited from DeviceSampleSource | |
static qint64 | calculateDeviceCenterFrequency (quint64 centerFrequency, qint64 transverterDeltaFrequency, int log2Decim, fcPos_t fcPos, quint32 devSampleRate, FrequencyShiftScheme frequencyShiftScheme, bool transverterMode=false) |
static qint64 | calculateCenterFrequency (quint64 deviceCenterFrequency, qint64 transverterDeltaFrequency, int log2Decim, fcPos_t fcPos, quint32 devSampleRate, FrequencyShiftScheme frequencyShiftScheme, bool transverterMode=false) |
static qint32 | calculateFrequencyShift (int log2Decim, fcPos_t fcPos, quint32 devSampleRate, FrequencyShiftScheme frequencyShiftScheme) |
Protected Slots inherited from DeviceSampleSource | |
void | handleInputMessages () |
Protected Attributes inherited from DeviceSampleSource | |
SampleSinkFifo | m_sampleFifo |
MessageQueue | m_inputMessageQueue |
Input queue to the source. More... | |
MessageQueue * | m_guiMessageQueue |
Input message queue to the GUI. More... | |
Definition at line 50 of file soapysdrinput.h.
SoapySDRInput::SoapySDRInput | ( | DeviceAPI * | deviceAPI | ) |
Definition at line 44 of file soapysdrinput.cpp.
References arg().
|
virtual |
Definition at line 65 of file soapysdrinput.cpp.
References closeDevice(), m_deviceAPI, m_fileSink, m_networkManager, m_running, networkManagerFinished(), DeviceAPI::removeAncillarySink(), and stop().
|
private |
Definition at line 911 of file soapysdrinput.cpp.
References DeviceSampleSource::calculateDeviceCenterFrequency(), DeviceAPI::configureCorrections(), DeviceSoapySDRShared::MsgReportBuddyChange::create(), DeviceSoapySDRShared::MsgReportDeviceArgsChange::create(), SoapySDRInput::MsgReportGainChange::create(), findThread(), DeviceAPI::getDeviceEngineInputMessageQueue(), DeviceAPI::getDeviceItemIndex(), DeviceSampleSource::getMessageQueueToGUI(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), FileRecord::handleMessage(), hasDCAutoCorrection(), hasDCCorrectionValue(), hasIQCorrectionValue(), SoapySDRInputThread::isRunning(), SoapySDRInputSettings::m_antenna, SoapySDRInputSettings::m_autoDCCorrection, SoapySDRInputSettings::m_autoGain, SoapySDRInputSettings::m_bandwidth, SoapySDRInputSettings::m_centerFrequency, SoapySDRInputSettings::m_dcCorrection, DeviceSoapySDRShared::m_device, m_deviceAPI, SoapySDRInputSettings::m_deviceArgSettings, m_deviceShared, SoapySDRInputSettings::m_devSampleRate, SoapySDRInputSettings::m_fcPos, m_fileSink, SoapySDRInputSettings::m_globalGain, SoapySDRInputSettings::m_individualGains, SoapySDRInputSettings::m_iqCorrection, SoapySDRInputSettings::m_log2Decim, SoapySDRInputSettings::m_LOppmTenths, SoapySDRInputSettings::m_reverseAPIAddress, SoapySDRInputSettings::m_reverseAPIDeviceIndex, SoapySDRInputSettings::m_reverseAPIPort, m_settings, SoapySDRInputSettings::m_softDCCorrection, SoapySDRInputSettings::m_softIQCorrection, SoapySDRInputSettings::m_streamArgSettings, SoapySDRInputSettings::m_transverterDeltaFrequency, SoapySDRInputSettings::m_transverterMode, SoapySDRInputSettings::m_tunableElements, SoapySDRInputSettings::m_useReverseAPI, MessageQueue::push(), setDeviceCenterFrequency(), SoapySDRInputThread::setFcPos(), SoapySDRInputThread::setLog2Decimation(), SoapySDRInputThread::setSampleRate(), SoapySDRInputThread::startWork(), SoapySDRInputThread::stopWork(), updateGains(), and webapiReverseSendSettings().
Referenced by handleMessage(), and init().
|
private |
Definition at line 169 of file soapysdrinput.cpp.
References DeviceSoapySDR::closeSoapySdr(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), DeviceSoapySDR::instance(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_device, m_deviceAPI, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, m_running, DeviceSoapySDRShared::m_source, m_thread, moveThreadToBuddy(), and stop().
Referenced by ~SoapySDRInput().
|
virtual |
Implements DeviceSampleSource.
Definition at line 689 of file soapysdrinput.cpp.
|
virtual |
Implements DeviceSampleSource.
Definition at line 80 of file soapysdrinput.cpp.
|
private |
Definition at line 394 of file soapysdrinput.cpp.
References DeviceAPI::getSourceBuddies(), getThread(), m_deviceAPI, and m_thread.
Referenced by applySettings(), handleMessage(), start(), and stop().
int SoapySDRInput::getAntennaIndex | ( | const std::string & | antenna | ) |
Definition at line 266 of file soapysdrinput.cpp.
References getAntennas().
const std::vector< std::string > & SoapySDRInput::getAntennas | ( | ) |
Definition at line 248 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRParams::ChannelSettings::m_antennas, DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by getAntennaIndex(), and SoapySDRInputGui::SoapySDRInputGui().
const SoapySDR::RangeList & SoapySDRInput::getBandwidthRanges | ( | ) |
Definition at line 260 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRParams::ChannelSettings::m_bandwidthsRanges, DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by SoapySDRInputGui::SoapySDRInputGui().
|
virtual |
Center frequency exposed by the source.
Implements DeviceSampleSource.
Definition at line 706 of file soapysdrinput.cpp.
References SoapySDRInputSettings::m_centerFrequency, and m_settings.
const SoapySDR::ArgInfoList & SoapySDRInput::getDeviceArgInfoList | ( | ) |
Definition at line 296 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getDeviceArgs(), DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by SoapySDRInputGui::SoapySDRInputGui().
|
virtual |
Implements DeviceSampleSource.
Definition at line 695 of file soapysdrinput.cpp.
References m_deviceDescription.
Definition at line 198 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, DeviceSoapySDRParams::ChannelSettings::m_frequencySettings, and DeviceSoapySDRParams::FrequencySetting::m_ranges.
Referenced by SoapySDRInputGui::SoapySDRInputGui(), and SoapySDRInputGui::updateFrequencyLimits().
void SoapySDRInput::getGlobalGainRange | ( | int & | min, |
int & | max | ||
) |
Definition at line 226 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_gainRange.
Referenced by SoapySDRInputGui::createGlobalGainControl().
const std::vector< DeviceSoapySDRParams::GainSetting > & SoapySDRInput::getIndividualGainsRanges | ( | ) |
Definition at line 284 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_gainSettings.
Referenced by SoapySDRInputGui::SoapySDRInputGui().
const SoapySDR::RangeList & SoapySDRInput::getRateRanges | ( | ) |
Definition at line 254 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_ratesRanges.
Referenced by SoapySDRInputGui::SoapySDRInputGui().
|
virtual |
Sample rate exposed by the source.
Implements DeviceSampleSource.
Definition at line 700 of file soapysdrinput.cpp.
References SoapySDRInputSettings::m_devSampleRate, SoapySDRInputSettings::m_log2Decim, and m_settings.
const SoapySDR::ArgInfoList & SoapySDRInput::getStreamArgInfoList | ( | ) |
Definition at line 290 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_streamSettingsArgs.
Referenced by SoapySDRInputGui::SoapySDRInputGui().
|
inline |
Definition at line 148 of file soapysdrinput.h.
Referenced by findThread().
const std::vector< DeviceSoapySDRParams::FrequencySetting > & SoapySDRInput::getTunableElements | ( | ) |
Definition at line 278 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_frequencySettings.
Referenced by SoapySDRInputGui::SoapySDRInputGui().
|
virtual |
Implements DeviceSampleSource.
Definition at line 785 of file soapysdrinput.cpp.
References applySettings(), SoapySDRInput::MsgConfigureSoapySDRInput::create(), DeviceSoapySDRShared::MsgReportDeviceArgsChange::create(), findThread(), FileRecord::genUniqueFileName(), DeviceSoapySDRShared::MsgReportDeviceArgsChange::getDeviceArgSettings(), DeviceAPI::getDeviceItemIndex(), DeviceAPI::getDeviceUID(), DeviceSoapySDRShared::MsgReportBuddyChange::getFcPos(), SoapySDRInput::MsgConfigureSoapySDRInput::getForce(), DeviceSampleSource::getMessageQueueToGUI(), DeviceSoapySDRParams::getRxChannelMainTunableElementName(), SoapySDRInput::MsgConfigureSoapySDRInput::getSettings(), SoapySDRInput::MsgFileRecord::getStartStop(), SoapySDRInput::MsgStartStop::getStartStop(), DeviceAPI::initDeviceEngine(), SoapySDRInputSettings::m_bandwidth, SoapySDRInputSettings::m_centerFrequency, DeviceSoapySDRShared::m_device, m_deviceAPI, SoapySDRInputSettings::m_deviceArgSettings, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, SoapySDRInputSettings::m_devSampleRate, SoapySDRInputSettings::m_fcPos, SoapySDRInputSettings::m_fileRecordName, m_fileSink, m_settings, SoapySDRInputSettings::m_useReverseAPI, Message::match(), MessageQueue::push(), FileRecord::setFileName(), DeviceAPI::startDeviceEngine(), FileRecord::startRecording(), DeviceAPI::stopDeviceEngine(), FileRecord::stopRecording(), and webapiReverseSendStartStop().
bool SoapySDRInput::hasDCAutoCorrection | ( | ) |
Definition at line 371 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_hasDCAutoCorrection.
Referenced by applySettings(), and SoapySDRInputGui::createCorrectionsControl().
bool SoapySDRInput::hasDCCorrectionValue | ( | ) |
Definition at line 377 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_hasDCOffsetValue.
Referenced by applySettings(), and SoapySDRInputGui::createCorrectionsControl().
|
inline |
Definition at line 180 of file soapysdrinput.h.
Referenced by SoapySDRInputGui::createCorrectionsControl().
bool SoapySDRInput::hasIQCorrectionValue | ( | ) |
Definition at line 383 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_hasIQBalanceValue.
Referenced by applySettings(), and SoapySDRInputGui::createCorrectionsControl().
|
virtual |
initializations to be done when all collaborating objects are created and possibly connected
Implements DeviceSampleSource.
Definition at line 389 of file soapysdrinput.cpp.
References applySettings(), and m_settings.
void SoapySDRInput::initDeviceArgSettings | ( | SoapySDRInputSettings & | settings | ) |
Definition at line 353 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getDeviceArgs(), SoapySDRInputSettings::m_deviceArgSettings, DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by SoapySDRInputGui::SoapySDRInputGui().
void SoapySDRInput::initGainSettings | ( | SoapySDRInputSettings & | settings | ) |
Definition at line 301 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_device, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, DeviceSoapySDRParams::ChannelSettings::m_gainSettings, SoapySDRInputSettings::m_globalGain, SoapySDRInputSettings::m_individualGains, and updateGains().
Referenced by SoapySDRInputGui::SoapySDRInputGui().
void SoapySDRInput::initStreamArgSettings | ( | SoapySDRInputSettings & | settings | ) |
Definition at line 334 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, SoapySDRInputSettings::m_streamArgSettings, and DeviceSoapySDRParams::ChannelSettings::m_streamSettingsArgs.
Referenced by SoapySDRInputGui::SoapySDRInputGui().
void SoapySDRInput::initTunableElementsSettings | ( | SoapySDRInputSettings & | settings | ) |
Definition at line 314 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_device, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, DeviceSoapySDRParams::ChannelSettings::m_frequencySettings, SoapySDRInputSettings::m_tunableElements, and updateTunableElements().
Referenced by SoapySDRInputGui::SoapySDRInputGui().
bool SoapySDRInput::isAGCSupported | ( | ) |
Definition at line 242 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelSettings(), DeviceSoapySDRShared::m_channel, DeviceSoapySDRShared::m_deviceParams, m_deviceShared, and DeviceSoapySDRParams::ChannelSettings::m_hasAGC.
Referenced by SoapySDRInputGui::createGlobalGainControl().
|
private |
Definition at line 426 of file soapysdrinput.cpp.
References DeviceAPI::getSourceBuddies(), m_deviceAPI, m_thread, and setThread().
Referenced by closeDevice().
|
privateslot |
Definition at line 2027 of file soapysdrinput.cpp.
Referenced by ~SoapySDRInput().
|
private |
Definition at line 85 of file soapysdrinput.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, DeviceSampleSource::m_sampleFifo, DeviceSoapySDRShared::m_source, DeviceSoapySDR::openSoapySDR(), DeviceAPI::setBuddySharedPtr(), and SampleSinkFifo::setSize().
|
virtual |
Implements DeviceSampleSource.
Definition at line 683 of file soapysdrinput.cpp.
References SimpleSerializer::final().
|
virtual |
Implements DeviceSampleSource.
Definition at line 711 of file soapysdrinput.cpp.
References SoapySDRInput::MsgConfigureSoapySDRInput::create(), SoapySDRInputSettings::m_centerFrequency, DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, m_settings, and MessageQueue::push().
|
private |
Definition at line 726 of file soapysdrinput.cpp.
References DeviceSoapySDRParams::getRxChannelMainTunableElementName(), DeviceSoapySDRShared::m_deviceParams, and m_deviceShared.
Referenced by applySettings().
|
inlinevirtual |
Implements DeviceSampleSource.
Definition at line 154 of file soapysdrinput.h.
Referenced by SoapySDRInputGui::SoapySDRInputGui().
|
inlinevirtual |
For when the source sample rate is set externally.
Implements DeviceSampleSource.
Definition at line 157 of file soapysdrinput.h.
References leansdr::max(), and leansdr::min().
|
inline |
Definition at line 149 of file soapysdrinput.h.
Referenced by moveThreadToBuddy().
|
virtual |
Implements DeviceSampleSource.
Definition at line 443 of file soapysdrinput.cpp.
References findThread(), DeviceAPI::getDeviceItemIndex(), SoapySDRInputThread::getFcPos(), SoapySDRInputThread::getFifo(), SoapySDRInputThread::getLog2Decimation(), SoapySDRInputThread::getNbChannels(), DeviceAPI::getSourceBuddies(), i, DeviceSoapySDRShared::m_device, m_deviceAPI, m_deviceShared, SoapySDRInputSettings::m_devSampleRate, SoapySDRInputSettings::m_fcPos, SoapySDRInputSettings::m_log2Decim, m_running, DeviceSampleSource::m_sampleFifo, m_settings, m_thread, SoapySDRInputThread::setFcPos(), SoapySDRInputThread::setFifo(), SoapySDRInputThread::setLog2Decimation(), SoapySDRInputThread::setSampleRate(), SoapySDRInputThread::startWork(), and SoapySDRInputThread::stopWork().
|
virtual |
Implements DeviceSampleSource.
Definition at line 566 of file soapysdrinput.cpp.
References findThread(), DeviceAPI::getDeviceItemIndex(), SoapySDRInputThread::getFcPos(), SoapySDRInputThread::getFifo(), SoapySDRInputThread::getLog2Decimation(), SoapySDRInputThread::getNbChannels(), DeviceAPI::getSourceBuddies(), i, DeviceSoapySDRShared::m_device, m_deviceAPI, m_deviceShared, m_running, m_thread, SoapySDRInputThread::setFcPos(), SoapySDRInputThread::setFifo(), SoapySDRInputThread::setLog2Decimation(), SoapySDRInputThread::startWork(), and SoapySDRInputThread::stopWork().
Referenced by closeDevice(), and ~SoapySDRInput().
|
private |
Definition at line 747 of file soapysdrinput.cpp.
References SoapySDRInputSettings::m_globalGain, and SoapySDRInputSettings::m_individualGains.
Referenced by applySettings(), and initGainSettings().
|
private |
Definition at line 767 of file soapysdrinput.cpp.
References SoapySDRInputSettings::m_tunableElements.
Referenced by initTunableElementsSettings().
|
private |
Definition at line 1869 of file soapysdrinput.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 1845 of file soapysdrinput.cpp.
References arg(), SWGSDRangel::SWGArgValue::setValueString(), and SWGSDRangel::SWGArgValue::setValueType().
Referenced by webapiFormatDeviceSettings().
|
private |
Definition at line 1723 of file soapysdrinput.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(), DeviceSoapySDRParams::getRxChannelSettings(), SWGSDRangel::SWGDeviceReport::getSoapySdrInputReport(), SWGSDRangel::SWGSoapySDRReport::getStreamSettingsArgs(), 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 1608 of file soapysdrinput.cpp.
References arg(), SWGSDRangel::SWGSoapySDRInputSettings::getAntenna(), SWGSDRangel::SWGSoapySDRInputSettings::getDcCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::getDeviceArgSettings(), SWGSDRangel::SWGSoapySDRInputSettings::getFileRecordName(), SWGSDRangel::SWGSoapySDRInputSettings::getIndividualGains(), SWGSDRangel::SWGSoapySDRInputSettings::getIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::getReverseApiAddress(), SWGSDRangel::SWGDeviceSettings::getSoapySdrInputSettings(), SWGSDRangel::SWGSoapySDRInputSettings::getStreamArgSettings(), SWGSDRangel::SWGSoapySDRInputSettings::getTunableElements(), SoapySDRInputSettings::m_antenna, SoapySDRInputSettings::m_autoDCCorrection, SoapySDRInputSettings::m_autoGain, SoapySDRInputSettings::m_autoIQCorrection, SoapySDRInputSettings::m_bandwidth, SoapySDRInputSettings::m_centerFrequency, SoapySDRInputSettings::m_dcCorrection, SoapySDRInputSettings::m_deviceArgSettings, SoapySDRInputSettings::m_devSampleRate, SoapySDRInputSettings::m_fcPos, SoapySDRInputSettings::m_fileRecordName, SoapySDRInputSettings::m_globalGain, SoapySDRInputSettings::m_individualGains, SoapySDRInputSettings::m_iqCorrection, SoapySDRInputSettings::m_log2Decim, SoapySDRInputSettings::m_LOppmTenths, SoapySDRInputSettings::m_reverseAPIAddress, SoapySDRInputSettings::m_reverseAPIDeviceIndex, SoapySDRInputSettings::m_reverseAPIPort, SoapySDRInputSettings::m_softDCCorrection, SoapySDRInputSettings::m_softIQCorrection, SoapySDRInputSettings::m_streamArgSettings, SoapySDRInputSettings::m_transverterDeltaFrequency, SoapySDRInputSettings::m_transverterMode, SoapySDRInputSettings::m_tunableElements, SoapySDRInputSettings::m_useReverseAPI, SWGSDRangel::SWGSoapySDRInputSettings::setAntenna(), SWGSDRangel::SWGSoapySDRInputSettings::setAutoDcCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setAutoGain(), SWGSDRangel::SWGSoapySDRInputSettings::setAutoIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setBandwidth(), SWGSDRangel::SWGSoapySDRInputSettings::setCenterFrequency(), SWGSDRangel::SWGSoapySDRInputSettings::setDcCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setDeviceArgSettings(), SWGSDRangel::SWGSoapySDRInputSettings::setDevSampleRate(), SWGSDRangel::SWGSoapySDRInputSettings::setFcPos(), SWGSDRangel::SWGSoapySDRInputSettings::setFileRecordName(), SWGSDRangel::SWGSoapySDRInputSettings::setGlobalGain(), SWGSDRangel::SWGComplex::setImag(), SWGSDRangel::SWGSoapySDRInputSettings::setIndividualGains(), SWGSDRangel::SWGSoapySDRInputSettings::setIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setLog2Decim(), SWGSDRangel::SWGSoapySDRInputSettings::setLOppmTenths(), SWGSDRangel::SWGComplex::setReal(), SWGSDRangel::SWGSoapySDRInputSettings::setReverseApiAddress(), SWGSDRangel::SWGSoapySDRInputSettings::setReverseApiDeviceIndex(), SWGSDRangel::SWGSoapySDRInputSettings::setReverseApiPort(), SWGSDRangel::SWGSoapySDRInputSettings::setSoftDcCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setSoftIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setStreamArgSettings(), SWGSDRangel::SWGSoapySDRInputSettings::setTransverterDeltaFrequency(), SWGSDRangel::SWGSoapySDRInputSettings::setTransverterMode(), SWGSDRangel::SWGSoapySDRInputSettings::setTunableElements(), SWGSDRangel::SWGSoapySDRInputSettings::setUseReverseApi(), and webapiFormatArgValue().
Referenced by webapiSettingsGet(), and webapiSettingsPutPatch().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1571 of file soapysdrinput.cpp.
References SWGSDRangel::SWGDeviceReport::getSoapySdrInputReport(), SWGSDRangel::SWGSoapySDRReport::init(), SWGSDRangel::SWGDeviceReport::setSoapySdrInputReport(), and webapiFormatDeviceReport().
|
private |
Definition at line 1908 of file soapysdrinput.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), SWGSDRangel::SWGSoapySDRInputSettings::getDcCorrection(), DeviceAPI::getDeviceSetIndex(), SWGSDRangel::SWGSoapySDRInputSettings::getIqCorrection(), SWGSDRangel::SWGDeviceSettings::getSoapySdrInputSettings(), SWGSDRangel::SWGSoapySDRInputSettings::init(), SoapySDRInputSettings::m_antenna, SoapySDRInputSettings::m_autoDCCorrection, SoapySDRInputSettings::m_autoGain, SoapySDRInputSettings::m_autoIQCorrection, SoapySDRInputSettings::m_bandwidth, SoapySDRInputSettings::m_centerFrequency, SoapySDRInputSettings::m_dcCorrection, m_deviceAPI, SoapySDRInputSettings::m_devSampleRate, SoapySDRInputSettings::m_fcPos, SoapySDRInputSettings::m_fileRecordName, SoapySDRInputSettings::m_globalGain, SoapySDRInputSettings::m_iqCorrection, SoapySDRInputSettings::m_log2Decim, SoapySDRInputSettings::m_LOppmTenths, m_networkManager, m_networkRequest, SoapySDRInputSettings::m_reverseAPIAddress, SoapySDRInputSettings::m_reverseAPIDeviceIndex, SoapySDRInputSettings::m_reverseAPIPort, SoapySDRInputSettings::m_softDCCorrection, SoapySDRInputSettings::m_softIQCorrection, SoapySDRInputSettings::m_transverterDeltaFrequency, SoapySDRInputSettings::m_transverterMode, SWGSDRangel::SWGSoapySDRInputSettings::setAntenna(), SWGSDRangel::SWGSoapySDRInputSettings::setAutoDcCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setAutoGain(), SWGSDRangel::SWGSoapySDRInputSettings::setAutoIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setBandwidth(), SWGSDRangel::SWGSoapySDRInputSettings::setCenterFrequency(), SWGSDRangel::SWGSoapySDRInputSettings::setDcCorrection(), SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGSoapySDRInputSettings::setDevSampleRate(), SWGSDRangel::SWGDeviceSettings::setDirection(), SWGSDRangel::SWGSoapySDRInputSettings::setFcPos(), SWGSDRangel::SWGSoapySDRInputSettings::setFileRecordName(), SWGSDRangel::SWGSoapySDRInputSettings::setGlobalGain(), SWGSDRangel::SWGComplex::setImag(), SWGSDRangel::SWGSoapySDRInputSettings::setIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setLog2Decim(), SWGSDRangel::SWGSoapySDRInputSettings::setLOppmTenths(), SWGSDRangel::SWGDeviceSettings::setOriginatorIndex(), SWGSDRangel::SWGComplex::setReal(), SWGSDRangel::SWGDeviceSettings::setSoapySdrInputSettings(), SWGSDRangel::SWGSoapySDRInputSettings::setSoftDcCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setSoftIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::setTransverterDeltaFrequency(), and SWGSDRangel::SWGSoapySDRInputSettings::setTransverterMode().
Referenced by applySettings().
|
private |
Definition at line 1999 of file soapysdrinput.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), DeviceAPI::getDeviceSetIndex(), m_deviceAPI, m_networkManager, m_networkRequest, SoapySDRInputSettings::m_reverseAPIAddress, SoapySDRInputSettings::m_reverseAPIDeviceIndex, SoapySDRInputSettings::m_reverseAPIPort, m_settings, SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGDeviceSettings::setDirection(), and SWGSDRangel::SWGDeviceSettings::setOriginatorIndex().
Referenced by handleMessage().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1589 of file soapysdrinput.cpp.
References SoapySDRInput::MsgStartStop::create(), DeviceAPI::getDeviceEngineStateStr(), SWGSDRangel::SWGDeviceState::getState(), m_deviceAPI, DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, and MessageQueue::push().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1580 of file soapysdrinput.cpp.
References DeviceAPI::getDeviceEngineStateStr(), SWGSDRangel::SWGDeviceState::getState(), and m_deviceAPI.
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1404 of file soapysdrinput.cpp.
References SWGSDRangel::SWGDeviceSettings::getSoapySdrInputSettings(), SWGSDRangel::SWGSoapySDRInputSettings::init(), m_settings, SWGSDRangel::SWGDeviceSettings::setSoapySdrInputSettings(), and webapiFormatDeviceSettings().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1415 of file soapysdrinput.cpp.
References SoapySDRInput::MsgConfigureSoapySDRInput::create(), SWGSDRangel::SWGSoapySDRInputSettings::getAntenna(), SWGSDRangel::SWGSoapySDRInputSettings::getAutoDcCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::getAutoGain(), SWGSDRangel::SWGSoapySDRInputSettings::getAutoIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::getBandwidth(), SWGSDRangel::SWGSoapySDRInputSettings::getCenterFrequency(), SWGSDRangel::SWGSoapySDRInputSettings::getDcCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::getDeviceArgSettings(), SWGSDRangel::SWGSoapySDRInputSettings::getDevSampleRate(), SWGSDRangel::SWGSoapySDRInputSettings::getFcPos(), SWGSDRangel::SWGSoapySDRInputSettings::getFileRecordName(), SWGSDRangel::SWGSoapySDRInputSettings::getGlobalGain(), SWGSDRangel::SWGComplex::getImag(), SWGSDRangel::SWGSoapySDRInputSettings::getIndividualGains(), SWGSDRangel::SWGSoapySDRInputSettings::getIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::getLog2Decim(), SWGSDRangel::SWGSoapySDRInputSettings::getLOppmTenths(), SWGSDRangel::SWGComplex::getReal(), SWGSDRangel::SWGSoapySDRInputSettings::getReverseApiAddress(), SWGSDRangel::SWGSoapySDRInputSettings::getReverseApiDeviceIndex(), SWGSDRangel::SWGSoapySDRInputSettings::getReverseApiPort(), SWGSDRangel::SWGDeviceSettings::getSoapySdrInputSettings(), SWGSDRangel::SWGSoapySDRInputSettings::getSoftDcCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::getSoftIqCorrection(), SWGSDRangel::SWGSoapySDRInputSettings::getStreamArgSettings(), SWGSDRangel::SWGSoapySDRInputSettings::getTransverterDeltaFrequency(), SWGSDRangel::SWGSoapySDRInputSettings::getTransverterMode(), SWGSDRangel::SWGSoapySDRInputSettings::getTunableElements(), SWGSDRangel::SWGSoapySDRInputSettings::getUseReverseApi(), SoapySDRInputSettings::m_antenna, SoapySDRInputSettings::m_autoDCCorrection, SoapySDRInputSettings::m_autoGain, SoapySDRInputSettings::m_autoIQCorrection, SoapySDRInputSettings::m_bandwidth, SoapySDRInputSettings::m_centerFrequency, SoapySDRInputSettings::m_dcCorrection, SoapySDRInputSettings::m_deviceArgSettings, SoapySDRInputSettings::m_devSampleRate, SoapySDRInputSettings::m_fcPos, SoapySDRInputSettings::m_fileRecordName, SoapySDRInputSettings::m_globalGain, DeviceSampleSource::m_guiMessageQueue, SoapySDRInputSettings::m_individualGains, DeviceSampleSource::m_inputMessageQueue, SoapySDRInputSettings::m_iqCorrection, SoapySDRInputSettings::m_log2Decim, SoapySDRInputSettings::m_LOppmTenths, SoapySDRInputSettings::m_reverseAPIAddress, SoapySDRInputSettings::m_reverseAPIDeviceIndex, SoapySDRInputSettings::m_reverseAPIPort, m_settings, SoapySDRInputSettings::m_softDCCorrection, SoapySDRInputSettings::m_softIQCorrection, SoapySDRInputSettings::m_streamArgSettings, SoapySDRInputSettings::m_transverterDeltaFrequency, SoapySDRInputSettings::m_transverterMode, SoapySDRInputSettings::m_tunableElements, SoapySDRInputSettings::m_useReverseAPI, MessageQueue::push(), webapiFormatDeviceSettings(), and webapiVariantFromArgValue().
|
private |
Definition at line 1832 of file soapysdrinput.cpp.
References SWGSDRangel::SWGArgValue::getValueString(), and SWGSDRangel::SWGArgValue::getValueType().
Referenced by webapiSettingsPutPatch().
|
private |
Definition at line 207 of file soapysdrinput.h.
Referenced by applySettings(), closeDevice(), findThread(), handleMessage(), moveThreadToBuddy(), openDevice(), start(), stop(), webapiReverseSendSettings(), webapiReverseSendStartStop(), webapiRun(), webapiRunGet(), and ~SoapySDRInput().
|
private |
Definition at line 210 of file soapysdrinput.h.
Referenced by getDeviceDescription().
|
private |
Definition at line 213 of file soapysdrinput.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 |
File sink to record device I/Q output.
Definition at line 214 of file soapysdrinput.h.
Referenced by applySettings(), handleMessage(), and ~SoapySDRInput().
|
private |
Definition at line 208 of file soapysdrinput.h.
|
private |
Definition at line 215 of file soapysdrinput.h.
Referenced by webapiReverseSendSettings(), webapiReverseSendStartStop(), and ~SoapySDRInput().
|
private |
Definition at line 216 of file soapysdrinput.h.
Referenced by webapiReverseSendSettings(), and webapiReverseSendStartStop().
|
private |
Definition at line 211 of file soapysdrinput.h.
Referenced by closeDevice(), start(), stop(), and ~SoapySDRInput().
|
private |
Definition at line 209 of file soapysdrinput.h.
Referenced by applySettings(), getCenterFrequency(), getSampleRate(), handleMessage(), init(), setCenterFrequency(), start(), webapiReverseSendStartStop(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
private |
Definition at line 212 of file soapysdrinput.h.
Referenced by closeDevice(), findThread(), moveThreadToBuddy(), start(), and stop().