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 <bladerf2input.h>
Classes | |
struct | GainMode |
class | MsgConfigureBladeRF2 |
class | MsgFileRecord |
class | MsgReportGainRange |
class | MsgStartStop |
Public Member Functions | |
BladeRF2Input (DeviceAPI *deviceAPI) | |
virtual | ~BladeRF2Input () |
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 () |
BladeRF2InputThread * | getThread () |
void | setThread (BladeRF2InputThread *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) |
void | getFrequencyRange (uint64_t &min, uint64_t &max, int &step) |
void | getSampleRateRange (int &min, int &max, int &step) |
void | getBandwidthRange (int &min, int &max, int &step) |
void | getGlobalGainRange (int &min, int &max, int &step) |
const std::vector< GainMode > & | getGainModes () |
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) |
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 () |
BladeRF2InputThread * | findThread () |
void | moveThreadToBuddy () |
bool | applySettings (const BladeRF2InputSettings &settings, bool force=false) |
bool | setDeviceCenterFrequency (struct bladerf *dev, int requestedChannel, quint64 freq_hz, int loPpmTenths) |
void | webapiFormatDeviceSettings (SWGSDRangel::SWGDeviceSettings &response, const BladeRF2InputSettings &settings) |
void | webapiFormatDeviceReport (SWGSDRangel::SWGDeviceReport &response) |
void | webapiReverseSendSettings (QList< QString > &deviceSettingsKeys, const BladeRF2InputSettings &settings, bool force) |
void | webapiReverseSendStartStop (bool start) |
Private Attributes | |
DeviceAPI * | m_deviceAPI |
QMutex | m_mutex |
BladeRF2InputSettings | m_settings |
QString | m_deviceDescription |
bool | m_running |
DeviceBladeRF2Shared | m_deviceShared |
BladeRF2InputThread * | m_thread |
FileRecord * | m_fileSink |
File sink to record device I/Q output. More... | |
std::vector< GainMode > | m_gainModes |
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 39 of file bladerf2input.h.
BladeRF2Input::BladeRF2Input | ( | DeviceAPI * | deviceAPI | ) |
Definition at line 46 of file bladerf2input.cpp.
|
virtual |
Definition at line 75 of file bladerf2input.cpp.
References closeDevice(), m_deviceAPI, m_fileSink, m_networkManager, m_running, networkManagerFinished(), DeviceAPI::removeAncillarySink(), and stop().
|
private |
Definition at line 768 of file bladerf2input.cpp.
References DeviceSampleSource::calculateDeviceCenterFrequency(), DeviceAPI::configureCorrections(), DeviceBladeRF2Shared::MsgReportBuddyChange::create(), BladeRF2Input::MsgReportGainRange::create(), findThread(), DeviceBladeRF2::getDev(), DeviceAPI::getDeviceEngineInputMessageQueue(), DeviceAPI::getDeviceItemIndex(), getGlobalGainRange(), DeviceSampleSource::getMessageQueueToGUI(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), FileRecord::handleMessage(), BladeRF2InputSettings::m_bandwidth, BladeRF2InputSettings::m_biasTee, BladeRF2InputSettings::m_centerFrequency, BladeRF2InputSettings::m_dcBlock, DeviceBladeRF2Shared::m_dev, m_deviceAPI, m_deviceShared, BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_fcPos, m_fileSink, BladeRF2InputSettings::m_gainMode, BladeRF2InputSettings::m_globalGain, BladeRF2InputSettings::m_iqCorrection, BladeRF2InputSettings::m_log2Decim, BladeRF2InputSettings::m_LOppmTenths, BladeRF2InputSettings::m_reverseAPIAddress, BladeRF2InputSettings::m_reverseAPIDeviceIndex, BladeRF2InputSettings::m_reverseAPIPort, m_settings, BladeRF2InputSettings::m_transverterDeltaFrequency, BladeRF2InputSettings::m_transverterMode, BladeRF2InputSettings::m_useReverseAPI, leansdr::max(), leansdr::min(), MessageQueue::push(), DeviceBladeRF2::setBiasTeeRx(), setDeviceCenterFrequency(), BladeRF2InputThread::setFcPos(), BladeRF2InputThread::setLog2Decimation(), and webapiReverseSendSettings().
Referenced by handleMessage(), init(), and start().
|
private |
Definition at line 176 of file bladerf2input.cpp.
References DeviceBladeRF2::close(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), DeviceBladeRF2Shared::m_channel, DeviceBladeRF2Shared::m_dev, m_deviceAPI, m_deviceShared, m_running, DeviceBladeRF2Shared::m_source, m_thread, moveThreadToBuddy(), and stop().
Referenced by ~BladeRF2Input().
|
virtual |
Implements DeviceSampleSource.
Definition at line 506 of file bladerf2input.cpp.
References BladeRF2Input::MsgConfigureBladeRF2::create(), BladeRF2InputSettings::deserialize(), DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, m_settings, MessageQueue::push(), and BladeRF2InputSettings::resetToDefaults().
Referenced by setThread().
|
virtual |
Implements DeviceSampleSource.
Definition at line 89 of file bladerf2input.cpp.
|
private |
Definition at line 208 of file bladerf2input.cpp.
References DeviceAPI::getSourceBuddies(), getThread(), m_deviceAPI, and m_thread.
Referenced by applySettings(), handleMessage(), start(), and stop().
void BladeRF2Input::getBandwidthRange | ( | int & | min, |
int & | max, | ||
int & | step | ||
) |
Definition at line 592 of file bladerf2input.cpp.
References DeviceBladeRF2::getBandwidthRangeRx(), DeviceBladeRF2Shared::m_dev, and m_deviceShared.
Referenced by BladeRF2InputGui::BladeRF2InputGui(), and setSampleRate().
|
virtual |
Center frequency exposed by the source.
Implements DeviceSampleSource.
Definition at line 539 of file bladerf2input.cpp.
References BladeRF2InputSettings::m_centerFrequency, and m_settings.
Referenced by setSampleRate().
|
virtual |
Implements DeviceSampleSource.
Definition at line 528 of file bladerf2input.cpp.
References m_deviceDescription.
Referenced by setMessageQueueToGUI().
Definition at line 578 of file bladerf2input.cpp.
References DeviceBladeRF2::getFrequencyRangeRx(), DeviceBladeRF2Shared::m_dev, and m_deviceShared.
Referenced by BladeRF2InputGui::BladeRF2InputGui(), setSampleRate(), and BladeRF2InputGui::updateFrequencyLimits().
|
inline |
Definition at line 158 of file bladerf2input.h.
References handleMessage(), m_gainModes, webapiReportGet(), webapiRun(), webapiRunGet(), webapiSettingsGet(), and webapiSettingsPutPatch().
Referenced by BladeRF2InputGui::BladeRF2InputGui(), BladeRF2InputGui::on_gainMode_currentIndexChanged(), and webapiFormatDeviceReport().
void BladeRF2Input::getGlobalGainRange | ( | int & | min, |
int & | max, | ||
int & | step | ||
) |
Definition at line 599 of file bladerf2input.cpp.
References DeviceBladeRF2::getGlobalGainRangeRx(), DeviceBladeRF2Shared::m_dev, and m_deviceShared.
Referenced by applySettings(), BladeRF2InputGui::BladeRF2InputGui(), BladeRF2InputGui::handleMessage(), handleMessage(), and setSampleRate().
|
virtual |
Sample rate exposed by the source.
Implements DeviceSampleSource.
Definition at line 533 of file bladerf2input.cpp.
References BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_log2Decim, and m_settings.
Referenced by setMessageQueueToGUI().
void BladeRF2Input::getSampleRateRange | ( | int & | min, |
int & | max, | ||
int & | step | ||
) |
Definition at line 585 of file bladerf2input.cpp.
References DeviceBladeRF2::getSampleRateRangeRx(), DeviceBladeRF2Shared::m_dev, and m_deviceShared.
Referenced by BladeRF2InputGui::BladeRF2InputGui(), BladeRF2InputGui::displaySampleRate(), and setSampleRate().
|
inline |
Definition at line 141 of file bladerf2input.h.
References m_thread.
Referenced by findThread().
|
virtual |
Implements DeviceSampleSource.
Definition at line 606 of file bladerf2input.cpp.
References applySettings(), DeviceSampleSource::calculateDeviceCenterFrequency(), BladeRF2Input::MsgConfigureBladeRF2::create(), BladeRF2Input::MsgReportGainRange::create(), findThread(), FileRecord::genUniqueFileName(), DeviceBladeRF2Shared::MsgReportBuddyChange::getCenterFrequency(), DeviceBladeRF2::getDev(), DeviceAPI::getDeviceEngineInputMessageQueue(), DeviceAPI::getDeviceItemIndex(), DeviceAPI::getDeviceUID(), DeviceBladeRF2Shared::MsgReportBuddyChange::getDevSampleRate(), DeviceBladeRF2Shared::MsgReportBuddyChange::getFcPos(), BladeRF2Input::MsgConfigureBladeRF2::getForce(), getGlobalGainRange(), DeviceBladeRF2Shared::MsgReportBuddyChange::getLOppmTenths(), DeviceSampleSource::getMessageQueueToGUI(), DeviceBladeRF2Shared::MsgReportBuddyChange::getRxElseTx(), BladeRF2Input::MsgConfigureBladeRF2::getSettings(), BladeRF2Input::MsgFileRecord::getStartStop(), BladeRF2Input::MsgStartStop::getStartStop(), FileRecord::handleMessage(), DeviceAPI::initDeviceEngine(), BladeRF2InputSettings::m_bandwidth, BladeRF2InputSettings::m_biasTee, BladeRF2InputSettings::m_centerFrequency, DeviceBladeRF2Shared::m_dev, m_deviceAPI, m_deviceShared, BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_fcPos, BladeRF2InputSettings::m_fileRecordName, m_fileSink, BladeRF2InputSettings::m_log2Decim, BladeRF2InputSettings::m_LOppmTenths, m_settings, BladeRF2InputSettings::m_useReverseAPI, Message::match(), leansdr::max(), leansdr::min(), MessageQueue::push(), setDeviceCenterFrequency(), BladeRF2InputThread::setFcPos(), FileRecord::setFileName(), DeviceAPI::startDeviceEngine(), FileRecord::startRecording(), DeviceAPI::stopDeviceEngine(), FileRecord::stopRecording(), and webapiReverseSendStartStop().
Referenced by getGainModes().
|
virtual |
initializations to be done when all collaborating objects are created and possibly connected
Implements DeviceSampleSource.
Definition at line 203 of file bladerf2input.cpp.
References applySettings(), and m_settings.
|
private |
Definition at line 240 of file bladerf2input.cpp.
References DeviceAPI::getSourceBuddies(), m_deviceAPI, m_thread, and setThread().
Referenced by closeDevice().
|
privateslot |
Definition at line 1350 of file bladerf2input.cpp.
Referenced by ~BladeRF2Input().
|
private |
Definition at line 94 of file bladerf2input.cpp.
References DeviceAPI::getBuddySharedPtr(), DeviceAPI::getDeviceItemIndex(), DeviceAPI::getSamplingDeviceSerial(), DeviceAPI::getSinkBuddies(), DeviceAPI::getSourceBuddies(), DeviceBladeRF2Shared::m_channel, DeviceBladeRF2Shared::m_dev, m_deviceAPI, m_deviceShared, DeviceSampleSource::m_sampleFifo, DeviceBladeRF2Shared::m_source, DeviceBladeRF2::open(), DeviceAPI::setBuddySharedPtr(), and SampleSinkFifo::setSize().
|
virtual |
Implements DeviceSampleSource.
Definition at line 501 of file bladerf2input.cpp.
References m_settings, and BladeRF2InputSettings::serialize().
Referenced by setThread().
|
virtual |
Implements DeviceSampleSource.
Definition at line 544 of file bladerf2input.cpp.
References BladeRF2Input::MsgConfigureBladeRF2::create(), BladeRF2InputSettings::m_centerFrequency, DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, m_settings, and MessageQueue::push().
Referenced by setSampleRate().
|
private |
Definition at line 559 of file bladerf2input.cpp.
Referenced by applySettings(), and handleMessage().
|
inlinevirtual |
Implements DeviceSampleSource.
Definition at line 147 of file bladerf2input.h.
References getDeviceDescription(), getSampleRate(), and DeviceSampleSource::m_guiMessageQueue.
Referenced by BladeRF2InputGui::BladeRF2InputGui().
|
inlinevirtual |
For when the source sample rate is set externally.
Implements DeviceSampleSource.
Definition at line 150 of file bladerf2input.h.
References getBandwidthRange(), getCenterFrequency(), getFrequencyRange(), getGlobalGainRange(), getSampleRateRange(), leansdr::max(), leansdr::min(), and setCenterFrequency().
|
inline |
Definition at line 142 of file bladerf2input.h.
References deserialize(), m_thread, and serialize().
Referenced by moveThreadToBuddy().
|
virtual |
Implements DeviceSampleSource.
Definition at line 257 of file bladerf2input.cpp.
References applySettings(), findThread(), DeviceBladeRF2::getDev(), DeviceAPI::getDeviceItemIndex(), BladeRF2InputThread::getFcPos(), BladeRF2InputThread::getFifo(), BladeRF2InputThread::getLog2Decimation(), BladeRF2InputThread::getNbChannels(), DeviceAPI::getSourceBuddies(), i, DeviceBladeRF2Shared::m_dev, m_deviceAPI, m_deviceShared, BladeRF2InputSettings::m_fcPos, BladeRF2InputSettings::m_log2Decim, m_running, DeviceSampleSource::m_sampleFifo, m_settings, m_thread, DeviceBladeRF2::openRx(), BladeRF2InputThread::setFcPos(), BladeRF2InputThread::setFifo(), BladeRF2InputThread::setLog2Decimation(), BladeRF2InputThread::startWork(), and BladeRF2InputThread::stopWork().
|
virtual |
Implements DeviceSampleSource.
Definition at line 388 of file bladerf2input.cpp.
References DeviceBladeRF2::closeRx(), findThread(), DeviceBladeRF2::getDev(), DeviceAPI::getDeviceItemIndex(), BladeRF2InputThread::getFcPos(), BladeRF2InputThread::getFifo(), BladeRF2InputThread::getLog2Decimation(), BladeRF2InputThread::getNbChannels(), DeviceAPI::getSourceBuddies(), i, DeviceBladeRF2Shared::m_dev, m_deviceAPI, m_deviceShared, m_running, m_thread, BladeRF2InputThread::setFcPos(), BladeRF2InputThread::setFifo(), BladeRF2InputThread::setLog2Decimation(), BladeRF2InputThread::startWork(), and BladeRF2InputThread::stopWork().
Referenced by closeDevice(), and ~BladeRF2Input().
|
private |
Definition at line 1171 of file bladerf2input.cpp.
References SWGSDRangel::SWGBladeRF2InputReport::getBandwidthRange(), DeviceBladeRF2::getBandwidthRangeRx(), SWGSDRangel::SWGDeviceReport::getBladeRf2InputReport(), SWGSDRangel::SWGBladeRF2InputReport::getFrequencyRange(), DeviceBladeRF2::getFrequencyRangeRx(), SWGSDRangel::SWGBladeRF2InputReport::getGainModes(), getGainModes(), SWGSDRangel::SWGBladeRF2InputReport::getGlobalGainRange(), DeviceBladeRF2::getGlobalGainRangeRx(), SWGSDRangel::SWGBladeRF2InputReport::getSampleRateRange(), DeviceBladeRF2::getSampleRateRangeRx(), DeviceBladeRF2Shared::m_dev, m_deviceShared, leansdr::max(), leansdr::min(), SWGSDRangel::SWGBladeRF2InputReport::setBandwidthRange(), SWGSDRangel::SWGBladeRF2InputReport::setFrequencyRange(), SWGSDRangel::SWGBladeRF2InputReport::setGainModes(), SWGSDRangel::SWGBladeRF2InputReport::setGlobalGainRange(), SWGSDRangel::SWGFrequencyRange::setMax(), SWGSDRangel::SWGRange::setMax(), SWGSDRangel::SWGRange::setMin(), SWGSDRangel::SWGFrequencyRange::setMin(), SWGSDRangel::SWGBladeRF2InputReport::setSampleRateRange(), SWGSDRangel::SWGFrequencyRange::setStep(), and SWGSDRangel::SWGRange::setStep().
Referenced by webapiReportGet().
|
private |
Definition at line 1137 of file bladerf2input.cpp.
References SWGSDRangel::SWGDeviceSettings::getBladeRf2InputSettings(), SWGSDRangel::SWGBladeRF2InputSettings::getFileRecordName(), SWGSDRangel::SWGBladeRF2InputSettings::getReverseApiAddress(), BladeRF2InputSettings::m_bandwidth, BladeRF2InputSettings::m_biasTee, BladeRF2InputSettings::m_centerFrequency, BladeRF2InputSettings::m_dcBlock, BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_fcPos, BladeRF2InputSettings::m_fileRecordName, BladeRF2InputSettings::m_gainMode, BladeRF2InputSettings::m_globalGain, BladeRF2InputSettings::m_iqCorrection, BladeRF2InputSettings::m_log2Decim, BladeRF2InputSettings::m_LOppmTenths, BladeRF2InputSettings::m_reverseAPIAddress, BladeRF2InputSettings::m_reverseAPIDeviceIndex, BladeRF2InputSettings::m_reverseAPIPort, BladeRF2InputSettings::m_transverterDeltaFrequency, BladeRF2InputSettings::m_transverterMode, BladeRF2InputSettings::m_useReverseAPI, SWGSDRangel::SWGBladeRF2InputSettings::setBandwidth(), SWGSDRangel::SWGBladeRF2InputSettings::setBiasTee(), SWGSDRangel::SWGBladeRF2InputSettings::setCenterFrequency(), SWGSDRangel::SWGBladeRF2InputSettings::setDcBlock(), SWGSDRangel::SWGBladeRF2InputSettings::setDevSampleRate(), SWGSDRangel::SWGBladeRF2InputSettings::setFcPos(), SWGSDRangel::SWGBladeRF2InputSettings::setFileRecordName(), SWGSDRangel::SWGBladeRF2InputSettings::setGainMode(), SWGSDRangel::SWGBladeRF2InputSettings::setGlobalGain(), SWGSDRangel::SWGBladeRF2InputSettings::setIqCorrection(), SWGSDRangel::SWGBladeRF2InputSettings::setLog2Decim(), SWGSDRangel::SWGBladeRF2InputSettings::setLOppmTenths(), SWGSDRangel::SWGBladeRF2InputSettings::setReverseApiAddress(), SWGSDRangel::SWGBladeRF2InputSettings::setReverseApiDeviceIndex(), SWGSDRangel::SWGBladeRF2InputSettings::setReverseApiPort(), SWGSDRangel::SWGBladeRF2InputSettings::setTransverterDeltaFrequency(), SWGSDRangel::SWGBladeRF2InputSettings::setTransverterMode(), and SWGSDRangel::SWGBladeRF2InputSettings::setUseReverseApi().
Referenced by webapiSettingsGet(), and webapiSettingsPutPatch().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1128 of file bladerf2input.cpp.
References SWGSDRangel::SWGDeviceReport::getBladeRf2InputReport(), SWGSDRangel::SWGBladeRF2InputReport::init(), SWGSDRangel::SWGDeviceReport::setBladeRf2InputReport(), and webapiFormatDeviceReport().
Referenced by getGainModes().
|
private |
Definition at line 1250 of file bladerf2input.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), SWGSDRangel::SWGDeviceSettings::getBladeRf2InputSettings(), DeviceAPI::getDeviceSetIndex(), BladeRF2InputSettings::m_bandwidth, BladeRF2InputSettings::m_biasTee, BladeRF2InputSettings::m_centerFrequency, BladeRF2InputSettings::m_dcBlock, m_deviceAPI, BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_fcPos, BladeRF2InputSettings::m_fileRecordName, BladeRF2InputSettings::m_gainMode, BladeRF2InputSettings::m_globalGain, BladeRF2InputSettings::m_iqCorrection, BladeRF2InputSettings::m_log2Decim, BladeRF2InputSettings::m_LOppmTenths, m_networkManager, m_networkRequest, BladeRF2InputSettings::m_reverseAPIAddress, BladeRF2InputSettings::m_reverseAPIDeviceIndex, BladeRF2InputSettings::m_reverseAPIPort, BladeRF2InputSettings::m_transverterDeltaFrequency, BladeRF2InputSettings::m_transverterMode, SWGSDRangel::SWGBladeRF2InputSettings::setBandwidth(), SWGSDRangel::SWGBladeRF2InputSettings::setBiasTee(), SWGSDRangel::SWGDeviceSettings::setBladeRf2InputSettings(), SWGSDRangel::SWGBladeRF2InputSettings::setCenterFrequency(), SWGSDRangel::SWGBladeRF2InputSettings::setDcBlock(), SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGBladeRF2InputSettings::setDevSampleRate(), SWGSDRangel::SWGDeviceSettings::setDirection(), SWGSDRangel::SWGBladeRF2InputSettings::setFcPos(), SWGSDRangel::SWGBladeRF2InputSettings::setFileRecordName(), SWGSDRangel::SWGBladeRF2InputSettings::setGainMode(), SWGSDRangel::SWGBladeRF2InputSettings::setGlobalGain(), SWGSDRangel::SWGBladeRF2InputSettings::setIqCorrection(), SWGSDRangel::SWGBladeRF2InputSettings::setLog2Decim(), SWGSDRangel::SWGBladeRF2InputSettings::setLOppmTenths(), SWGSDRangel::SWGDeviceSettings::setOriginatorIndex(), SWGSDRangel::SWGBladeRF2InputSettings::setTransverterDeltaFrequency(), and SWGSDRangel::SWGBladeRF2InputSettings::setTransverterMode().
Referenced by applySettings().
|
private |
Definition at line 1322 of file bladerf2input.cpp.
References SWGSDRangel::SWGDeviceSettings::asJson(), DeviceAPI::getDeviceSetIndex(), m_deviceAPI, m_networkManager, m_networkRequest, BladeRF2InputSettings::m_reverseAPIAddress, BladeRF2InputSettings::m_reverseAPIDeviceIndex, BladeRF2InputSettings::m_reverseAPIPort, m_settings, SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGDeviceSettings::setDirection(), and SWGSDRangel::SWGDeviceSettings::setOriginatorIndex().
Referenced by handleMessage().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1231 of file bladerf2input.cpp.
References BladeRF2Input::MsgStartStop::create(), DeviceAPI::getDeviceEngineStateStr(), SWGSDRangel::SWGDeviceState::getState(), m_deviceAPI, DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, and MessageQueue::push().
Referenced by getGainModes().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1222 of file bladerf2input.cpp.
References DeviceAPI::getDeviceEngineStateStr(), SWGSDRangel::SWGDeviceState::getState(), and m_deviceAPI.
Referenced by getGainModes().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1040 of file bladerf2input.cpp.
References SWGSDRangel::SWGDeviceSettings::getBladeRf2InputSettings(), SWGSDRangel::SWGBladeRF2InputSettings::init(), m_settings, SWGSDRangel::SWGDeviceSettings::setBladeRf2InputSettings(), and webapiFormatDeviceSettings().
Referenced by getGainModes().
|
virtual |
Reimplemented from DeviceSampleSource.
Definition at line 1051 of file bladerf2input.cpp.
References BladeRF2Input::MsgConfigureBladeRF2::create(), SWGSDRangel::SWGBladeRF2InputSettings::getBandwidth(), SWGSDRangel::SWGBladeRF2InputSettings::getBiasTee(), SWGSDRangel::SWGDeviceSettings::getBladeRf2InputSettings(), SWGSDRangel::SWGBladeRF2InputSettings::getCenterFrequency(), SWGSDRangel::SWGBladeRF2InputSettings::getDcBlock(), SWGSDRangel::SWGBladeRF2InputSettings::getDevSampleRate(), SWGSDRangel::SWGBladeRF2InputSettings::getFcPos(), SWGSDRangel::SWGBladeRF2InputSettings::getFileRecordName(), SWGSDRangel::SWGBladeRF2InputSettings::getGainMode(), SWGSDRangel::SWGBladeRF2InputSettings::getGlobalGain(), SWGSDRangel::SWGBladeRF2InputSettings::getIqCorrection(), SWGSDRangel::SWGBladeRF2InputSettings::getLog2Decim(), SWGSDRangel::SWGBladeRF2InputSettings::getLOppmTenths(), SWGSDRangel::SWGBladeRF2InputSettings::getReverseApiAddress(), SWGSDRangel::SWGBladeRF2InputSettings::getReverseApiDeviceIndex(), SWGSDRangel::SWGBladeRF2InputSettings::getReverseApiPort(), SWGSDRangel::SWGBladeRF2InputSettings::getTransverterDeltaFrequency(), SWGSDRangel::SWGBladeRF2InputSettings::getTransverterMode(), SWGSDRangel::SWGBladeRF2InputSettings::getUseReverseApi(), BladeRF2InputSettings::m_bandwidth, BladeRF2InputSettings::m_biasTee, BladeRF2InputSettings::m_centerFrequency, BladeRF2InputSettings::m_dcBlock, BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_fcPos, BladeRF2InputSettings::m_fileRecordName, BladeRF2InputSettings::m_gainMode, BladeRF2InputSettings::m_globalGain, DeviceSampleSource::m_guiMessageQueue, DeviceSampleSource::m_inputMessageQueue, BladeRF2InputSettings::m_iqCorrection, BladeRF2InputSettings::m_log2Decim, BladeRF2InputSettings::m_LOppmTenths, BladeRF2InputSettings::m_reverseAPIAddress, BladeRF2InputSettings::m_reverseAPIDeviceIndex, BladeRF2InputSettings::m_reverseAPIPort, m_settings, BladeRF2InputSettings::m_transverterDeltaFrequency, BladeRF2InputSettings::m_transverterMode, BladeRF2InputSettings::m_useReverseAPI, MessageQueue::push(), and webapiFormatDeviceSettings().
Referenced by getGainModes().
|
private |
Definition at line 186 of file bladerf2input.h.
Referenced by applySettings(), closeDevice(), findThread(), handleMessage(), moveThreadToBuddy(), openDevice(), start(), stop(), webapiReverseSendSettings(), webapiReverseSendStartStop(), webapiRun(), webapiRunGet(), and ~BladeRF2Input().
|
private |
Definition at line 189 of file bladerf2input.h.
Referenced by getDeviceDescription().
|
private |
Definition at line 191 of file bladerf2input.h.
Referenced by applySettings(), closeDevice(), getBandwidthRange(), getFrequencyRange(), getGlobalGainRange(), getSampleRateRange(), handleMessage(), openDevice(), start(), stop(), and webapiFormatDeviceReport().
|
private |
File sink to record device I/Q output.
Definition at line 193 of file bladerf2input.h.
Referenced by applySettings(), handleMessage(), and ~BladeRF2Input().
|
private |
Definition at line 194 of file bladerf2input.h.
Referenced by getGainModes().
|
private |
Definition at line 187 of file bladerf2input.h.
|
private |
Definition at line 195 of file bladerf2input.h.
Referenced by webapiReverseSendSettings(), webapiReverseSendStartStop(), and ~BladeRF2Input().
|
private |
Definition at line 196 of file bladerf2input.h.
Referenced by webapiReverseSendSettings(), and webapiReverseSendStartStop().
|
private |
Definition at line 190 of file bladerf2input.h.
Referenced by closeDevice(), start(), stop(), and ~BladeRF2Input().
|
private |
Definition at line 188 of file bladerf2input.h.
Referenced by applySettings(), deserialize(), getCenterFrequency(), getSampleRate(), handleMessage(), init(), serialize(), setCenterFrequency(), start(), webapiReverseSendStartStop(), webapiSettingsGet(), and webapiSettingsPutPatch().
|
private |
Definition at line 192 of file bladerf2input.h.
Referenced by closeDevice(), findThread(), getThread(), moveThreadToBuddy(), setThread(), start(), and stop().