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 <plutosdrinput.h>
Classes | |
class | MsgConfigurePlutoSDR |
class | MsgFileRecord |
class | MsgStartStop |
Public Member Functions | |
PlutoSDRInput (DeviceAPI *deviceAPI) | |
~PlutoSDRInput () | |
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 () |
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) |
virtual int | webapiRunGet (SWGSDRangel::SWGDeviceState &response, QString &errorMessage) |
virtual int | webapiRun (bool run, SWGSDRangel::SWGDeviceState &response, QString &errorMessage) |
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) |
uint32_t | getADCSampleRate () const |
uint32_t | getFIRSampleRate () const |
void | getRSSI (std::string &rssiStr) |
void | getLORange (qint64 &minLimit, qint64 &maxLimit) |
void | getbbLPRange (quint32 &minLimit, quint32 &maxLimit) |
void | getGain (int &gainStr) |
bool | fetchTemperature () |
float | getTemperature () |
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 () |
void | suspendBuddies () |
void | resumeBuddies () |
bool | applySettings (const PlutoSDRInputSettings &settings, bool force=false) |
void | webapiFormatDeviceSettings (SWGSDRangel::SWGDeviceSettings &response, const PlutoSDRInputSettings &settings) |
void | webapiFormatDeviceReport (SWGSDRangel::SWGDeviceReport &response) |
void | webapiReverseSendSettings (QList< QString > &deviceSettingsKeys, const PlutoSDRInputSettings &settings, bool force) |
void | webapiReverseSendStartStop (bool start) |
Private Attributes | |
DeviceAPI * | m_deviceAPI |
FileRecord * | m_fileSink |
QString | m_deviceDescription |
PlutoSDRInputSettings | m_settings |
bool | m_running |
DevicePlutoSDRShared | m_deviceShared |
struct iio_buffer * | m_plutoRxBuffer |
PlutoSDRInputThread * | m_plutoSDRInputThread |
DevicePlutoSDRBox::SampleRates | m_deviceSampleRates |
QMutex | m_mutex |
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 38 of file plutosdrinput.h.
PlutoSDRInput::PlutoSDRInput | ( | DeviceAPI * | deviceAPI | ) |
Definition at line 43 of file plutosdrinput.cpp.
References arg().
Referenced by PlutoSDRInput::MsgStartStop::MsgStartStop().
PlutoSDRInput::~PlutoSDRInput | ( | ) |
Definition at line 70 of file plutosdrinput.cpp.
References closeDevice(), m_deviceAPI, m_fileSink, m_networkManager, networkManagerFinished(), DeviceAPI::removeAncillarySink(), resumeBuddies(), and suspendBuddies().
Referenced by PlutoSDRInput::MsgStartStop::MsgStartStop().
|
private |
Definition at line 359 of file plutosdrinput.cpp.
References arg(), DeviceSampleSource::calculateDeviceCenterFrequency(), DeviceAPI::configureCorrections(), DevicePlutoSDRShared::MsgCrossReportToBuddy::create(), DevicePlutoSDRBox::DEVICE_PHY, DevicePlutoSDRParams::getBox(), DeviceAPI::getDeviceEngineInputMessageQueue(), DevicePlutoSDRBox::getRxSampleRates(), DeviceAPI::getSinkBuddies(), FileRecord::handleMessage(), PlutoSDRInputThread::isRunning(), DevicePlutoSDRBox::SampleRates::m_addaConnvRate, PlutoSDRInputSettings::m_antennaPath, DevicePlutoSDRBox::SampleRates::m_bbRateHz, PlutoSDRInputSettings::m_centerFrequency, PlutoSDRInputSettings::m_dcBlock, m_deviceAPI, DevicePlutoSDRShared::m_deviceParams, m_deviceSampleRates, m_deviceShared, PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_fcPos, PlutoSDRInputSettings::m_fileRecordName, m_fileSink, DevicePlutoSDRBox::SampleRates::m_firRate, PlutoSDRInputSettings::m_gain, PlutoSDRInputSettings::m_gainMode, DevicePlutoSDRBox::SampleRates::m_hb1Rate, DevicePlutoSDRBox::SampleRates::m_hb2Rate, DevicePlutoSDRBox::SampleRates::m_hb3Rate, PlutoSDRInputSettings::m_hwBBDCBlock, PlutoSDRInputSettings::m_hwIQCorrection, PlutoSDRInputSettings::m_hwRFDCBlock, PlutoSDRInputSettings::m_iqCorrection, PlutoSDRInputSettings::m_log2Decim, PlutoSDRInputSettings::m_LOppmTenths, PlutoSDRInputSettings::m_lpfBW, PlutoSDRInputSettings::m_lpfFIRBW, PlutoSDRInputSettings::m_lpfFIREnable, PlutoSDRInputSettings::m_lpfFIRGain, PlutoSDRInputSettings::m_lpfFIRlog2Decim, m_plutoSDRInputThread, PlutoSDRInputSettings::m_reverseAPIAddress, PlutoSDRInputSettings::m_reverseAPIDeviceIndex, PlutoSDRInputSettings::m_reverseAPIPort, m_settings, DevicePlutoSDRShared::m_thread, DevicePlutoSDRShared::m_threadWasRunning, PlutoSDRInputSettings::m_transverterDeltaFrequency, PlutoSDRInputSettings::m_transverterMode, PlutoSDRInputSettings::m_useReverseAPI, MessageQueue::push(), DevicePlutoSDRBox::set_params(), PlutoSDRInputThread::setFcPos(), DevicePlutoSDRBox::setFIR(), DevicePlutoSDRBox::setFIREnable(), PlutoSDRInputThread::setLog2Decimation(), DevicePlutoSDRBox::setLOPPMTenths(), DevicePlutoSDRBox::setSampleRate(), PlutoSDRInputThread::startWork(), DevicePlutoSDRShared::ThreadInterface::startWork(), PlutoSDRInputThread::stopWork(), DevicePlutoSDRShared::ThreadInterface::stopWork(), PlutoSDRInputSettings::translateGainMode(), PlutoSDRInputSettings::translateRFPath(), DevicePlutoSDRBox::USE_RX, and webapiReverseSendSettings().
Referenced by handleMessage(), init(), and start().
|
private |
Definition at line 315 of file plutosdrinput.cpp.
References DevicePlutoSDRParams::close(), DevicePlutoSDRParams::getBox(), DeviceAPI::getSinkBuddies(), m_deviceAPI, DevicePlutoSDRShared::m_deviceParams, and m_deviceShared.
Referenced by ~PlutoSDRInput().
|
virtual |
Implements DeviceSampleSource.
Definition at line 133 of file plutosdrinput.cpp.
References PlutoSDRInput::MsgConfigurePlutoSDR::create(), PlutoSDRInputSettings::deserialize(), DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, m_settings, MessageQueue::push(), and PlutoSDRInputSettings::resetToDefaults().
Referenced by PlutoSDRInput::MsgStartStop::MsgStartStop().
|
virtual |
Implements DeviceSampleSource.
Definition at line 81 of file plutosdrinput.cpp.
Referenced by PlutoSDRInput::MsgStartStop::MsgStartStop().
bool PlutoSDRInput::fetchTemperature | ( | ) |
Definition at line 739 of file plutosdrinput.cpp.
References DevicePlutoSDRBox::fetchTemp(), DevicePlutoSDRParams::getBox(), DevicePlutoSDRShared::m_deviceParams, and m_deviceShared.
Referenced by getFIRSampleRate(), and webapiFormatDeviceReport().
|
inline |
Definition at line 145 of file plutosdrinput.h.
References DevicePlutoSDRBox::SampleRates::m_addaConnvRate, and m_deviceSampleRates.
Referenced by webapiFormatDeviceReport().
void PlutoSDRInput::getbbLPRange | ( | quint32 & | minLimit, |
quint32 & | maxLimit | ||
) |
Definition at line 720 of file plutosdrinput.cpp.
References DevicePlutoSDRBox::getbbLPRxRange(), DevicePlutoSDRParams::getBox(), DevicePlutoSDRShared::m_deviceParams, m_deviceShared, leansdr::max(), and leansdr::min().
Referenced by getFIRSampleRate().
|
virtual |
Center frequency exposed by the source.
Implements DeviceSampleSource.
Definition at line 164 of file plutosdrinput.cpp.
References PlutoSDRInputSettings::m_centerFrequency, and m_settings.
Referenced by setSampleRate().
|
virtual |
Implements DeviceSampleSource.
Definition at line 155 of file plutosdrinput.cpp.
References m_deviceDescription.
Referenced by setMessageQueueToGUI().
|
inline |
Definition at line 146 of file plutosdrinput.h.
References fetchTemperature(), getbbLPRange(), getGain(), getLORange(), getRSSI(), getTemperature(), m_deviceSampleRates, and DevicePlutoSDRBox::SampleRates::m_hb1Rate.
void PlutoSDRInput::getGain | ( | int & | gainStr | ) |
Definition at line 730 of file plutosdrinput.cpp.
References DevicePlutoSDRParams::getBox(), DevicePlutoSDRBox::getRxGain(), DevicePlutoSDRShared::m_deviceParams, and m_deviceShared.
Referenced by getFIRSampleRate(), and webapiFormatDeviceReport().
void PlutoSDRInput::getLORange | ( | qint64 & | minLimit, |
qint64 & | maxLimit | ||
) |
Definition at line 710 of file plutosdrinput.cpp.
References DevicePlutoSDRParams::getBox(), DevicePlutoSDRBox::getRxLORange(), DevicePlutoSDRShared::m_deviceParams, m_deviceShared, leansdr::max(), and leansdr::min().
Referenced by getFIRSampleRate().
void PlutoSDRInput::getRSSI | ( | std::string & | rssiStr | ) |
Definition at line 701 of file plutosdrinput.cpp.
References DevicePlutoSDRParams::getBox(), DevicePlutoSDRBox::getRxRSSI(), DevicePlutoSDRShared::m_deviceParams, and m_deviceShared.
Referenced by getFIRSampleRate(), and webapiFormatDeviceReport().
|
virtual |
Sample rate exposed by the source.
Implements DeviceSampleSource.
Definition at line 159 of file plutosdrinput.cpp.
References PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_log2Decim, and m_settings.
Referenced by setMessageQueueToGUI().
float PlutoSDRInput::getTemperature | ( | ) |
Definition at line 745 of file plutosdrinput.cpp.
References DevicePlutoSDRParams::getBox(), DevicePlutoSDRBox::getTemp(), DevicePlutoSDRShared::m_deviceParams, and m_deviceShared.
Referenced by getFIRSampleRate(), and webapiFormatDeviceReport().
|
virtual |
Implements DeviceSampleSource.
Definition at line 184 of file plutosdrinput.cpp.
References applySettings(), FileRecord::genUniqueFileName(), DeviceAPI::getDeviceUID(), DevicePlutoSDRShared::MsgCrossReportToBuddy::getDevSampleRate(), PlutoSDRInput::MsgConfigurePlutoSDR::getForce(), DevicePlutoSDRShared::MsgCrossReportToBuddy::getLoPPMTenths(), DevicePlutoSDRShared::MsgCrossReportToBuddy::getLpfFirbw(), DevicePlutoSDRShared::MsgCrossReportToBuddy::getLpfFiRlog2IntDec(), PlutoSDRInput::MsgConfigurePlutoSDR::getSettings(), PlutoSDRInput::MsgFileRecord::getStartStop(), PlutoSDRInput::MsgStartStop::getStartStop(), DeviceAPI::initDeviceEngine(), DevicePlutoSDRShared::MsgCrossReportToBuddy::isLpfFirEnable(), m_deviceAPI, PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_fileRecordName, m_fileSink, PlutoSDRInputSettings::m_LOppmTenths, PlutoSDRInputSettings::m_lpfFIRBW, PlutoSDRInputSettings::m_lpfFIREnable, PlutoSDRInputSettings::m_lpfFIRlog2Decim, m_settings, PlutoSDRInputSettings::m_useReverseAPI, Message::match(), FileRecord::setFileName(), DeviceAPI::startDeviceEngine(), FileRecord::startRecording(), DeviceAPI::stopDeviceEngine(), FileRecord::stopRecording(), and webapiReverseSendStartStop().
Referenced by setSampleRate().
|
virtual |
initializations to be done when all collaborating objects are created and possibly connected
Implements DeviceSampleSource.
Definition at line 86 of file plutosdrinput.cpp.
References applySettings(), and m_settings.
Referenced by PlutoSDRInput::MsgStartStop::MsgStartStop().
|
privateslot |
Definition at line 1080 of file plutosdrinput.cpp.
Referenced by ~PlutoSDRInput().
|
private |
Definition at line 262 of file plutosdrinput.cpp.
References DevicePlutoSDRBox::createRxBuffer(), DevicePlutoSDRParams::getBox(), DeviceAPI::getBuddySharedPtr(), DeviceAPI::getSamplingDeviceSerial(), DeviceAPI::getSinkBuddies(), m_deviceAPI, DevicePlutoSDRShared::m_deviceParams, m_deviceShared, m_plutoRxBuffer, DeviceSampleSource::m_sampleFifo, DevicePlutoSDRParams::open(), DevicePlutoSDRBox::openRx(), PLUTOSDR_BLOCKSIZE_SAMPLES, DeviceAPI::setBuddySharedPtr(), and SampleSinkFifo::setSize().
|
private |
Definition at line 344 of file plutosdrinput.cpp.
References DeviceAPI::getBuddySharedPtr(), DeviceAPI::getSinkBuddies(), i, m_deviceAPI, DevicePlutoSDRShared::m_thread, and DevicePlutoSDRShared::ThreadInterface::startWork().
Referenced by ~PlutoSDRInput().
|
virtual |
Implements DeviceSampleSource.
Definition at line 128 of file plutosdrinput.cpp.
References m_settings, and PlutoSDRInputSettings::serialize().
Referenced by PlutoSDRInput::MsgStartStop::MsgStartStop().
|
virtual |
Implements DeviceSampleSource.
Definition at line 169 of file plutosdrinput.cpp.
References PlutoSDRInput::MsgConfigurePlutoSDR::create(), PlutoSDRInputSettings::m_centerFrequency, DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, m_settings, and MessageQueue::push().
Referenced by setSampleRate().
|
inlinevirtual |
Implements DeviceSampleSource.
Definition at line 113 of file plutosdrinput.h.
References getDeviceDescription(), getSampleRate(), and DeviceSampleSource::m_guiMessageQueue.
|
inlinevirtual |
For when the source sample rate is set externally.
Implements DeviceSampleSource.
Definition at line 116 of file plutosdrinput.h.
References getCenterFrequency(), handleMessage(), setCenterFrequency(), webapiReportGet(), webapiRun(), webapiRunGet(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
virtual |
Implements DeviceSampleSource.
Definition at line 91 of file plutosdrinput.cpp.
References applySettings(), DevicePlutoSDRParams::getBox(), DevicePlutoSDRShared::m_deviceParams, m_deviceShared, PlutoSDRInputSettings::m_log2Decim, m_plutoSDRInputThread, m_running, DeviceSampleSource::m_sampleFifo, m_settings, DevicePlutoSDRShared::m_thread, PLUTOSDR_BLOCKSIZE_SAMPLES, PlutoSDRInputThread::setLog2Decimation(), PlutoSDRInputThread::startWork(), and stop().
Referenced by PlutoSDRInput::MsgStartStop::MsgStartStop().
|
virtual |
Implements DeviceSampleSource.
Definition at line 115 of file plutosdrinput.cpp.
References m_deviceShared, m_plutoSDRInputThread, m_running, DevicePlutoSDRShared::m_thread, and PlutoSDRInputThread::stopWork().
Referenced by PlutoSDRInput::MsgStartStop::MsgStartStop(), and start().
|
private |
Definition at line 329 of file plutosdrinput.cpp.
References DeviceAPI::getBuddySharedPtr(), DeviceAPI::getSinkBuddies(), i, m_deviceAPI, DevicePlutoSDRShared::m_thread, and DevicePlutoSDRShared::ThreadInterface::stopWork().
Referenced by ~PlutoSDRInput().
|
private |
Definition at line 946 of file plutosdrinput.cpp.
References fetchTemperature(), getADCSampleRate(), getGain(), SWGSDRangel::SWGDeviceReport::getPlutoSdrInputReport(), getRSSI(), getTemperature(), SWGSDRangel::SWGPlutoSdrInputReport::setAdcRate(), SWGSDRangel::SWGPlutoSdrInputReport::setGainDb(), SWGSDRangel::SWGPlutoSdrInputReport::setRssi(), and SWGSDRangel::SWGPlutoSdrInputReport::setTemperature().
Referenced by webapiReportGet().
|
private |
Definition at line 905 of file plutosdrinput.cpp.
References SWGSDRangel::SWGPlutoSdrInputSettings::getFileRecordName(), SWGSDRangel::SWGDeviceSettings::getPlutoSdrInputSettings(), SWGSDRangel::SWGPlutoSdrInputSettings::getReverseApiAddress(), PlutoSDRInputSettings::m_antennaPath, PlutoSDRInputSettings::m_centerFrequency, PlutoSDRInputSettings::m_dcBlock, PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_fcPos, PlutoSDRInputSettings::m_fileRecordName, PlutoSDRInputSettings::m_gain, PlutoSDRInputSettings::m_gainMode, PlutoSDRInputSettings::m_hwBBDCBlock, PlutoSDRInputSettings::m_hwIQCorrection, PlutoSDRInputSettings::m_hwRFDCBlock, PlutoSDRInputSettings::m_iqCorrection, PlutoSDRInputSettings::m_log2Decim, PlutoSDRInputSettings::m_LOppmTenths, PlutoSDRInputSettings::m_lpfBW, PlutoSDRInputSettings::m_lpfFIRBW, PlutoSDRInputSettings::m_lpfFIREnable, PlutoSDRInputSettings::m_lpfFIRGain, PlutoSDRInputSettings::m_lpfFIRlog2Decim, PlutoSDRInputSettings::m_reverseAPIAddress, PlutoSDRInputSettings::m_reverseAPIDeviceIndex, PlutoSDRInputSettings::m_reverseAPIPort, m_settings, PlutoSDRInputSettings::m_transverterDeltaFrequency, PlutoSDRInputSettings::m_transverterMode, PlutoSDRInputSettings::m_useReverseAPI, SWGSDRangel::SWGPlutoSdrInputSettings::setAntennaPath(), SWGSDRangel::SWGPlutoSdrInputSettings::setCenterFrequency(), SWGSDRangel::SWGPlutoSdrInputSettings::setDcBlock(), SWGSDRangel::SWGPlutoSdrInputSettings::setDevSampleRate(), SWGSDRangel::SWGPlutoSdrInputSettings::setFcPos(), SWGSDRangel::SWGPlutoSdrInputSettings::setFileRecordName(), SWGSDRangel::SWGPlutoSdrInputSettings::setGain(), SWGSDRangel::SWGPlutoSdrInputSettings::setGainMode(), SWGSDRangel::SWGPlutoSdrInputSettings::setHwBbdcBlock(), SWGSDRangel::SWGPlutoSdrInputSettings::setHwIqCorrection(), SWGSDRangel::SWGPlutoSdrInputSettings::setHwRfdcBlock(), SWGSDRangel::SWGPlutoSdrInputSettings::setIqCorrection(), SWGSDRangel::SWGPlutoSdrInputSettings::setLog2Decim(), SWGSDRangel::SWGPlutoSdrInputSettings::setLOppmTenths(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfBw(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFirbw(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFirEnable(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFirGain(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFiRlog2Decim(), SWGSDRangel::SWGPlutoSdrInputSettings::setReverseApiAddress(), SWGSDRangel::SWGPlutoSdrInputSettings::setReverseApiDeviceIndex(), SWGSDRangel::SWGPlutoSdrInputSettings::setReverseApiPort(), SWGSDRangel::SWGPlutoSdrInputSettings::setTransverterDeltaFrequency(), SWGSDRangel::SWGPlutoSdrInputSettings::setTransverterMode(), and SWGSDRangel::SWGPlutoSdrInputSettings::setUseReverseApi().
Referenced by webapiSettingsGet(), and webapiSettingsPutPatch().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 894 of file plutosdrinput.cpp.
References SWGSDRangel::SWGDeviceReport::getPlutoSdrInputReport(), SWGSDRangel::SWGPlutoSdrInputReport::init(), SWGSDRangel::SWGDeviceReport::setPlutoSdrInputReport(), and webapiFormatDeviceReport().
Referenced by setSampleRate().
|
private |
Definition at line 959 of file plutosdrinput.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), DeviceAPI::getDeviceSetIndex(), SWGSDRangel::SWGDeviceSettings::getPlutoSdrInputSettings(), PlutoSDRInputSettings::m_antennaPath, PlutoSDRInputSettings::m_centerFrequency, PlutoSDRInputSettings::m_dcBlock, m_deviceAPI, PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_fcPos, PlutoSDRInputSettings::m_fileRecordName, PlutoSDRInputSettings::m_gain, PlutoSDRInputSettings::m_gainMode, PlutoSDRInputSettings::m_hwBBDCBlock, PlutoSDRInputSettings::m_hwIQCorrection, PlutoSDRInputSettings::m_hwRFDCBlock, PlutoSDRInputSettings::m_iqCorrection, PlutoSDRInputSettings::m_log2Decim, PlutoSDRInputSettings::m_LOppmTenths, PlutoSDRInputSettings::m_lpfBW, PlutoSDRInputSettings::m_lpfFIRBW, PlutoSDRInputSettings::m_lpfFIREnable, PlutoSDRInputSettings::m_lpfFIRGain, PlutoSDRInputSettings::m_lpfFIRlog2Decim, m_networkManager, m_networkRequest, PlutoSDRInputSettings::m_reverseAPIAddress, PlutoSDRInputSettings::m_reverseAPIDeviceIndex, PlutoSDRInputSettings::m_reverseAPIPort, PlutoSDRInputSettings::m_transverterDeltaFrequency, PlutoSDRInputSettings::m_transverterMode, SWGSDRangel::SWGPlutoSdrInputSettings::setAntennaPath(), SWGSDRangel::SWGPlutoSdrInputSettings::setCenterFrequency(), SWGSDRangel::SWGPlutoSdrInputSettings::setDcBlock(), SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGPlutoSdrInputSettings::setDevSampleRate(), SWGSDRangel::SWGDeviceSettings::setDirection(), SWGSDRangel::SWGPlutoSdrInputSettings::setFcPos(), SWGSDRangel::SWGPlutoSdrInputSettings::setFileRecordName(), SWGSDRangel::SWGPlutoSdrInputSettings::setGain(), SWGSDRangel::SWGPlutoSdrInputSettings::setGainMode(), SWGSDRangel::SWGPlutoSdrInputSettings::setHwBbdcBlock(), SWGSDRangel::SWGPlutoSdrInputSettings::setHwIqCorrection(), SWGSDRangel::SWGPlutoSdrInputSettings::setHwRfdcBlock(), SWGSDRangel::SWGPlutoSdrInputSettings::setIqCorrection(), SWGSDRangel::SWGPlutoSdrInputSettings::setLog2Decim(), SWGSDRangel::SWGPlutoSdrInputSettings::setLOppmTenths(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfBw(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFirbw(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFirEnable(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFirGain(), SWGSDRangel::SWGPlutoSdrInputSettings::setLpfFiRlog2Decim(), SWGSDRangel::SWGDeviceSettings::setOriginatorIndex(), SWGSDRangel::SWGDeviceSettings::setPlutoSdrInputSettings(), SWGSDRangel::SWGPlutoSdrInputSettings::setTransverterDeltaFrequency(), and SWGSDRangel::SWGPlutoSdrInputSettings::setTransverterMode().
Referenced by applySettings().
|
private |
Definition at line 1052 of file plutosdrinput.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), DeviceAPI::getDeviceSetIndex(), m_deviceAPI, m_networkManager, m_networkRequest, PlutoSDRInputSettings::m_reverseAPIAddress, PlutoSDRInputSettings::m_reverseAPIDeviceIndex, PlutoSDRInputSettings::m_reverseAPIPort, m_settings, SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGDeviceSettings::setDirection(), and SWGSDRangel::SWGDeviceSettings::setOriginatorIndex().
Referenced by handleMessage().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 760 of file plutosdrinput.cpp.
References PlutoSDRInput::MsgStartStop::create(), DeviceAPI::getDeviceEngineStateStr(), SWGSDRangel::SWGDeviceState::getState(), m_deviceAPI, DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, and MessageQueue::push().
Referenced by setSampleRate().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 751 of file plutosdrinput.cpp.
References DeviceAPI::getDeviceEngineStateStr(), SWGSDRangel::SWGDeviceState::getState(), and m_deviceAPI.
Referenced by setSampleRate().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 779 of file plutosdrinput.cpp.
References SWGSDRangel::SWGDeviceSettings::getPlutoSdrInputSettings(), SWGSDRangel::SWGPlutoSdrInputSettings::init(), m_settings, SWGSDRangel::SWGDeviceSettings::setPlutoSdrInputSettings(), and webapiFormatDeviceSettings().
Referenced by setSampleRate().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 790 of file plutosdrinput.cpp.
References PlutoSDRInput::MsgConfigurePlutoSDR::create(), PlutoSDRInputSettings::GAIN_END, SWGSDRangel::SWGPlutoSdrInputSettings::getAntennaPath(), SWGSDRangel::SWGPlutoSdrInputSettings::getCenterFrequency(), SWGSDRangel::SWGPlutoSdrInputSettings::getDcBlock(), SWGSDRangel::SWGPlutoSdrInputSettings::getDevSampleRate(), SWGSDRangel::SWGPlutoSdrInputSettings::getFcPos(), SWGSDRangel::SWGPlutoSdrInputSettings::getFileRecordName(), SWGSDRangel::SWGPlutoSdrInputSettings::getGain(), SWGSDRangel::SWGPlutoSdrInputSettings::getGainMode(), SWGSDRangel::SWGPlutoSdrInputSettings::getHwBbdcBlock(), SWGSDRangel::SWGPlutoSdrInputSettings::getHwIqCorrection(), SWGSDRangel::SWGPlutoSdrInputSettings::getHwRfdcBlock(), SWGSDRangel::SWGPlutoSdrInputSettings::getIqCorrection(), SWGSDRangel::SWGPlutoSdrInputSettings::getLog2Decim(), SWGSDRangel::SWGPlutoSdrInputSettings::getLOppmTenths(), SWGSDRangel::SWGPlutoSdrInputSettings::getLpfBw(), SWGSDRangel::SWGPlutoSdrInputSettings::getLpfFirbw(), SWGSDRangel::SWGPlutoSdrInputSettings::getLpfFirEnable(), SWGSDRangel::SWGPlutoSdrInputSettings::getLpfFirGain(), SWGSDRangel::SWGPlutoSdrInputSettings::getLpfFiRlog2Decim(), SWGSDRangel::SWGDeviceSettings::getPlutoSdrInputSettings(), SWGSDRangel::SWGPlutoSdrInputSettings::getReverseApiAddress(), SWGSDRangel::SWGPlutoSdrInputSettings::getReverseApiDeviceIndex(), SWGSDRangel::SWGPlutoSdrInputSettings::getReverseApiPort(), SWGSDRangel::SWGPlutoSdrInputSettings::getTransverterDeltaFrequency(), SWGSDRangel::SWGPlutoSdrInputSettings::getTransverterMode(), SWGSDRangel::SWGPlutoSdrInputSettings::getUseReverseApi(), PlutoSDRInputSettings::m_antennaPath, PlutoSDRInputSettings::m_centerFrequency, PlutoSDRInputSettings::m_dcBlock, PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_fcPos, PlutoSDRInputSettings::m_fileRecordName, PlutoSDRInputSettings::m_gain, PlutoSDRInputSettings::m_gainMode, DeviceSampleSource::m_guiMessageQueue, PlutoSDRInputSettings::m_hwBBDCBlock, DeviceSampleSource::m_inputMessageQueue, PlutoSDRInputSettings::m_iqCorrection, PlutoSDRInputSettings::m_log2Decim, PlutoSDRInputSettings::m_LOppmTenths, PlutoSDRInputSettings::m_lpfBW, PlutoSDRInputSettings::m_lpfFIRBW, PlutoSDRInputSettings::m_lpfFIREnable, PlutoSDRInputSettings::m_lpfFIRGain, PlutoSDRInputSettings::m_lpfFIRlog2Decim, PlutoSDRInputSettings::m_reverseAPIAddress, PlutoSDRInputSettings::m_reverseAPIDeviceIndex, PlutoSDRInputSettings::m_reverseAPIPort, m_settings, PlutoSDRInputSettings::m_transverterDeltaFrequency, PlutoSDRInputSettings::m_transverterMode, PlutoSDRInputSettings::m_useReverseAPI, MessageQueue::push(), PlutoSDRInputSettings::RFPATH_END, and webapiFormatDeviceSettings().
Referenced by setSampleRate().
|
private |
Definition at line 155 of file plutosdrinput.h.
Referenced by applySettings(), closeDevice(), handleMessage(), openDevice(), resumeBuddies(), suspendBuddies(), webapiReverseSendSettings(), webapiReverseSendStartStop(), webapiRun(), webapiRunGet(), and ~PlutoSDRInput().
|
private |
Definition at line 157 of file plutosdrinput.h.
Referenced by getDeviceDescription().
|
private |
Definition at line 163 of file plutosdrinput.h.
Referenced by applySettings(), getADCSampleRate(), and getFIRSampleRate().
|
private |
Definition at line 160 of file plutosdrinput.h.
Referenced by applySettings(), closeDevice(), fetchTemperature(), getbbLPRange(), getGain(), getLORange(), getRSSI(), getTemperature(), openDevice(), start(), and stop().
|
private |
Definition at line 156 of file plutosdrinput.h.
Referenced by applySettings(), handleMessage(), and ~PlutoSDRInput().
|
private |
Definition at line 164 of file plutosdrinput.h.
|
private |
Definition at line 165 of file plutosdrinput.h.
Referenced by webapiReverseSendSettings(), webapiReverseSendStartStop(), and ~PlutoSDRInput().
|
private |
Definition at line 166 of file plutosdrinput.h.
Referenced by webapiReverseSendSettings(), and webapiReverseSendStartStop().
|
private |
Definition at line 161 of file plutosdrinput.h.
Referenced by openDevice().
|
private |
Definition at line 162 of file plutosdrinput.h.
Referenced by applySettings(), start(), and stop().
|
private |
Definition at line 159 of file plutosdrinput.h.
|
private |
Definition at line 158 of file plutosdrinput.h.
Referenced by applySettings(), deserialize(), getCenterFrequency(), getSampleRate(), handleMessage(), init(), serialize(), setCenterFrequency(), start(), webapiFormatDeviceSettings(), webapiReverseSendStartStop(), webapiSettingsGet(), and webapiSettingsPutPatch().