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 <xtrxinput.h>
Classes | |
class | MsgConfigureXTRX |
class | MsgFileRecord |
class | MsgGetDeviceInfo |
class | MsgGetStreamInfo |
class | MsgReportClockGenChange |
class | MsgReportStreamInfo |
class | MsgStartStop |
Public Member Functions | |
XTRXInput (DeviceAPI *deviceAPI) | |
virtual | ~XTRXInput () |
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 () |
XTRXInputThread * | getThread () |
void | setThread (XTRXInputThread *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... | |
uint32_t | getDevSampleRate () const |
uint32_t | getLog2HardDecim () const |
double | getClockGen () const |
virtual quint64 | getCenterFrequency () const |
Center frequency exposed by the source. More... | |
virtual void | setCenterFrequency (qint64 centerFrequency) |
virtual bool | handleMessage (const Message &message) |
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) |
std::size_t | getChannelIndex () |
void | getLORange (float &minF, float &maxF, float &stepF) const |
void | getSRRange (float &minF, float &maxF, float &stepF) const |
void | getLPRange (float &minF, float &maxF, float &stepF) const |
void | apply_gain_auto (uint32_t gain) |
void | apply_gain_lna (double gain) |
void | apply_gain_tia (double gain) |
void | apply_gain_pga (double gain) |
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 () |
XTRXInputThread * | findThread () |
void | moveThreadToBuddy () |
void | suspendTxThread () |
void | resumeTxThread () |
bool | applySettings (const XTRXInputSettings &settings, bool force=false, bool forceNCOFrequency=false) |
void | webapiFormatDeviceSettings (SWGSDRangel::SWGDeviceSettings &response, const XTRXInputSettings &settings) |
void | webapiFormatDeviceReport (SWGSDRangel::SWGDeviceReport &response) |
void | webapiReverseSendSettings (QList< QString > &deviceSettingsKeys, const XTRXInputSettings &settings, bool force) |
void | webapiReverseSendStartStop (bool start) |
Private Attributes | |
DeviceAPI * | m_deviceAPI |
QMutex | m_mutex |
XTRXInputSettings | m_settings |
XTRXInputThread * | m_XTRXInputThread |
QString | m_deviceDescription |
bool | m_running |
DeviceXTRXShared | m_deviceShared |
QNetworkAccessManager * | m_networkManager |
QNetworkRequest | m_networkRequest |
FileRecord * | m_fileSink |
File sink to record device I/Q output. More... | |
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 xtrxinput.h.
XTRXInput::XTRXInput | ( | DeviceAPI * | deviceAPI | ) |
Definition at line 50 of file xtrxinput.cpp.
References arg().
Referenced by XTRXInput::MsgFileRecord::MsgFileRecord().
|
virtual |
Definition at line 67 of file xtrxinput.cpp.
References closeDevice(), m_deviceAPI, m_fileSink, m_networkManager, m_running, networkManagerFinished(), DeviceAPI::removeAncillarySink(), and stop().
Referenced by XTRXInput::MsgFileRecord::MsgFileRecord().
void XTRXInput::apply_gain_auto | ( | uint32_t | gain | ) |
Definition at line 795 of file xtrxinput.cpp.
References apply_gain_lna(), apply_gain_tia(), and DeviceXTRX::getAutoGains().
Referenced by applySettings(), and setSampleRate().
void XTRXInput::apply_gain_lna | ( | double | gain | ) |
Definition at line 806 of file xtrxinput.cpp.
References DeviceXTRX::getDevice(), DeviceXTRXShared::m_channel, DeviceXTRXShared::m_dev, and m_deviceShared.
Referenced by apply_gain_auto(), applySettings(), and setSampleRate().
void XTRXInput::apply_gain_pga | ( | double | gain | ) |
Definition at line 832 of file xtrxinput.cpp.
References DeviceXTRX::getDevice(), DeviceXTRXShared::m_channel, DeviceXTRXShared::m_dev, and m_deviceShared.
Referenced by setSampleRate().
void XTRXInput::apply_gain_tia | ( | double | gain | ) |
Definition at line 819 of file xtrxinput.cpp.
References DeviceXTRX::getDevice(), DeviceXTRXShared::m_channel, DeviceXTRXShared::m_dev, and m_deviceShared.
Referenced by apply_gain_auto(), applySettings(), and setSampleRate().
|
private |
Definition at line 848 of file xtrxinput.cpp.
References apply_gain_auto(), apply_gain_lna(), apply_gain_tia(), DeviceAPI::configureCorrections(), findThread(), XTRXInputSettings::GAIN_AUTO, XTRXInputSettings::GAIN_MANUAL, DeviceXTRX::getActualInputRate(), DeviceXTRX::getDevice(), DeviceAPI::getDeviceItemIndex(), getDevSampleRate(), getLog2HardDecim(), getSampleRate(), XTRXInputThread::isRunning(), XTRXInputSettings::m_antennaPath, XTRXInputSettings::m_centerFrequency, DeviceXTRXShared::m_channel, XTRXInputSettings::m_dcBlock, DeviceXTRXShared::m_dev, m_deviceAPI, m_deviceShared, XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_extClock, XTRXInputSettings::m_extClockFreq, XTRXInputSettings::m_gain, XTRXInputSettings::m_gainMode, XTRXInputSettings::m_iqCorrection, XTRXInputSettings::m_lnaGain, XTRXInputSettings::m_log2HardDecim, XTRXInputSettings::m_log2SoftDecim, XTRXInputSettings::m_lpfBW, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, XTRXInputSettings::m_pgaGain, XTRXInputSettings::m_pwrmode, XTRXInputSettings::m_reverseAPIAddress, XTRXInputSettings::m_reverseAPIDeviceIndex, XTRXInputSettings::m_reverseAPIPort, m_settings, XTRXInputSettings::m_tiaGain, XTRXInputSettings::m_useReverseAPI, resumeTxThread(), DeviceXTRX::set_samplerate(), XTRXInputThread::setLog2Decimation(), XTRXInputThread::startWork(), XTRXInputThread::stopWork(), suspendTxThread(), and webapiReverseSendSettings().
Referenced by handleMessage(), init(), start(), and stop().
|
private |
Definition at line 168 of file xtrxinput.cpp.
References DeviceXTRX::close(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), DeviceXTRXShared::m_channel, DeviceXTRXShared::m_dev, m_deviceAPI, m_deviceShared, m_running, DeviceXTRXShared::m_source, m_XTRXInputThread, moveThreadToBuddy(), and stop().
Referenced by ~XTRXInput().
|
virtual |
Implements DeviceSampleSource.
Definition at line 482 of file xtrxinput.cpp.
References XTRXInput::MsgConfigureXTRX::create(), XTRXInputSettings::deserialize(), DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, m_settings, MessageQueue::push(), and XTRXInputSettings::resetToDefaults().
Referenced by setThread().
|
virtual |
Implements DeviceSampleSource.
Definition at line 81 of file xtrxinput.cpp.
Referenced by XTRXInput::MsgFileRecord::MsgFileRecord().
|
private |
Definition at line 200 of file xtrxinput.cpp.
References DeviceAPI::getSourceBuddies(), getThread(), m_deviceAPI, and m_XTRXInputThread.
Referenced by applySettings(), start(), and stop().
|
virtual |
Center frequency exposed by the source.
Implements DeviceSampleSource.
Definition at line 551 of file xtrxinput.cpp.
References XTRXInputSettings::m_centerFrequency, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, and m_settings.
Referenced by setSampleRate().
std::size_t XTRXInput::getChannelIndex | ( | ) |
Definition at line 571 of file xtrxinput.cpp.
References DeviceXTRXShared::m_channel, and m_deviceShared.
Referenced by setSampleRate(), and XTRXInputGUI::XTRXInputGUI().
double XTRXInput::getClockGen | ( | ) | const |
Definition at line 542 of file xtrxinput.cpp.
References DeviceXTRX::getClockGen(), DeviceXTRXShared::m_dev, and m_deviceShared.
Referenced by setSampleRate(), and XTRXInputGUI::updateADCRate().
|
virtual |
Implements DeviceSampleSource.
Definition at line 504 of file xtrxinput.cpp.
References m_deviceDescription.
Referenced by setMessageQueueToGUI().
uint32_t XTRXInput::getDevSampleRate | ( | ) | const |
Definition at line 520 of file xtrxinput.cpp.
References DeviceXTRX::getActualInputRate(), DeviceXTRXShared::m_dev, m_deviceShared, XTRXInputSettings::m_devSampleRate, and m_settings.
Referenced by applySettings(), XTRXInputGUI::handleMessage(), and setSampleRate().
uint32_t XTRXInput::getLog2HardDecim | ( | ) | const |
Definition at line 531 of file xtrxinput.cpp.
References DeviceXTRX::getActualInputRate(), DeviceXTRX::getClockGen(), DeviceXTRXShared::m_dev, m_deviceShared, XTRXInputSettings::m_log2HardDecim, and m_settings.
Referenced by applySettings(), handleMessage(), and setSampleRate().
void XTRXInput::getLORange | ( | float & | minF, |
float & | maxF, | ||
float & | stepF | ||
) | const |
Definition at line 576 of file xtrxinput.cpp.
Referenced by setSampleRate(), and XTRXInputGUI::XTRXInputGUI().
void XTRXInput::getLPRange | ( | float & | minF, |
float & | maxF, | ||
float & | stepF | ||
) | const |
Definition at line 594 of file xtrxinput.cpp.
Referenced by setSampleRate(), and XTRXInputGUI::XTRXInputGUI().
|
virtual |
Sample rate exposed by the source.
Implements DeviceSampleSource.
Definition at line 509 of file xtrxinput.cpp.
References DeviceXTRX::getActualInputRate(), DeviceXTRXShared::m_dev, m_deviceShared, XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_log2SoftDecim, and m_settings.
Referenced by applySettings(), and setMessageQueueToGUI().
void XTRXInput::getSRRange | ( | float & | minF, |
float & | maxF, | ||
float & | stepF | ||
) | const |
Definition at line 585 of file xtrxinput.cpp.
Referenced by XTRXInputGUI::displaySampleRate(), setSampleRate(), and XTRXInputGUI::XTRXInputGUI().
|
inline |
Definition at line 200 of file xtrxinput.h.
References m_XTRXInputThread.
Referenced by findThread().
|
virtual |
Implements DeviceSampleSource.
Definition at line 603 of file xtrxinput.cpp.
References applySettings(), DeviceXTRXShared::MsgReportBuddyChange::create(), DeviceXTRXShared::MsgReportClockSourceChange::create(), DeviceXTRXShared::MsgReportDeviceInfo::create(), XTRXInput::MsgReportStreamInfo::create(), DeviceXTRXShared::get_board_temperature(), DeviceXTRXShared::get_gps_status(), DeviceXTRX::getActualInputRate(), DeviceXTRXShared::MsgReportBuddyChange::getCenterFrequency(), DeviceXTRX::getClockGen(), DeviceXTRX::getDevice(), DeviceAPI::getDeviceEngineInputMessageQueue(), DeviceXTRXShared::MsgReportBuddyChange::getDevSampleRate(), DeviceXTRXShared::MsgReportClockSourceChange::getExtClock(), DeviceXTRXShared::MsgReportClockSourceChange::getExtClockFeq(), XTRXInput::MsgConfigureXTRX::getForce(), getLog2HardDecim(), DeviceXTRXShared::MsgReportBuddyChange::getLog2HardDecimInterp(), DeviceSampleSource::getMessageQueueToGUI(), DeviceXTRXShared::MsgReportBuddyChange::getRxElseTx(), DeviceAPI::getSamplingDeviceGUIMessageQueue(), XTRXInput::MsgConfigureXTRX::getSettings(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), XTRXInput::MsgStartStop::getStartStop(), XTRXInput::MsgFileRecord::getStartStop(), DeviceAPI::initDeviceEngine(), XTRXInputSettings::m_centerFrequency, DeviceXTRXShared::m_dev, m_deviceAPI, m_deviceShared, XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_extClock, XTRXInputSettings::m_extClockFreq, m_fileSink, XTRXInputSettings::m_log2HardDecim, XTRXInputSettings::m_log2SoftDecim, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, m_settings, Message::match(), MessageQueue::push(), DeviceAPI::startDeviceEngine(), FileRecord::startRecording(), DeviceAPI::stopDeviceEngine(), and FileRecord::stopRecording().
Referenced by setSampleRate().
|
virtual |
initializations to be done when all collaborating objects are created and possibly connected
Implements DeviceSampleSource.
Definition at line 195 of file xtrxinput.cpp.
References applySettings(), and m_settings.
Referenced by XTRXInput::MsgFileRecord::MsgFileRecord().
|
private |
Definition at line 232 of file xtrxinput.cpp.
References DeviceAPI::getSourceBuddies(), m_deviceAPI, m_XTRXInputThread, and setThread().
Referenced by closeDevice().
|
privateslot |
Definition at line 1647 of file xtrxinput.cpp.
Referenced by ~XTRXInput().
|
private |
Definition at line 86 of file xtrxinput.cpp.
References DeviceAPI::getBuddySharedPtr(), DeviceAPI::getDeviceItemIndex(), DeviceAPI::getSamplingDeviceSerial(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), DeviceXTRXShared::m_channel, DeviceXTRXShared::m_dev, m_deviceAPI, m_deviceShared, DeviceSampleSource::m_sampleFifo, DeviceXTRXShared::m_source, DeviceXTRX::open(), DeviceAPI::setBuddySharedPtr(), and SampleSinkFifo::setSize().
|
private |
Definition at line 460 of file xtrxinput.cpp.
References DeviceAPI::getSinkBuddies(), m_deviceAPI, DeviceXTRXShared::m_thread, DeviceXTRXShared::m_threadWasRunning, and DeviceXTRXShared::ThreadInterface::startWork().
Referenced by applySettings().
|
virtual |
Implements DeviceSampleSource.
Definition at line 477 of file xtrxinput.cpp.
References m_settings, and XTRXInputSettings::serialize().
Referenced by setThread().
|
virtual |
Implements DeviceSampleSource.
Definition at line 556 of file xtrxinput.cpp.
References XTRXInput::MsgConfigureXTRX::create(), XTRXInputSettings::m_centerFrequency, DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, m_settings, and MessageQueue::push().
Referenced by setSampleRate().
|
inlinevirtual |
Implements DeviceSampleSource.
Definition at line 206 of file xtrxinput.h.
References getDeviceDescription(), getSampleRate(), and DeviceSampleSource::m_guiMessageQueue.
|
inlinevirtual |
For when the source sample rate is set externally.
Implements DeviceSampleSource.
Definition at line 209 of file xtrxinput.h.
References apply_gain_auto(), apply_gain_lna(), apply_gain_pga(), apply_gain_tia(), getCenterFrequency(), getChannelIndex(), getClockGen(), getDevSampleRate(), getLog2HardDecim(), getLORange(), getLPRange(), getSRRange(), handleMessage(), setCenterFrequency(), webapiReportGet(), webapiRun(), webapiRunGet(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
inline |
Definition at line 201 of file xtrxinput.h.
References deserialize(), m_XTRXInputThread, and serialize().
Referenced by moveThreadToBuddy().
|
virtual |
Implements DeviceSampleSource.
Definition at line 249 of file xtrxinput.cpp.
References applySettings(), findThread(), DeviceXTRX::getDevice(), DeviceAPI::getDeviceItemIndex(), XTRXInputThread::getFifo(), XTRXInputThread::getLog2Decimation(), XTRXInputThread::getNbChannels(), DeviceAPI::getSourceBuddies(), i, DeviceXTRXShared::m_dev, m_deviceAPI, m_deviceShared, XTRXInputSettings::m_log2SoftDecim, m_running, DeviceSampleSource::m_sampleFifo, m_settings, DeviceXTRXShared::m_thread, m_XTRXInputThread, XTRXInputThread::setFifo(), XTRXInputThread::setLog2Decimation(), XTRXInputThread::startWork(), and XTRXInputThread::stopWork().
Referenced by XTRXInput::MsgFileRecord::MsgFileRecord().
|
virtual |
Implements DeviceSampleSource.
Definition at line 365 of file xtrxinput.cpp.
References applySettings(), findThread(), DeviceXTRX::getDevice(), DeviceAPI::getDeviceItemIndex(), XTRXInputThread::getNbChannels(), DeviceAPI::getSourceBuddies(), DeviceXTRXShared::m_dev, m_deviceAPI, m_deviceShared, XTRXInputSettings::m_log2SoftDecim, m_running, DeviceSampleSource::m_sampleFifo, m_settings, DeviceXTRXShared::m_thread, m_XTRXInputThread, XTRXInputThread::setFifo(), XTRXInputThread::setLog2Decimation(), XTRXInputThread::startWork(), and XTRXInputThread::stopWork().
Referenced by closeDevice(), XTRXInput::MsgFileRecord::MsgFileRecord(), and ~XTRXInput().
|
private |
Definition at line 437 of file xtrxinput.cpp.
References DeviceAPI::getSinkBuddies(), DeviceXTRXShared::ThreadInterface::isRunning(), m_deviceAPI, DeviceXTRXShared::m_thread, DeviceXTRXShared::m_threadWasRunning, and DeviceXTRXShared::ThreadInterface::stopWork().
Referenced by applySettings().
|
private |
Definition at line 1507 of file xtrxinput.cpp.
References DeviceXTRXShared::get_board_temperature(), DeviceXTRXShared::get_gps_status(), DeviceXTRX::getDevice(), SWGSDRangel::SWGDeviceReport::getXtrxInputReport(), DeviceXTRXShared::m_dev, m_deviceShared, SWGSDRangel::SWGXtrxInputReport::setFifoFill(), SWGSDRangel::SWGXtrxInputReport::setFifoSize(), SWGSDRangel::SWGXtrxInputReport::setGpsLock(), SWGSDRangel::SWGXtrxInputReport::setSuccess(), and SWGSDRangel::SWGXtrxInputReport::setTemperature().
Referenced by webapiReportGet().
|
private |
Definition at line 1429 of file xtrxinput.cpp.
References SWGSDRangel::SWGXtrxInputSettings::getFileRecordName(), SWGSDRangel::SWGXtrxInputSettings::getReverseApiAddress(), SWGSDRangel::SWGDeviceSettings::getXtrxInputSettings(), XTRXInputSettings::m_antennaPath, XTRXInputSettings::m_centerFrequency, XTRXInputSettings::m_dcBlock, XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_extClock, XTRXInputSettings::m_extClockFreq, XTRXInputSettings::m_fileRecordName, XTRXInputSettings::m_gain, XTRXInputSettings::m_gainMode, XTRXInputSettings::m_iqCorrection, XTRXInputSettings::m_lnaGain, XTRXInputSettings::m_log2HardDecim, XTRXInputSettings::m_log2SoftDecim, XTRXInputSettings::m_lpfBW, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, XTRXInputSettings::m_pgaGain, XTRXInputSettings::m_pwrmode, XTRXInputSettings::m_reverseAPIAddress, XTRXInputSettings::m_reverseAPIDeviceIndex, XTRXInputSettings::m_reverseAPIPort, XTRXInputSettings::m_tiaGain, XTRXInputSettings::m_useReverseAPI, SWGSDRangel::SWGXtrxInputSettings::setAntennaPath(), SWGSDRangel::SWGXtrxInputSettings::setCenterFrequency(), SWGSDRangel::SWGXtrxInputSettings::setDcBlock(), SWGSDRangel::SWGXtrxInputSettings::setDevSampleRate(), SWGSDRangel::SWGXtrxInputSettings::setExtClock(), SWGSDRangel::SWGXtrxInputSettings::setExtClockFreq(), SWGSDRangel::SWGXtrxInputSettings::setFileRecordName(), SWGSDRangel::SWGXtrxInputSettings::setGain(), SWGSDRangel::SWGXtrxInputSettings::setGainMode(), SWGSDRangel::SWGXtrxInputSettings::setIqCorrection(), SWGSDRangel::SWGXtrxInputSettings::setLnaGain(), SWGSDRangel::SWGXtrxInputSettings::setLog2HardDecim(), SWGSDRangel::SWGXtrxInputSettings::setLog2SoftDecim(), SWGSDRangel::SWGXtrxInputSettings::setLpfBw(), SWGSDRangel::SWGXtrxInputSettings::setNcoEnable(), SWGSDRangel::SWGXtrxInputSettings::setNcoFrequency(), SWGSDRangel::SWGXtrxInputSettings::setPgaGain(), SWGSDRangel::SWGXtrxInputSettings::setPwrmode(), SWGSDRangel::SWGXtrxInputSettings::setReverseApiAddress(), SWGSDRangel::SWGXtrxInputSettings::setReverseApiDeviceIndex(), SWGSDRangel::SWGXtrxInputSettings::setReverseApiPort(), SWGSDRangel::SWGXtrxInputSettings::setTiaGain(), and SWGSDRangel::SWGXtrxInputSettings::setUseReverseApi().
Referenced by webapiSettingsGet(), and webapiSettingsPutPatch().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1468 of file xtrxinput.cpp.
References SWGSDRangel::SWGDeviceReport::getXtrxInputReport(), SWGSDRangel::SWGXtrxInputReport::init(), SWGSDRangel::SWGDeviceReport::setXtrxInputReport(), and webapiFormatDeviceReport().
Referenced by setSampleRate().
|
private |
Definition at line 1532 of file xtrxinput.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), DeviceAPI::getDeviceSetIndex(), SWGSDRangel::SWGDeviceSettings::getXtrxInputSettings(), XTRXInputSettings::m_antennaPath, XTRXInputSettings::m_centerFrequency, XTRXInputSettings::m_dcBlock, m_deviceAPI, XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_extClock, XTRXInputSettings::m_extClockFreq, XTRXInputSettings::m_fileRecordName, XTRXInputSettings::m_gain, XTRXInputSettings::m_gainMode, XTRXInputSettings::m_iqCorrection, XTRXInputSettings::m_lnaGain, XTRXInputSettings::m_log2HardDecim, XTRXInputSettings::m_log2SoftDecim, XTRXInputSettings::m_lpfBW, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, m_networkManager, m_networkRequest, XTRXInputSettings::m_pgaGain, XTRXInputSettings::m_pwrmode, XTRXInputSettings::m_reverseAPIAddress, XTRXInputSettings::m_reverseAPIDeviceIndex, XTRXInputSettings::m_reverseAPIPort, XTRXInputSettings::m_tiaGain, SWGSDRangel::SWGXtrxInputSettings::setAntennaPath(), SWGSDRangel::SWGXtrxInputSettings::setCenterFrequency(), SWGSDRangel::SWGXtrxInputSettings::setDcBlock(), SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGXtrxInputSettings::setDevSampleRate(), SWGSDRangel::SWGDeviceSettings::setDirection(), SWGSDRangel::SWGXtrxInputSettings::setExtClock(), SWGSDRangel::SWGXtrxInputSettings::setExtClockFreq(), SWGSDRangel::SWGXtrxInputSettings::setFileRecordName(), SWGSDRangel::SWGXtrxInputSettings::setGain(), SWGSDRangel::SWGXtrxInputSettings::setGainMode(), SWGSDRangel::SWGXtrxInputSettings::setIqCorrection(), SWGSDRangel::SWGXtrxInputSettings::setLnaGain(), SWGSDRangel::SWGXtrxInputSettings::setLog2HardDecim(), SWGSDRangel::SWGXtrxInputSettings::setLog2SoftDecim(), SWGSDRangel::SWGXtrxInputSettings::setLpfBw(), SWGSDRangel::SWGXtrxInputSettings::setNcoEnable(), SWGSDRangel::SWGXtrxInputSettings::setNcoFrequency(), SWGSDRangel::SWGDeviceSettings::setOriginatorIndex(), SWGSDRangel::SWGXtrxInputSettings::setPgaGain(), SWGSDRangel::SWGXtrxInputSettings::setPwrmode(), SWGSDRangel::SWGXtrxInputSettings::setTiaGain(), and SWGSDRangel::SWGDeviceSettings::setXtrxInputSettings().
Referenced by applySettings().
|
private |
Definition at line 1619 of file xtrxinput.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), DeviceAPI::getDeviceSetIndex(), m_deviceAPI, m_networkManager, m_networkRequest, XTRXInputSettings::m_reverseAPIAddress, XTRXInputSettings::m_reverseAPIDeviceIndex, XTRXInputSettings::m_reverseAPIPort, m_settings, SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGDeviceSettings::setDirection(), and SWGSDRangel::SWGDeviceSettings::setOriginatorIndex().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1488 of file xtrxinput.cpp.
References XTRXInput::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 1479 of file xtrxinput.cpp.
References DeviceAPI::getDeviceEngineStateStr(), SWGSDRangel::SWGDeviceState::getState(), and m_deviceAPI.
Referenced by setSampleRate().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1326 of file xtrxinput.cpp.
References SWGSDRangel::SWGDeviceSettings::getXtrxInputSettings(), SWGSDRangel::SWGXtrxInputSettings::init(), m_settings, SWGSDRangel::SWGDeviceSettings::setXtrxInputSettings(), and webapiFormatDeviceSettings().
Referenced by setSampleRate().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1337 of file xtrxinput.cpp.
References XTRXInput::MsgConfigureXTRX::create(), SWGSDRangel::SWGXtrxInputSettings::getAntennaPath(), SWGSDRangel::SWGXtrxInputSettings::getCenterFrequency(), SWGSDRangel::SWGXtrxInputSettings::getDcBlock(), SWGSDRangel::SWGXtrxInputSettings::getDevSampleRate(), SWGSDRangel::SWGXtrxInputSettings::getExtClock(), SWGSDRangel::SWGXtrxInputSettings::getExtClockFreq(), SWGSDRangel::SWGXtrxInputSettings::getFileRecordName(), SWGSDRangel::SWGXtrxInputSettings::getGain(), SWGSDRangel::SWGXtrxInputSettings::getGainMode(), SWGSDRangel::SWGXtrxInputSettings::getIqCorrection(), SWGSDRangel::SWGXtrxInputSettings::getLnaGain(), SWGSDRangel::SWGXtrxInputSettings::getLog2HardDecim(), SWGSDRangel::SWGXtrxInputSettings::getLog2SoftDecim(), SWGSDRangel::SWGXtrxInputSettings::getLpfBw(), SWGSDRangel::SWGXtrxInputSettings::getNcoEnable(), SWGSDRangel::SWGXtrxInputSettings::getNcoFrequency(), SWGSDRangel::SWGXtrxInputSettings::getPgaGain(), SWGSDRangel::SWGXtrxInputSettings::getPwrmode(), SWGSDRangel::SWGXtrxInputSettings::getReverseApiAddress(), SWGSDRangel::SWGXtrxInputSettings::getReverseApiDeviceIndex(), SWGSDRangel::SWGXtrxInputSettings::getReverseApiPort(), SWGSDRangel::SWGXtrxInputSettings::getTiaGain(), SWGSDRangel::SWGXtrxInputSettings::getUseReverseApi(), SWGSDRangel::SWGDeviceSettings::getXtrxInputSettings(), XTRXInputSettings::m_antennaPath, XTRXInputSettings::m_centerFrequency, XTRXInputSettings::m_dcBlock, XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_extClock, XTRXInputSettings::m_extClockFreq, XTRXInputSettings::m_fileRecordName, XTRXInputSettings::m_gain, XTRXInputSettings::m_gainMode, DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, XTRXInputSettings::m_iqCorrection, XTRXInputSettings::m_lnaGain, XTRXInputSettings::m_log2HardDecim, XTRXInputSettings::m_log2SoftDecim, XTRXInputSettings::m_lpfBW, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, XTRXInputSettings::m_pgaGain, XTRXInputSettings::m_pwrmode, XTRXInputSettings::m_reverseAPIAddress, XTRXInputSettings::m_reverseAPIDeviceIndex, XTRXInputSettings::m_reverseAPIPort, m_settings, XTRXInputSettings::m_tiaGain, XTRXInputSettings::m_useReverseAPI, MessageQueue::push(), and webapiFormatDeviceSettings().
Referenced by setSampleRate().
|
private |
Definition at line 252 of file xtrxinput.h.
Referenced by applySettings(), closeDevice(), findThread(), handleMessage(), moveThreadToBuddy(), openDevice(), resumeTxThread(), start(), stop(), suspendTxThread(), webapiReverseSendSettings(), webapiReverseSendStartStop(), webapiRun(), webapiRunGet(), and ~XTRXInput().
|
private |
Definition at line 256 of file xtrxinput.h.
Referenced by getDeviceDescription().
|
private |
Definition at line 258 of file xtrxinput.h.
Referenced by apply_gain_lna(), apply_gain_pga(), apply_gain_tia(), applySettings(), closeDevice(), getChannelIndex(), getClockGen(), getDevSampleRate(), getLog2HardDecim(), getSampleRate(), handleMessage(), openDevice(), start(), stop(), and webapiFormatDeviceReport().
|
private |
File sink to record device I/Q output.
Definition at line 262 of file xtrxinput.h.
Referenced by handleMessage(), and ~XTRXInput().
|
private |
Definition at line 253 of file xtrxinput.h.
|
private |
Definition at line 259 of file xtrxinput.h.
Referenced by webapiReverseSendSettings(), webapiReverseSendStartStop(), and ~XTRXInput().
|
private |
Definition at line 260 of file xtrxinput.h.
Referenced by webapiReverseSendSettings(), and webapiReverseSendStartStop().
|
private |
Definition at line 257 of file xtrxinput.h.
Referenced by closeDevice(), start(), stop(), and ~XTRXInput().
|
private |
Definition at line 254 of file xtrxinput.h.
Referenced by applySettings(), deserialize(), getCenterFrequency(), getDevSampleRate(), getLog2HardDecim(), getSampleRate(), handleMessage(), init(), serialize(), setCenterFrequency(), start(), stop(), webapiReverseSendStartStop(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
private |
Definition at line 255 of file xtrxinput.h.
Referenced by closeDevice(), findThread(), getThread(), moveThreadToBuddy(), setThread(), start(), and stop().