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 <deviceapi.h>
Inherits QObject.
Public Types | |
enum | StreamType { StreamSingleRx, StreamSingleTx, StreamMIMO } |
< This is the same enum as in PluginInterface More... | |
enum | EngineState { StNotStarted, StIdle, StReady, StRunning, StError } |
Public Member Functions | |
DeviceAPI (StreamType streamType, int deviceTabIndex, DSPDeviceSourceEngine *deviceSourceEngine, DSPDeviceSinkEngine *deviceSinkEngine, DSPDeviceMIMOEngine *deviceMIMOEngine) | |
~DeviceAPI () | |
void | addSourceStream (bool connect) |
void | removeLastSourceStream () |
void | addSinkStream (bool connect) |
void | removeLastSinkStream () |
void | addAncillarySink (BasebandSampleSink *sink, unsigned int index=0) |
Adds a sink to receive full baseband and that is not a channel (e.g. spectrum) More... | |
void | removeAncillarySink (BasebandSampleSink *sink, unsigned int index=0) |
Removes it. More... | |
void | setSpectrumSinkInput (bool sourceElseSink=true, unsigned int index=0) |
Used in the MIMO case to select which stream is used as input to main spectrum. More... | |
void | addChannelSink (ThreadedBasebandSampleSink *sink, int streamIndex=0) |
Add a channel sink (Rx) More... | |
void | removeChannelSink (ThreadedBasebandSampleSink *sink, int streamIndex=0) |
Remove a channel sink (Rx) More... | |
void | addChannelSource (ThreadedBasebandSampleSource *sink, int streamIndex=0) |
Add a channel source (Tx) More... | |
void | removeChannelSource (ThreadedBasebandSampleSource *sink, int streamIndex=0) |
Remove a channel source (Tx) More... | |
void | addChannelSinkAPI (ChannelAPI *channelAPI, int streamIndex=0) |
void | removeChannelSinkAPI (ChannelAPI *channelAPI, int streamIndex=0) |
void | addChannelSourceAPI (ChannelAPI *channelAPI, int streamIndex=0) |
void | removeChannelSourceAPI (ChannelAPI *channelAPI, int streamIndex=0) |
void | setSampleSource (DeviceSampleSource *source) |
Set the device sample source (single Rx) More... | |
void | setSampleSink (DeviceSampleSink *sink) |
Set the device sample sink (single Tx) More... | |
void | setSampleMIMO (DeviceSampleMIMO *mimo) |
Set the device sample MIMO. More... | |
DeviceSampleSource * | getSampleSource () |
Return pointer to the device sample source (single Rx) or nullptr. More... | |
DeviceSampleSink * | getSampleSink () |
Return pointer to the device sample sink (single Tx) or nullptr. More... | |
DeviceSampleMIMO * | getSampleMIMO () |
Return pointer to the device sample MIMO or nullptr. More... | |
bool | initDeviceEngine () |
Init the device engine corresponding to the stream type. More... | |
bool | startDeviceEngine () |
Start the device engine corresponding to the stream type. More... | |
void | stopDeviceEngine () |
Stop the device engine corresponding to the stream type. More... | |
EngineState | state () const |
Return the state of the device engine corresponding to the stream type. More... | |
QString | errorMessage () |
Last error message from the device engine. More... | |
uint | getDeviceUID () const |
Return the current device engine unique ID. More... | |
MessageQueue * | getDeviceEngineInputMessageQueue () |
Device engine message queue. More... | |
MessageQueue * | getSamplingDeviceInputMessageQueue () |
Sampling device (ex: single Rx) input message queue. More... | |
MessageQueue * | getSamplingDeviceGUIMessageQueue () |
Sampling device (ex: single Tx) GUI input message queue. More... | |
void | configureCorrections (bool dcOffsetCorrection, bool iqImbalanceCorrection, int streamIndex=0) |
Configure current device engine DSP corrections (Rx) More... | |
void | setHardwareId (const QString &id) |
void | setSamplingDeviceId (const QString &id) |
void | resetSamplingDeviceId () |
void | setSamplingDeviceSerial (const QString &serial) |
void | setSamplingDeviceDisplayName (const QString &name) |
void | setSamplingDeviceSequence (int sequence) |
void | setHardwareUserArguments (const QString &userArguments) |
void | setSamplingDevicePluginInterface (PluginInterface *iface) |
void | setSamplingDevicePluginInstanceGUI (PluginInstanceGUI *gui) |
const QString & | getHardwareId () const |
const QString & | getSamplingDeviceId () const |
const QString & | getSamplingDeviceSerial () const |
const QString & | getSamplingDeviceDisplayName () const |
uint32_t | getSamplingDeviceSequence () const |
const QString & | getHardwareUserArguments () const |
void | setDeviceNbItems (uint32_t nbItems) |
void | setDeviceItemIndex (uint32_t index) |
uint32_t | getDeviceNbItems () const |
uint32_t | getDeviceItemIndex () const |
int | getDeviceSetIndex () const |
PluginInterface * | getPluginInterface () |
PluginInstanceGUI * | getSamplingDevicePluginInstanceGUI () |
void | getDeviceEngineStateStr (QString &state) |
ChannelAPI * | getChanelSinkAPIAt (int index, int streamIndex=0) |
ChannelAPI * | getChanelSourceAPIAt (int index, int streamIndex=0) |
int | getNbSourceChannels () const |
int | getNbSinkChannels () const |
void | loadSamplingDeviceSettings (const Preset *preset) |
void | saveSamplingDeviceSettings (Preset *preset) |
DSPDeviceSourceEngine * | getDeviceSourceEngine () |
DSPDeviceSinkEngine * | getDeviceSinkEngine () |
void | addSourceBuddy (DeviceAPI *buddy) |
void | addSinkBuddy (DeviceAPI *buddy) |
void | removeSourceBuddy (DeviceAPI *buddy) |
void | removeSinkBuddy (DeviceAPI *buddy) |
void | clearBuddiesLists () |
void * | getBuddySharedPtr () const |
void | setBuddySharedPtr (void *ptr) |
bool | isBuddyLeader () const |
void | setBuddyLeader (bool isBuddyLeader) |
const std::vector< DeviceAPI * > & | getSourceBuddies () const |
const std::vector< DeviceAPI * > & | getSinkBuddies () const |
void | setNbSourceStreams (uint32_t nbSourceStreams) |
void | setNbSinkStreams (uint32_t nbSinkStreams) |
uint32_t | getNbSourceStreams () const |
uint32_t | getNbSinkStreams () const |
const QTimer & | getMasterTimer () const |
This is the DSPEngine master timer. More... | |
Protected Attributes | |
StreamType | m_streamType |
int | m_deviceTabIndex |
This is the tab index in the GUI and also the device set index. More... | |
QString | m_hardwareId |
The internal id that identifies the type of hardware (i.e. HackRF, BladeRF, ...) More... | |
uint32_t | m_deviceNbItems |
Number of items in the physical device either Rx or Tx. Can be >1 for NxM devices (i.e. 2 for LimeSDR) More... | |
uint32_t | m_deviceItemIndex |
The item index inb the Rx or Tx side of the physical device. Can be >0 for NxM devices (i.e. 0 or 1 for LimeSDR) More... | |
uint32_t | m_nbSourceStreams |
The number of source streams in the logical device. 1 for Single Rx (SI) can be 0 or more for MIMO. More... | |
uint32_t | m_nbSinkStreams |
The number of sink streams in the logical device. 1 for Single Tx (SO) can be 0 or more for MIMO. More... | |
PluginInterface * | m_pluginInterface |
const QTimer & | m_masterTimer |
This is the DSPEngine master timer. More... | |
QString | m_samplingDeviceId |
The internal plugin ID corresponding to the device (i.e. for HackRF input, for HackRF output ...) More... | |
QString | m_samplingDeviceSerial |
The device serial number defined by the vendor or a fake one (SDRplay) More... | |
QString | m_samplingDeviceDisplayName |
The human readable name identifying this instance. More... | |
uint32_t | m_samplingDeviceSequence |
The device sequence. >0 when more than one device of the same type is connected. More... | |
QString | m_hardwareUserArguments |
User given arguments to be used at hardware level i.e. for the hardware device and device sequence. More... | |
PluginInstanceGUI * | m_samplingDevicePluginInstanceUI |
std::vector< DeviceAPI * > | m_sourceBuddies |
Device source APIs referencing the same physical device. More... | |
std::vector< DeviceAPI * > | m_sinkBuddies |
Device sink APIs referencing the same physical device. More... | |
void * | m_buddySharedPtr |
bool | m_isBuddyLeader |
DSPDeviceSourceEngine * | m_deviceSourceEngine |
QList< ChannelAPI * > | m_channelSinkAPIs |
DSPDeviceSinkEngine * | m_deviceSinkEngine |
QList< ChannelAPI * > | m_channelSourceAPIs |
DSPDeviceMIMOEngine * | m_deviceMIMOEngine |
Private Member Functions | |
void | renumerateChannels () |
Definition at line 42 of file deviceapi.h.
Enumerator | |
---|---|
StNotStarted | engine is before initialization |
StIdle | engine is idle |
StReady | engine is ready to run |
StRunning | engine is running |
StError | engine is in error |
Definition at line 52 of file deviceapi.h.
< This is the same enum as in PluginInterface
Definition at line 45 of file deviceapi.h.
DeviceAPI::DeviceAPI | ( | StreamType | streamType, |
int | deviceTabIndex, | ||
DSPDeviceSourceEngine * | deviceSourceEngine, | ||
DSPDeviceSinkEngine * | deviceSinkEngine, | ||
DSPDeviceMIMOEngine * | deviceMIMOEngine | ||
) |
Definition at line 32 of file deviceapi.cpp.
DeviceAPI::~DeviceAPI | ( | ) |
Definition at line 57 of file deviceapi.cpp.
void DeviceAPI::addAncillarySink | ( | BasebandSampleSink * | sink, |
unsigned int | index = 0 |
||
) |
Adds a sink to receive full baseband and that is not a channel (e.g. spectrum)
Definition at line 89 of file deviceapi.cpp.
References DSPDeviceMIMOEngine::addAncillarySink(), DSPDeviceSourceEngine::addSink(), DSPDeviceSinkEngine::addSpectrumSink(), m_deviceMIMOEngine, m_deviceSinkEngine, and m_deviceSourceEngine.
Referenced by AirspyHFInput::AirspyHFInput(), AirspyInput::AirspyInput(), TestMI::init(), and RTLSDRInput::RTLSDRInput().
void DeviceAPI::addChannelSink | ( | ThreadedBasebandSampleSink * | sink, |
int | streamIndex = 0 |
||
) |
Add a channel sink (Rx)
Definition at line 118 of file deviceapi.cpp.
References DSPDeviceMIMOEngine::addChannelSink(), DSPDeviceSourceEngine::addThreadedSink(), m_deviceMIMOEngine, and m_deviceSourceEngine.
Referenced by AMDemod::AMDemod(), AMDemod::applySettings(), ATVDemod::ATVDemod(), BFMDemod::BFMDemod(), ChannelAnalyzer::ChannelAnalyzer(), DSDDemod::DSDDemod(), FreeDVDemod::FreeDVDemod(), FreqTracker::FreqTracker(), LocalSink::LocalSink(), LoRaDemod::LoRaDemod(), RemoteSink::RemoteSink(), SSBDemod::SSBDemod(), UDPSink::UDPSink(), and WFMDemod::WFMDemod().
void DeviceAPI::addChannelSinkAPI | ( | ChannelAPI * | channelAPI, |
int | streamIndex = 0 |
||
) |
Definition at line 156 of file deviceapi.cpp.
References m_channelSinkAPIs, and renumerateChannels().
Referenced by AMDemod::AMDemod(), AMDemod::applySettings(), ATVDemod::ATVDemod(), BFMDemod::BFMDemod(), ChannelAnalyzer::ChannelAnalyzer(), DSDDemod::DSDDemod(), FreeDVDemod::FreeDVDemod(), FreqTracker::FreqTracker(), LocalSink::LocalSink(), LoRaDemod::LoRaDemod(), RemoteSink::RemoteSink(), SSBDemod::SSBDemod(), UDPSink::UDPSink(), and WFMDemod::WFMDemod().
void DeviceAPI::addChannelSource | ( | ThreadedBasebandSampleSource * | sink, |
int | streamIndex = 0 |
||
) |
Add a channel source (Tx)
Definition at line 138 of file deviceapi.cpp.
References DSPDeviceSinkEngine::addThreadedSource(), and m_deviceSinkEngine.
Referenced by AMMod::AMMod(), ATVMod::ATVMod(), FileSource::FileSource(), FreeDVMod::FreeDVMod(), LocalSource::LocalSource(), NFMMod::NFMMod(), RemoteSource::RemoteSource(), SSBMod::SSBMod(), UDPSource::UDPSource(), and WFMMod::WFMMod().
void DeviceAPI::addChannelSourceAPI | ( | ChannelAPI * | channelAPI, |
int | streamIndex = 0 |
||
) |
Definition at line 174 of file deviceapi.cpp.
References m_channelSourceAPIs, and renumerateChannels().
Referenced by AMMod::AMMod(), ATVMod::ATVMod(), FileSource::FileSource(), FreeDVMod::FreeDVMod(), LocalSource::LocalSource(), NFMMod::NFMMod(), RemoteSource::RemoteSource(), SSBMod::SSBMod(), UDPSource::UDPSource(), and WFMMod::WFMMod().
void DeviceAPI::addSinkBuddy | ( | DeviceAPI * | buddy | ) |
Definition at line 646 of file deviceapi.cpp.
References getHardwareId(), getSamplingDeviceSerial(), m_sinkBuddies, m_sourceBuddies, m_streamType, StreamSingleRx, and StreamSingleTx.
void DeviceAPI::addSinkStream | ( | bool | connect | ) |
Definition at line 75 of file deviceapi.cpp.
References DSPDeviceMIMOEngine::addSinkStream(), and m_deviceMIMOEngine.
void DeviceAPI::addSourceBuddy | ( | DeviceAPI * | buddy | ) |
Definition at line 617 of file deviceapi.cpp.
References getHardwareId(), getSamplingDeviceSerial(), m_sinkBuddies, m_sourceBuddies, m_streamType, StreamSingleRx, and StreamSingleTx.
void DeviceAPI::addSourceStream | ( | bool | connect | ) |
Definition at line 61 of file deviceapi.cpp.
References DSPDeviceMIMOEngine::addSourceStream(), and m_deviceMIMOEngine.
void DeviceAPI::clearBuddiesLists | ( | ) |
Definition at line 740 of file deviceapi.cpp.
References isBuddyLeader(), m_sinkBuddies, and m_sourceBuddies.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
void DeviceAPI::configureCorrections | ( | bool | dcOffsetCorrection, |
bool | iqImbalanceCorrection, | ||
int | streamIndex = 0 |
||
) |
Configure current device engine DSP corrections (Rx)
Definition at line 355 of file deviceapi.cpp.
References DSPDeviceSourceEngine::configureCorrections(), DSPDeviceMIMOEngine::configureCorrections(), m_deviceMIMOEngine, and m_deviceSourceEngine.
Referenced by TestSourceInput::applySettings(), Bladerf1Input::applySettings(), AirspyInput::applySettings(), AirspyHFInput::applySettings(), TestMI::applySettings(), RTLSDRInput::applySettings(), PlutoSDRInput::applySettings(), HackRFInput::applySettings(), FCDProPlusInput::applySettings(), KiwiSDRInput::applySettings(), LocalInput::applySettings(), FCDProInput::applySettings(), SDRPlayInput::applySettings(), BladeRF2Input::applySettings(), SoapySDRInput::applySettings(), XTRXInput::applySettings(), LimeSDRInput::applySettings(), and RemoteInput::applySettings().
QString DeviceAPI::errorMessage | ( | ) |
Last error message from the device engine.
Definition at line 290 of file deviceapi.cpp.
References DSPDeviceSourceEngine::errorMessage(), DSPDeviceSinkEngine::errorMessage(), DSPDeviceMIMOEngine::errorMessage(), m_deviceMIMOEngine, m_deviceSinkEngine, and m_deviceSourceEngine.
Referenced by SDRPlayGui::updateStatus(), KiwiSDRGui::updateStatus(), Bladerf1OutputGui::updateStatus(), BladeRF2OutputGui::updateStatus(), PerseusGui::updateStatus(), LocalOutputGui::updateStatus(), FCDProPlusGui::updateStatus(), FileSinkGui::updateStatus(), Bladerf1InputGui::updateStatus(), PlutoSDROutputGUI::updateStatus(), AirspyGui::updateStatus(), AirspyHFGui::updateStatus(), BladeRF2InputGui::updateStatus(), FileInputGUI::updateStatus(), XTRXOutputGUI::updateStatus(), TestSourceGui::updateStatus(), RTLSDRGui::updateStatus(), HackRFOutputGui::updateStatus(), LimeSDROutputGUI::updateStatus(), PlutoSDRInputGui::updateStatus(), HackRFInputGui::updateStatus(), FCDProGui::updateStatus(), XTRXInputGUI::updateStatus(), TestMIGui::updateStatus(), LimeSDRInputGUI::updateStatus(), LocalInputGui::updateStatus(), RemoteInputGui::updateStatus(), SoapySDROutputGui::updateStatus(), SoapySDRInputGui::updateStatus(), and RemoteOutputSinkGui::updateStatus().
|
inline |
Definition at line 161 of file deviceapi.h.
Referenced by PlutoSDROutput::openDevice(), Bladerf1Output::openDevice(), HackRFOutput::openDevice(), Bladerf1Input::openDevice(), BladeRF2Output::openDevice(), PlutoSDRInput::openDevice(), HackRFInput::openDevice(), SoapySDROutput::openDevice(), BladeRF2Input::openDevice(), SoapySDRInput::openDevice(), XTRXOutput::openDevice(), LimeSDROutput::openDevice(), XTRXInput::openDevice(), LimeSDRInput::openDevice(), PlutoSDROutput::resumeBuddies(), PlutoSDRInput::resumeBuddies(), PlutoSDROutput::suspendBuddies(), and PlutoSDRInput::suspendBuddies().
ChannelAPI * DeviceAPI::getChanelSinkAPIAt | ( | int | index, |
int | streamIndex = 0 |
||
) |
Definition at line 445 of file deviceapi.cpp.
References m_channelSinkAPIs, m_streamType, and StreamSingleRx.
Referenced by WebAPIAdapterGUI::devicesetChannelReportGet(), WebAPIAdapterSrv::devicesetChannelReportGet(), WebAPIAdapterGUI::devicesetChannelSettingsGet(), WebAPIAdapterSrv::devicesetChannelSettingsGet(), WebAPIAdapterGUI::devicesetChannelSettingsPutPatch(), WebAPIAdapterSrv::devicesetChannelSettingsPutPatch(), WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
ChannelAPI * DeviceAPI::getChanelSourceAPIAt | ( | int | index, |
int | streamIndex = 0 |
||
) |
Definition at line 463 of file deviceapi.cpp.
References m_channelSourceAPIs, m_streamType, and StreamSingleTx.
Referenced by WebAPIAdapterGUI::devicesetChannelReportGet(), WebAPIAdapterSrv::devicesetChannelReportGet(), WebAPIAdapterGUI::devicesetChannelSettingsGet(), WebAPIAdapterSrv::devicesetChannelSettingsGet(), WebAPIAdapterGUI::devicesetChannelSettingsPutPatch(), WebAPIAdapterSrv::devicesetChannelSettingsPutPatch(), WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
MessageQueue * DeviceAPI::getDeviceEngineInputMessageQueue | ( | ) |
Device engine message queue.
Definition at line 316 of file deviceapi.cpp.
References DSPDeviceSourceEngine::getInputMessageQueue(), DSPDeviceSinkEngine::getInputMessageQueue(), DSPDeviceMIMOEngine::getInputMessageQueue(), m_deviceMIMOEngine, m_deviceSinkEngine, and m_deviceSourceEngine.
Referenced by PlutoSDROutput::applySettings(), TestSourceInput::applySettings(), Bladerf1Output::applySettings(), HackRFOutput::applySettings(), Bladerf1Input::applySettings(), PerseusInput::applySettings(), AirspyInput::applySettings(), AirspyHFInput::applySettings(), TestMI::applySettings(), RTLSDRInput::applySettings(), PlutoSDRInput::applySettings(), BladeRF2Output::applySettings(), FCDProPlusInput::applySettings(), HackRFInput::applySettings(), KiwiSDRInput::applySettings(), FCDProInput::applySettings(), RemoteOutput::applySettings(), SDRPlayInput::applySettings(), SoapySDROutput::applySettings(), BladeRF2Input::applySettings(), FileSinkOutput::applySettings(), SoapySDRInput::applySettings(), XTRXOutput::applySettings(), LimeSDROutput::applySettings(), LimeSDRInput::applySettings(), HackRFOutput::handleMessage(), BladeRF2Output::handleMessage(), HackRFInput::handleMessage(), BladeRF2Input::handleMessage(), XTRXOutput::handleMessage(), LimeSDROutput::handleMessage(), XTRXInput::handleMessage(), LimeSDRInput::handleMessage(), FileInput::init(), RemoteInputUDPHandler::processData(), LocalOutput::setCenterFrequency(), LocalInput::setCenterFrequency(), LocalOutput::setSampleRate(), and LocalInput::setSampleRate().
void DeviceAPI::getDeviceEngineStateStr | ( | QString & | state | ) |
Definition at line 389 of file deviceapi.cpp.
References m_deviceSinkEngine, m_deviceSourceEngine, DSPDeviceSourceEngine::state(), DSPDeviceSinkEngine::state(), DSPDeviceSourceEngine::StError, DSPDeviceSinkEngine::StError, DSPDeviceSourceEngine::StIdle, DSPDeviceSinkEngine::StIdle, DSPDeviceSourceEngine::StNotStarted, DSPDeviceSinkEngine::StNotStarted, DSPDeviceSourceEngine::StReady, DSPDeviceSinkEngine::StReady, DSPDeviceSourceEngine::StRunning, and DSPDeviceSinkEngine::StRunning.
Referenced by WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterSrv::getDeviceSet(), PlutoSDROutput::webapiRun(), PlutoSDRInput::webapiRun(), Bladerf1Output::webapiRun(), HackRFOutput::webapiRun(), FCDProPlusInput::webapiRun(), TestSourceInput::webapiRun(), AirspyInput::webapiRun(), Bladerf1Input::webapiRun(), PerseusInput::webapiRun(), RTLSDRInput::webapiRun(), AirspyHFInput::webapiRun(), TestMI::webapiRun(), FCDProInput::webapiRun(), LocalOutput::webapiRun(), BladeRF2Output::webapiRun(), HackRFInput::webapiRun(), KiwiSDRInput::webapiRun(), LocalInput::webapiRun(), RemoteOutput::webapiRun(), SDRPlayInput::webapiRun(), SoapySDROutput::webapiRun(), BladeRF2Input::webapiRun(), FileSinkOutput::webapiRun(), SoapySDRInput::webapiRun(), XTRXOutput::webapiRun(), LimeSDROutput::webapiRun(), XTRXInput::webapiRun(), LimeSDRInput::webapiRun(), RemoteInput::webapiRun(), FileInput::webapiRun(), PlutoSDROutput::webapiRunGet(), PlutoSDRInput::webapiRunGet(), Bladerf1Output::webapiRunGet(), HackRFOutput::webapiRunGet(), FCDProPlusInput::webapiRunGet(), TestSourceInput::webapiRunGet(), AirspyInput::webapiRunGet(), Bladerf1Input::webapiRunGet(), PerseusInput::webapiRunGet(), RTLSDRInput::webapiRunGet(), AirspyHFInput::webapiRunGet(), TestMI::webapiRunGet(), FCDProInput::webapiRunGet(), LocalOutput::webapiRunGet(), BladeRF2Output::webapiRunGet(), HackRFInput::webapiRunGet(), KiwiSDRInput::webapiRunGet(), LocalInput::webapiRunGet(), RemoteOutput::webapiRunGet(), SDRPlayInput::webapiRunGet(), SoapySDROutput::webapiRunGet(), BladeRF2Input::webapiRunGet(), FileSinkOutput::webapiRunGet(), SoapySDRInput::webapiRunGet(), XTRXOutput::webapiRunGet(), LimeSDROutput::webapiRunGet(), XTRXInput::webapiRunGet(), LimeSDRInput::webapiRunGet(), RemoteInput::webapiRunGet(), and FileInput::webapiRunGet().
|
inline |
Definition at line 129 of file deviceapi.h.
Referenced by BladeRF2Output::applySettings(), SoapySDROutput::applySettings(), BladeRF2Input::applySettings(), SoapySDRInput::applySettings(), XTRXOutput::applySettings(), XTRXInput::applySettings(), WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterSrv::getDeviceSet(), BladeRF2Output::handleMessage(), SoapySDROutput::handleMessage(), BladeRF2Input::handleMessage(), SoapySDRInput::handleMessage(), BladeRF2Output::openDevice(), SoapySDROutput::openDevice(), BladeRF2Input::openDevice(), SoapySDRInput::openDevice(), XTRXOutput::openDevice(), LimeSDROutput::openDevice(), XTRXInput::openDevice(), LimeSDRInput::openDevice(), BladeRF2Output::start(), SoapySDROutput::start(), BladeRF2Input::start(), SoapySDRInput::start(), XTRXOutput::start(), XTRXInput::start(), BladeRF2Output::stop(), SoapySDROutput::stop(), BladeRF2Input::stop(), SoapySDRInput::stop(), XTRXOutput::stop(), and XTRXInput::stop().
|
inline |
Definition at line 128 of file deviceapi.h.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
|
inline |
Definition at line 131 of file deviceapi.h.
Referenced by Bladerf1Output::webapiReverseSendSettings(), PlutoSDROutput::webapiReverseSendSettings(), TestSourceInput::webapiReverseSendSettings(), HackRFOutput::webapiReverseSendSettings(), Bladerf1Input::webapiReverseSendSettings(), PerseusInput::webapiReverseSendSettings(), LocalOutput::webapiReverseSendSettings(), AirspyInput::webapiReverseSendSettings(), AirspyHFInput::webapiReverseSendSettings(), TestMI::webapiReverseSendSettings(), RTLSDRInput::webapiReverseSendSettings(), PlutoSDRInput::webapiReverseSendSettings(), FCDProPlusInput::webapiReverseSendSettings(), HackRFInput::webapiReverseSendSettings(), BladeRF2Output::webapiReverseSendSettings(), KiwiSDRInput::webapiReverseSendSettings(), LocalInput::webapiReverseSendSettings(), FCDProInput::webapiReverseSendSettings(), RemoteOutput::webapiReverseSendSettings(), SDRPlayInput::webapiReverseSendSettings(), BladeRF2Input::webapiReverseSendSettings(), SoapySDROutput::webapiReverseSendSettings(), SoapySDRInput::webapiReverseSendSettings(), XTRXOutput::webapiReverseSendSettings(), LimeSDROutput::webapiReverseSendSettings(), XTRXInput::webapiReverseSendSettings(), LimeSDRInput::webapiReverseSendSettings(), RemoteInput::webapiReverseSendSettings(), FileInput::webapiReverseSendSettings(), Bladerf1Output::webapiReverseSendStartStop(), TestSourceInput::webapiReverseSendStartStop(), PlutoSDROutput::webapiReverseSendStartStop(), HackRFOutput::webapiReverseSendStartStop(), Bladerf1Input::webapiReverseSendStartStop(), PerseusInput::webapiReverseSendStartStop(), LocalOutput::webapiReverseSendStartStop(), AirspyInput::webapiReverseSendStartStop(), TestMI::webapiReverseSendStartStop(), AirspyHFInput::webapiReverseSendStartStop(), RTLSDRInput::webapiReverseSendStartStop(), PlutoSDRInput::webapiReverseSendStartStop(), FCDProPlusInput::webapiReverseSendStartStop(), HackRFInput::webapiReverseSendStartStop(), BladeRF2Output::webapiReverseSendStartStop(), KiwiSDRInput::webapiReverseSendStartStop(), LocalInput::webapiReverseSendStartStop(), FCDProInput::webapiReverseSendStartStop(), RemoteOutput::webapiReverseSendStartStop(), SDRPlayInput::webapiReverseSendStartStop(), BladeRF2Input::webapiReverseSendStartStop(), SoapySDROutput::webapiReverseSendStartStop(), SoapySDRInput::webapiReverseSendStartStop(), XTRXOutput::webapiReverseSendStartStop(), LimeSDROutput::webapiReverseSendStartStop(), XTRXInput::webapiReverseSendStartStop(), LimeSDRInput::webapiReverseSendStartStop(), RemoteInput::webapiReverseSendStartStop(), and FileInput::webapiReverseSendStartStop().
|
inline |
Definition at line 154 of file deviceapi.h.
Referenced by Bladerf1Input::applySettings().
|
inline |
Definition at line 153 of file deviceapi.h.
Referenced by Bladerf1Output::applySettings().
uint DeviceAPI::getDeviceUID | ( | ) | const |
Return the current device engine unique ID.
Definition at line 303 of file deviceapi.cpp.
References DSPDeviceSourceEngine::getUID(), DSPDeviceSinkEngine::getUID(), DSPDeviceMIMOEngine::getUID(), m_deviceMIMOEngine, m_deviceSinkEngine, and m_deviceSourceEngine.
Referenced by AirspyHFInput::AirspyHFInput(), AirspyInput::AirspyInput(), TestSourceInput::handleMessage(), PerseusInput::handleMessage(), AirspyInput::handleMessage(), RTLSDRInput::handleMessage(), AirspyHFInput::handleMessage(), Bladerf1Input::handleMessage(), PlutoSDRInput::handleMessage(), TestMI::handleMessage(), FCDProInput::handleMessage(), FCDProPlusInput::handleMessage(), HackRFInput::handleMessage(), KiwiSDRInput::handleMessage(), LocalInput::handleMessage(), SDRPlayInput::handleMessage(), BladeRF2Input::handleMessage(), SoapySDRInput::handleMessage(), LimeSDRInput::handleMessage(), RemoteInput::handleMessage(), TestMI::init(), LimeSDROutputGUI::LimeSDROutputGUI(), and RTLSDRInput::RTLSDRInput().
|
inline |
Definition at line 119 of file deviceapi.h.
Referenced by addSinkBuddy(), addSourceBuddy(), MainCore::changeSampleSink(), MainCore::changeSampleSource(), WebAPIAdapterGUI::devicesetDeviceReportGet(), WebAPIAdapterSrv::devicesetDeviceReportGet(), WebAPIAdapterGUI::devicesetDeviceSettingsGet(), WebAPIAdapterSrv::devicesetDeviceSettingsGet(), WebAPIAdapterGUI::devicesetDeviceSettingsPutPatch(), WebAPIAdapterSrv::devicesetDeviceSettingsPutPatch(), WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterSrv::getDeviceSet(), removeSinkBuddy(), removeSourceBuddy(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 124 of file deviceapi.h.
Referenced by SoapySDROutput::openDevice(), and SoapySDRInput::openDevice().
|
inline |
This is the DSPEngine master timer.
Definition at line 173 of file deviceapi.h.
Referenced by FileInputGUI::FileInputGUI(), FileSinkGui::FileSinkGui(), FileSourceGUI::FileSourceGUI(), RemoteOutputSinkGui::RemoteOutputSinkGui(), and RemoteSourceGUI::RemoteSourceGUI().
|
inline |
Definition at line 144 of file deviceapi.h.
Referenced by WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
|
inline |
Definition at line 171 of file deviceapi.h.
|
inline |
Definition at line 143 of file deviceapi.h.
Referenced by WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
|
inline |
Definition at line 170 of file deviceapi.h.
Referenced by AMDemod::getNumberOfDeviceStreams().
|
inline |
Definition at line 132 of file deviceapi.h.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
DeviceSampleMIMO * DeviceAPI::getSampleMIMO | ( | ) |
Return pointer to the device sample MIMO or nullptr.
Definition at line 231 of file deviceapi.cpp.
References DSPDeviceMIMOEngine::getMIMO(), and m_deviceMIMOEngine.
Referenced by AMDemod::applySettings(), MainWindow::sampleMIMOChanged(), and TestMIGui::TestMIGui().
DeviceSampleSink * DeviceAPI::getSampleSink | ( | ) |
Return pointer to the device sample sink (single Tx) or nullptr.
Definition at line 222 of file deviceapi.cpp.
References DSPDeviceSinkEngine::getSink(), and m_deviceSinkEngine.
Referenced by Bladerf1OutputGui::Bladerf1OutputGui(), BladeRF2OutputGui::BladeRF2OutputGui(), MainCore::changeSampleSink(), WebAPIAdapterGUI::devicesetDeviceReportGet(), WebAPIAdapterSrv::devicesetDeviceReportGet(), WebAPIAdapterGUI::devicesetDeviceRunDelete(), WebAPIAdapterSrv::devicesetDeviceRunDelete(), WebAPIAdapterGUI::devicesetDeviceRunGet(), WebAPIAdapterSrv::devicesetDeviceRunGet(), WebAPIAdapterGUI::devicesetDeviceRunPost(), WebAPIAdapterSrv::devicesetDeviceRunPost(), WebAPIAdapterGUI::devicesetDeviceSettingsGet(), WebAPIAdapterSrv::devicesetDeviceSettingsGet(), WebAPIAdapterGUI::devicesetDeviceSettingsPutPatch(), WebAPIAdapterSrv::devicesetDeviceSettingsPutPatch(), FileSinkGui::FileSinkGui(), HackRFOutputGui::HackRFOutputGui(), LimeSDROutputGUI::LimeSDROutputGUI(), LocalOutputGui::LocalOutputGui(), PlutoSDROutputGUI::PlutoSDROutputGUI(), RemoteOutputSinkGui::RemoteOutputSinkGui(), MainWindow::sampleSinkChanged(), SoapySDROutputGui::SoapySDROutputGui(), RemoteSource::webapiFormatChannelReport(), and XTRXOutputGUI::XTRXOutputGUI().
DeviceSampleSource * DeviceAPI::getSampleSource | ( | ) |
Return pointer to the device sample source (single Rx) or nullptr.
Definition at line 213 of file deviceapi.cpp.
References DSPDeviceSourceEngine::getSource(), and m_deviceSourceEngine.
Referenced by AirspyGui::AirspyGui(), AirspyHFGui::AirspyHFGui(), Bladerf1InputGui::Bladerf1InputGui(), BladeRF2InputGui::BladeRF2InputGui(), MainCore::changeSampleSource(), WebAPIAdapterGUI::devicesetDeviceReportGet(), WebAPIAdapterSrv::devicesetDeviceReportGet(), WebAPIAdapterGUI::devicesetDeviceRunDelete(), WebAPIAdapterSrv::devicesetDeviceRunDelete(), WebAPIAdapterGUI::devicesetDeviceRunGet(), WebAPIAdapterSrv::devicesetDeviceRunGet(), WebAPIAdapterGUI::devicesetDeviceRunPost(), WebAPIAdapterSrv::devicesetDeviceRunPost(), WebAPIAdapterGUI::devicesetDeviceSettingsGet(), WebAPIAdapterSrv::devicesetDeviceSettingsGet(), WebAPIAdapterGUI::devicesetDeviceSettingsPutPatch(), WebAPIAdapterSrv::devicesetDeviceSettingsPutPatch(), FCDProGui::FCDProGui(), FCDProPlusGui::FCDProPlusGui(), FileInputGUI::FileInputGUI(), HackRFInputGui::HackRFInputGui(), KiwiSDRGui::KiwiSDRGui(), LimeSDRInputGUI::LimeSDRInputGUI(), LocalInputGui::LocalInputGui(), PerseusGui::PerseusGui(), PlutoSDRInputGui::PlutoSDRInputGui(), RemoteInputGui::RemoteInputGui(), RTLSDRGui::RTLSDRGui(), MainWindow::sampleSourceChanged(), SDRPlayGui::SDRPlayGui(), SoapySDRInputGui::SoapySDRInputGui(), TestSourceGui::TestSourceGui(), and XTRXInputGUI::XTRXInputGUI().
|
inline |
Definition at line 122 of file deviceapi.h.
Referenced by MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
MessageQueue * DeviceAPI::getSamplingDeviceGUIMessageQueue | ( | ) |
Sampling device (ex: single Tx) GUI input message queue.
Definition at line 342 of file deviceapi.cpp.
References DeviceSampleSink::getMessageQueueToGUI(), DeviceSampleSource::getMessageQueueToGUI(), DeviceSampleMIMO::getMessageQueueToGUI(), DSPDeviceMIMOEngine::getMIMO(), DSPDeviceSinkEngine::getSink(), DSPDeviceSourceEngine::getSource(), m_deviceMIMOEngine, m_deviceSinkEngine, and m_deviceSourceEngine.
Referenced by XTRXOutput::handleMessage(), LimeSDROutput::handleMessage(), XTRXInput::handleMessage(), and LimeSDRInput::handleMessage().
|
inline |
Definition at line 120 of file deviceapi.h.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
MessageQueue * DeviceAPI::getSamplingDeviceInputMessageQueue | ( | ) |
Sampling device (ex: single Rx) input message queue.
Definition at line 329 of file deviceapi.cpp.
References DeviceSampleSink::getInputMessageQueue(), DeviceSampleSource::getInputMessageQueue(), DeviceSampleMIMO::getInputMessageQueue(), DSPDeviceMIMOEngine::getMIMO(), DSPDeviceSinkEngine::getSink(), DSPDeviceSourceEngine::getSource(), m_deviceMIMOEngine, m_deviceSinkEngine, and m_deviceSourceEngine.
Referenced by HackRFOutput::applySettings(), and HackRFInput::applySettings().
|
inline |
Definition at line 134 of file deviceapi.h.
Referenced by MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 123 of file deviceapi.h.
Referenced by WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterSrv::getDeviceSet(), AirspyInput::openDevice(), FCDProPlusInput::openDevice(), FCDProInput::openDevice(), SoapySDROutput::openDevice(), SDRPlayInput::openDevice(), and SoapySDRInput::openDevice().
|
inline |
Definition at line 121 of file deviceapi.h.
Referenced by addSinkBuddy(), addSourceBuddy(), MainCore::changeSampleSink(), MainCore::changeSampleSource(), WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterSrv::getDeviceSet(), PlutoSDROutput::openDevice(), Bladerf1Output::openDevice(), HackRFOutput::openDevice(), Bladerf1Input::openDevice(), PerseusInput::openDevice(), AirspyHFInput::openDevice(), BladeRF2Output::openDevice(), PlutoSDRInput::openDevice(), RTLSDRInput::openDevice(), HackRFInput::openDevice(), BladeRF2Input::openDevice(), XTRXOutput::openDevice(), LimeSDROutput::openDevice(), XTRXInput::openDevice(), LimeSDRInput::openDevice(), removeSinkBuddy(), removeSourceBuddy(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 166 of file deviceapi.h.
Referenced by Bladerf1Input::applySettings(), BladeRF2Output::applySettings(), PlutoSDRInput::applySettings(), HackRFInput::applySettings(), SoapySDROutput::applySettings(), BladeRF2Input::applySettings(), SoapySDRInput::applySettings(), XTRXOutput::applySettings(), LimeSDROutput::applySettings(), LimeSDRInput::applySettings(), Bladerf1Input::closeDevice(), PlutoSDRInput::closeDevice(), BladeRF2Output::closeDevice(), HackRFInput::closeDevice(), SoapySDROutput::closeDevice(), BladeRF2Input::closeDevice(), SoapySDRInput::closeDevice(), XTRXOutput::closeDevice(), LimeSDROutput::closeDevice(), XTRXInput::closeDevice(), LimeSDRInput::closeDevice(), BladeRF2Output::findThread(), SoapySDROutput::findThread(), XTRXOutput::findThread(), XTRXOutput::handleMessage(), LimeSDROutput::handleMessage(), XTRXInput::handleMessage(), LimeSDRInput::handleMessage(), BladeRF2Output::moveThreadToBuddy(), SoapySDROutput::moveThreadToBuddy(), XTRXOutput::moveThreadToBuddy(), Bladerf1Input::openDevice(), BladeRF2Output::openDevice(), PlutoSDRInput::openDevice(), HackRFInput::openDevice(), SoapySDROutput::openDevice(), BladeRF2Input::openDevice(), SoapySDRInput::openDevice(), XTRXOutput::openDevice(), LimeSDROutput::openDevice(), XTRXInput::openDevice(), LimeSDRInput::openDevice(), PlutoSDRInput::resumeBuddies(), LimeSDROutput::resumeTxBuddies(), LimeSDRInput::resumeTxBuddies(), XTRXInput::resumeTxThread(), BladeRF2Output::start(), SoapySDROutput::start(), XTRXOutput::start(), BladeRF2Output::stop(), SoapySDROutput::stop(), XTRXOutput::stop(), PlutoSDRInput::suspendBuddies(), LimeSDROutput::suspendTxBuddies(), LimeSDRInput::suspendTxBuddies(), and XTRXInput::suspendTxThread().
|
inline |
Definition at line 165 of file deviceapi.h.
Referenced by PlutoSDROutput::applySettings(), Bladerf1Output::applySettings(), HackRFOutput::applySettings(), BladeRF2Output::applySettings(), SoapySDROutput::applySettings(), BladeRF2Input::applySettings(), SoapySDRInput::applySettings(), XTRXOutput::applySettings(), LimeSDROutput::applySettings(), LimeSDRInput::applySettings(), PlutoSDROutput::closeDevice(), Bladerf1Output::closeDevice(), HackRFOutput::closeDevice(), BladeRF2Output::closeDevice(), SoapySDROutput::closeDevice(), BladeRF2Input::closeDevice(), SoapySDRInput::closeDevice(), XTRXOutput::closeDevice(), LimeSDROutput::closeDevice(), XTRXInput::closeDevice(), LimeSDRInput::closeDevice(), BladeRF2Input::findThread(), SoapySDRInput::findThread(), XTRXInput::findThread(), XTRXOutput::handleMessage(), LimeSDROutput::handleMessage(), XTRXInput::handleMessage(), LimeSDRInput::handleMessage(), BladeRF2Input::moveThreadToBuddy(), SoapySDRInput::moveThreadToBuddy(), XTRXInput::moveThreadToBuddy(), PlutoSDROutput::openDevice(), Bladerf1Output::openDevice(), HackRFOutput::openDevice(), BladeRF2Output::openDevice(), SoapySDROutput::openDevice(), BladeRF2Input::openDevice(), SoapySDRInput::openDevice(), XTRXOutput::openDevice(), LimeSDROutput::openDevice(), XTRXInput::openDevice(), LimeSDRInput::openDevice(), PlutoSDROutput::resumeBuddies(), LimeSDROutput::resumeRxBuddies(), LimeSDRInput::resumeRxBuddies(), XTRXOutput::resumeRxThread(), BladeRF2Input::start(), SoapySDRInput::start(), XTRXInput::start(), BladeRF2Input::stop(), SoapySDRInput::stop(), XTRXInput::stop(), PlutoSDROutput::suspendBuddies(), LimeSDROutput::suspendRxBuddies(), LimeSDRInput::suspendRxBuddies(), and XTRXOutput::suspendRxThread().
bool DeviceAPI::initDeviceEngine | ( | ) |
Init the device engine corresponding to the stream type.
Definition at line 240 of file deviceapi.cpp.
References DSPDeviceSourceEngine::initAcquisition(), DSPDeviceSinkEngine::initGeneration(), DSPDeviceMIMOEngine::initProcess(), m_deviceMIMOEngine, m_deviceSinkEngine, and m_deviceSourceEngine.
Referenced by PlutoSDROutput::handleMessage(), Bladerf1Output::handleMessage(), HackRFOutput::handleMessage(), TestSourceInput::handleMessage(), PerseusInput::handleMessage(), RTLSDRInput::handleMessage(), AirspyInput::handleMessage(), AirspyHFInput::handleMessage(), PlutoSDRInput::handleMessage(), Bladerf1Input::handleMessage(), LocalOutput::handleMessage(), TestMI::handleMessage(), FCDProInput::handleMessage(), FCDProPlusInput::handleMessage(), BladeRF2Output::handleMessage(), HackRFInput::handleMessage(), KiwiSDRInput::handleMessage(), SoapySDROutput::handleMessage(), LocalInput::handleMessage(), RemoteOutput::handleMessage(), SDRPlayInput::handleMessage(), BladeRF2Input::handleMessage(), SoapySDRInput::handleMessage(), FileSinkOutput::handleMessage(), XTRXOutput::handleMessage(), LimeSDROutput::handleMessage(), XTRXInput::handleMessage(), LimeSDRInput::handleMessage(), RemoteInput::handleMessage(), and FileInput::handleMessage().
|
inline |
Definition at line 163 of file deviceapi.h.
Referenced by clearBuddiesLists(), PlutoSDROutputGUI::updateStatus(), XTRXOutputGUI::updateStatus(), LimeSDROutputGUI::updateStatus(), PlutoSDRInputGui::updateStatus(), XTRXInputGUI::updateStatus(), and LimeSDRInputGUI::updateStatus().
void DeviceAPI::loadSamplingDeviceSettings | ( | const Preset * | preset | ) |
Definition at line 481 of file deviceapi.cpp.
References PluginInstanceGUI::deserialize(), DeviceSampleSink::deserialize(), DeviceSampleSource::deserialize(), Preset::findBestDeviceConfig(), Preset::getCenterFrequency(), Preset::getDescription(), Preset::getGroup(), DSPDeviceSinkEngine::getSink(), DSPDeviceSourceEngine::getSource(), Preset::isSourcePreset(), m_deviceSinkEngine, m_deviceSourceEngine, m_samplingDeviceId, m_samplingDevicePluginInstanceUI, m_samplingDeviceSequence, m_samplingDeviceSerial, PluginInstanceGUI::setCenterFrequency(), DeviceSampleSink::setCenterFrequency(), and DeviceSampleSource::setCenterFrequency().
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainCore::loadPresetSettings(), MainWindow::loadPresetSettings(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
void DeviceAPI::removeAncillarySink | ( | BasebandSampleSink * | sink, |
unsigned int | index = 0 |
||
) |
Removes it.
Definition at line 100 of file deviceapi.cpp.
References m_deviceMIMOEngine, m_deviceSinkEngine, m_deviceSourceEngine, DSPDeviceMIMOEngine::removeAncillarySink(), DSPDeviceSourceEngine::removeSink(), and DSPDeviceSinkEngine::removeSpectrumSink().
Referenced by AirspyHFInput::~AirspyHFInput(), AirspyInput::~AirspyInput(), Bladerf1Input::~Bladerf1Input(), BladeRF2Input::~BladeRF2Input(), FCDProInput::~FCDProInput(), FCDProPlusInput::~FCDProPlusInput(), HackRFInput::~HackRFInput(), KiwiSDRInput::~KiwiSDRInput(), LimeSDRInput::~LimeSDRInput(), LocalInput::~LocalInput(), PerseusInput::~PerseusInput(), PlutoSDRInput::~PlutoSDRInput(), RemoteInput::~RemoteInput(), RTLSDRInput::~RTLSDRInput(), SDRPlayInput::~SDRPlayInput(), SoapySDRInput::~SoapySDRInput(), TestMI::~TestMI(), TestSourceInput::~TestSourceInput(), and XTRXInput::~XTRXInput().
void DeviceAPI::removeChannelSink | ( | ThreadedBasebandSampleSink * | sink, |
int | streamIndex = 0 |
||
) |
Remove a channel sink (Rx)
Definition at line 127 of file deviceapi.cpp.
References m_deviceMIMOEngine, m_deviceSourceEngine, DSPDeviceMIMOEngine::removeChannelSink(), and DSPDeviceSourceEngine::removeThreadedSink().
Referenced by AMDemod::applySettings(), AMDemod::~AMDemod(), ATVDemod::~ATVDemod(), BFMDemod::~BFMDemod(), ChannelAnalyzer::~ChannelAnalyzer(), DATVDemod::~DATVDemod(), DSDDemod::~DSDDemod(), FreeDVDemod::~FreeDVDemod(), FreqTracker::~FreqTracker(), LocalSink::~LocalSink(), LoRaDemod::~LoRaDemod(), NFMDemod::~NFMDemod(), RemoteSink::~RemoteSink(), SSBDemod::~SSBDemod(), UDPSink::~UDPSink(), and WFMDemod::~WFMDemod().
void DeviceAPI::removeChannelSinkAPI | ( | ChannelAPI * | channelAPI, |
int | streamIndex = 0 |
||
) |
Definition at line 163 of file deviceapi.cpp.
References m_channelSinkAPIs, renumerateChannels(), and ChannelAPI::setIndexInDeviceSet().
Referenced by AMDemod::applySettings(), AMDemod::~AMDemod(), ATVDemod::~ATVDemod(), BFMDemod::~BFMDemod(), ChannelAnalyzer::~ChannelAnalyzer(), DATVDemod::~DATVDemod(), DSDDemod::~DSDDemod(), FreeDVDemod::~FreeDVDemod(), FreqTracker::~FreqTracker(), LocalSink::~LocalSink(), LoRaDemod::~LoRaDemod(), NFMDemod::~NFMDemod(), RemoteSink::~RemoteSink(), SSBDemod::~SSBDemod(), UDPSink::~UDPSink(), and WFMDemod::~WFMDemod().
void DeviceAPI::removeChannelSource | ( | ThreadedBasebandSampleSource * | sink, |
int | streamIndex = 0 |
||
) |
Remove a channel source (Tx)
Definition at line 147 of file deviceapi.cpp.
References m_deviceSinkEngine, and DSPDeviceSinkEngine::removeThreadedSource().
Referenced by AMMod::~AMMod(), ATVMod::~ATVMod(), FileSource::~FileSource(), FreeDVMod::~FreeDVMod(), LocalSource::~LocalSource(), NFMMod::~NFMMod(), RemoteSource::~RemoteSource(), SSBMod::~SSBMod(), UDPSource::~UDPSource(), and WFMMod::~WFMMod().
void DeviceAPI::removeChannelSourceAPI | ( | ChannelAPI * | channelAPI, |
int | streamIndex = 0 |
||
) |
Definition at line 181 of file deviceapi.cpp.
References m_channelSourceAPIs, renumerateChannels(), and ChannelAPI::setIndexInDeviceSet().
Referenced by AMMod::~AMMod(), ATVMod::~ATVMod(), FileSource::~FileSource(), FreeDVMod::~FreeDVMod(), LocalSource::~LocalSource(), NFMMod::~NFMMod(), RemoteSource::~RemoteSource(), SSBMod::~SSBMod(), UDPSource::~UDPSource(), and WFMMod::~WFMMod().
void DeviceAPI::removeLastSinkStream | ( | ) |
Definition at line 82 of file deviceapi.cpp.
References m_deviceMIMOEngine, and DSPDeviceMIMOEngine::removeLastSinkStream().
void DeviceAPI::removeLastSourceStream | ( | ) |
Definition at line 68 of file deviceapi.cpp.
References m_deviceMIMOEngine, and DSPDeviceMIMOEngine::removeLastSourceStream().
Referenced by TestMI::~TestMI().
void DeviceAPI::removeSinkBuddy | ( | DeviceAPI * | buddy | ) |
Definition at line 707 of file deviceapi.cpp.
References getHardwareId(), getSamplingDeviceSerial(), m_sinkBuddies, m_streamType, and StreamSingleTx.
void DeviceAPI::removeSourceBuddy | ( | DeviceAPI * | buddy | ) |
Definition at line 674 of file deviceapi.cpp.
References getHardwareId(), getSamplingDeviceSerial(), m_sourceBuddies, m_streamType, and StreamSingleRx.
|
private |
Definition at line 773 of file deviceapi.cpp.
References i, m_channelSinkAPIs, m_channelSourceAPIs, m_deviceTabIndex, m_streamType, StreamSingleRx, and StreamSingleTx.
Referenced by addChannelSinkAPI(), addChannelSourceAPI(), removeChannelSinkAPI(), and removeChannelSourceAPI().
|
inline |
Definition at line 111 of file deviceapi.h.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
void DeviceAPI::saveSamplingDeviceSettings | ( | Preset * | preset | ) |
Definition at line 569 of file deviceapi.cpp.
References Preset::addOrUpdateDeviceConfig(), PluginInstanceGUI::getCenterFrequency(), DeviceSampleSink::getCenterFrequency(), DeviceSampleSource::getCenterFrequency(), DSPDeviceSinkEngine::getSink(), DSPDeviceSourceEngine::getSource(), Preset::isSourcePreset(), m_deviceSinkEngine, m_deviceSourceEngine, m_samplingDeviceId, m_samplingDevicePluginInstanceUI, m_samplingDeviceSequence, m_samplingDeviceSerial, PluginInstanceGUI::serialize(), DeviceSampleSink::serialize(), DeviceSampleSource::serialize(), and Preset::setCenterFrequency().
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), MainWindow::sampleSourceChanged(), MainCore::savePresetSettings(), and MainWindow::savePresetSettings().
|
inline |
Definition at line 164 of file deviceapi.h.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 162 of file deviceapi.h.
Referenced by PlutoSDROutput::openDevice(), BladeRF2Output::openDevice(), PlutoSDRInput::openDevice(), SoapySDROutput::openDevice(), BladeRF2Input::openDevice(), SoapySDRInput::openDevice(), XTRXOutput::openDevice(), LimeSDROutput::openDevice(), XTRXInput::openDevice(), LimeSDRInput::openDevice(), Bladerf1Input::~Bladerf1Input(), Bladerf1Output::~Bladerf1Output(), HackRFInput::~HackRFInput(), and HackRFOutput::~HackRFOutput().
void DeviceAPI::setDeviceItemIndex | ( | uint32_t | index | ) |
Definition at line 374 of file deviceapi.cpp.
References m_deviceItemIndex.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
void DeviceAPI::setDeviceNbItems | ( | uint32_t | nbItems | ) |
Definition at line 369 of file deviceapi.cpp.
References m_deviceNbItems.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
void DeviceAPI::setHardwareId | ( | const QString & | id | ) |
Definition at line 364 of file deviceapi.cpp.
References m_hardwareId.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 115 of file deviceapi.h.
Referenced by MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 169 of file deviceapi.h.
Referenced by RemoteOutput::RemoteOutput().
|
inline |
Definition at line 168 of file deviceapi.h.
Referenced by AirspyHFInput::AirspyHFInput(), AirspyInput::AirspyInput(), and RTLSDRInput::RTLSDRInput().
void DeviceAPI::setSampleMIMO | ( | DeviceSampleMIMO * | mimo | ) |
Set the device sample MIMO.
Definition at line 206 of file deviceapi.cpp.
References m_deviceMIMOEngine, and DSPDeviceMIMOEngine::setMIMO().
Referenced by MainWindow::sampleMIMOChanged().
void DeviceAPI::setSampleSink | ( | DeviceSampleSink * | sink | ) |
Set the device sample sink (single Tx)
Definition at line 199 of file deviceapi.cpp.
References m_deviceSinkEngine, and DSPDeviceSinkEngine::setSink().
Referenced by MainCore::changeSampleSink(), and MainWindow::sampleSinkChanged().
void DeviceAPI::setSampleSource | ( | DeviceSampleSource * | source | ) |
Set the device sample source (single Rx)
Definition at line 192 of file deviceapi.cpp.
References m_deviceSourceEngine, and DSPDeviceSourceEngine::setSource().
Referenced by MainCore::changeSampleSource(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 113 of file deviceapi.h.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 110 of file deviceapi.h.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
void DeviceAPI::setSamplingDevicePluginInstanceGUI | ( | PluginInstanceGUI * | gui | ) |
Definition at line 384 of file deviceapi.cpp.
References m_samplingDevicePluginInstanceUI.
Referenced by MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
void DeviceAPI::setSamplingDevicePluginInterface | ( | PluginInterface * | iface | ) |
Definition at line 379 of file deviceapi.cpp.
References m_pluginInterface.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 114 of file deviceapi.h.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 112 of file deviceapi.h.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
void DeviceAPI::setSpectrumSinkInput | ( | bool | sourceElseSink = true , |
unsigned int | index = 0 |
||
) |
Used in the MIMO case to select which stream is used as input to main spectrum.
Definition at line 111 of file deviceapi.cpp.
References m_deviceMIMOEngine, and DSPDeviceMIMOEngine::setSpectrumSinkInput().
Referenced by TestMIGui::on_spectrumSource_currentIndexChanged(), and TestMIGui::on_streamIndex_currentIndexChanged().
bool DeviceAPI::startDeviceEngine | ( | ) |
Start the device engine corresponding to the stream type.
Definition at line 253 of file deviceapi.cpp.
References m_deviceMIMOEngine, m_deviceSinkEngine, m_deviceSourceEngine, DSPDeviceSourceEngine::startAcquisition(), DSPDeviceSinkEngine::startGeneration(), and DSPDeviceMIMOEngine::startProcess().
Referenced by PlutoSDROutput::handleMessage(), Bladerf1Output::handleMessage(), HackRFOutput::handleMessage(), TestSourceInput::handleMessage(), PerseusInput::handleMessage(), RTLSDRInput::handleMessage(), AirspyInput::handleMessage(), AirspyHFInput::handleMessage(), PlutoSDRInput::handleMessage(), Bladerf1Input::handleMessage(), LocalOutput::handleMessage(), TestMI::handleMessage(), FCDProInput::handleMessage(), FCDProPlusInput::handleMessage(), BladeRF2Output::handleMessage(), HackRFInput::handleMessage(), KiwiSDRInput::handleMessage(), SoapySDROutput::handleMessage(), LocalInput::handleMessage(), RemoteOutput::handleMessage(), SDRPlayInput::handleMessage(), BladeRF2Input::handleMessage(), SoapySDRInput::handleMessage(), FileSinkOutput::handleMessage(), XTRXOutput::handleMessage(), LimeSDROutput::handleMessage(), XTRXInput::handleMessage(), LimeSDRInput::handleMessage(), RemoteInput::handleMessage(), and FileInput::handleMessage().
DeviceAPI::EngineState DeviceAPI::state | ( | ) | const |
Return the state of the device engine corresponding to the stream type.
Definition at line 277 of file deviceapi.cpp.
References m_deviceMIMOEngine, m_deviceSinkEngine, m_deviceSourceEngine, DSPDeviceSourceEngine::state(), DSPDeviceSinkEngine::state(), DSPDeviceMIMOEngine::state(), and StError.
Referenced by SDRPlayGui::updateStatus(), KiwiSDRGui::updateStatus(), Bladerf1OutputGui::updateStatus(), BladeRF2OutputGui::updateStatus(), PerseusGui::updateStatus(), LocalOutputGui::updateStatus(), FCDProPlusGui::updateStatus(), FileSinkGui::updateStatus(), Bladerf1InputGui::updateStatus(), PlutoSDROutputGUI::updateStatus(), AirspyGui::updateStatus(), AirspyHFGui::updateStatus(), BladeRF2InputGui::updateStatus(), FileInputGUI::updateStatus(), XTRXOutputGUI::updateStatus(), TestSourceGui::updateStatus(), RTLSDRGui::updateStatus(), HackRFOutputGui::updateStatus(), LimeSDROutputGUI::updateStatus(), PlutoSDRInputGui::updateStatus(), HackRFInputGui::updateStatus(), FCDProGui::updateStatus(), XTRXInputGUI::updateStatus(), TestMIGui::updateStatus(), LimeSDRInputGUI::updateStatus(), LocalInputGui::updateStatus(), RemoteInputGui::updateStatus(), SoapySDROutputGui::updateStatus(), SoapySDRInputGui::updateStatus(), and RemoteOutputSinkGui::updateStatus().
void DeviceAPI::stopDeviceEngine | ( | ) |
Stop the device engine corresponding to the stream type.
Definition at line 266 of file deviceapi.cpp.
References m_deviceMIMOEngine, m_deviceSinkEngine, m_deviceSourceEngine, DSPDeviceSourceEngine::stopAcquistion(), DSPDeviceSinkEngine::stopGeneration(), and DSPDeviceMIMOEngine::stopProcess().
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), PlutoSDROutput::handleMessage(), Bladerf1Output::handleMessage(), HackRFOutput::handleMessage(), TestSourceInput::handleMessage(), PerseusInput::handleMessage(), RTLSDRInput::handleMessage(), AirspyInput::handleMessage(), AirspyHFInput::handleMessage(), PlutoSDRInput::handleMessage(), Bladerf1Input::handleMessage(), LocalOutput::handleMessage(), TestMI::handleMessage(), FCDProPlusInput::handleMessage(), FCDProInput::handleMessage(), BladeRF2Output::handleMessage(), HackRFInput::handleMessage(), KiwiSDRInput::handleMessage(), SoapySDROutput::handleMessage(), LocalInput::handleMessage(), RemoteOutput::handleMessage(), SDRPlayInput::handleMessage(), BladeRF2Input::handleMessage(), SoapySDRInput::handleMessage(), FileSinkOutput::handleMessage(), XTRXOutput::handleMessage(), LimeSDROutput::handleMessage(), XTRXInput::handleMessage(), LimeSDRInput::handleMessage(), RemoteInput::handleMessage(), FileInput::handleMessage(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
protected |
Definition at line 198 of file deviceapi.h.
|
protected |
Definition at line 204 of file deviceapi.h.
Referenced by addChannelSinkAPI(), getChanelSinkAPIAt(), removeChannelSinkAPI(), and renumerateChannels().
|
protected |
Definition at line 209 of file deviceapi.h.
Referenced by addChannelSourceAPI(), getChanelSourceAPIAt(), removeChannelSourceAPI(), and renumerateChannels().
|
protected |
The item index inb the Rx or Tx side of the physical device. Can be >0 for NxM devices (i.e. 0 or 1 for LimeSDR)
Definition at line 182 of file deviceapi.h.
Referenced by setDeviceItemIndex().
|
protected |
Definition at line 213 of file deviceapi.h.
Referenced by addAncillarySink(), addChannelSink(), addSinkStream(), addSourceStream(), configureCorrections(), errorMessage(), getDeviceEngineInputMessageQueue(), getDeviceUID(), getSampleMIMO(), getSamplingDeviceGUIMessageQueue(), getSamplingDeviceInputMessageQueue(), initDeviceEngine(), removeAncillarySink(), removeChannelSink(), removeLastSinkStream(), removeLastSourceStream(), setSampleMIMO(), setSpectrumSinkInput(), startDeviceEngine(), state(), and stopDeviceEngine().
|
protected |
Number of items in the physical device either Rx or Tx. Can be >1 for NxM devices (i.e. 2 for LimeSDR)
Definition at line 181 of file deviceapi.h.
Referenced by setDeviceNbItems().
|
protected |
Definition at line 208 of file deviceapi.h.
Referenced by addAncillarySink(), addChannelSource(), errorMessage(), getDeviceEngineInputMessageQueue(), getDeviceEngineStateStr(), getDeviceUID(), getSampleSink(), getSamplingDeviceGUIMessageQueue(), getSamplingDeviceInputMessageQueue(), initDeviceEngine(), loadSamplingDeviceSettings(), removeAncillarySink(), removeChannelSource(), saveSamplingDeviceSettings(), setSampleSink(), startDeviceEngine(), state(), and stopDeviceEngine().
|
protected |
Definition at line 203 of file deviceapi.h.
Referenced by addAncillarySink(), addChannelSink(), configureCorrections(), errorMessage(), getDeviceEngineInputMessageQueue(), getDeviceEngineStateStr(), getDeviceUID(), getSampleSource(), getSamplingDeviceGUIMessageQueue(), getSamplingDeviceInputMessageQueue(), initDeviceEngine(), loadSamplingDeviceSettings(), removeAncillarySink(), removeChannelSink(), saveSamplingDeviceSettings(), setSampleSource(), startDeviceEngine(), state(), and stopDeviceEngine().
|
protected |
This is the tab index in the GUI and also the device set index.
Definition at line 179 of file deviceapi.h.
Referenced by renumerateChannels().
|
protected |
The internal id that identifies the type of hardware (i.e. HackRF, BladeRF, ...)
Definition at line 180 of file deviceapi.h.
Referenced by setHardwareId().
|
protected |
User given arguments to be used at hardware level i.e. for the hardware device and device sequence.
Definition at line 191 of file deviceapi.h.
|
protected |
Definition at line 199 of file deviceapi.h.
|
protected |
This is the DSPEngine master timer.
Definition at line 186 of file deviceapi.h.
|
protected |
The number of sink streams in the logical device. 1 for Single Tx (SO) can be 0 or more for MIMO.
Definition at line 184 of file deviceapi.h.
|
protected |
The number of source streams in the logical device. 1 for Single Rx (SI) can be 0 or more for MIMO.
Definition at line 183 of file deviceapi.h.
|
protected |
Definition at line 185 of file deviceapi.h.
Referenced by setSamplingDevicePluginInterface().
|
protected |
The human readable name identifying this instance.
Definition at line 189 of file deviceapi.h.
|
protected |
The internal plugin ID corresponding to the device (i.e. for HackRF input, for HackRF output ...)
Definition at line 187 of file deviceapi.h.
Referenced by loadSamplingDeviceSettings(), and saveSamplingDeviceSettings().
|
protected |
Definition at line 192 of file deviceapi.h.
Referenced by loadSamplingDeviceSettings(), saveSamplingDeviceSettings(), and setSamplingDevicePluginInstanceGUI().
|
protected |
The device sequence. >0 when more than one device of the same type is connected.
Definition at line 190 of file deviceapi.h.
Referenced by loadSamplingDeviceSettings(), and saveSamplingDeviceSettings().
|
protected |
The device serial number defined by the vendor or a fake one (SDRplay)
Definition at line 188 of file deviceapi.h.
Referenced by loadSamplingDeviceSettings(), and saveSamplingDeviceSettings().
|
protected |
Device sink APIs referencing the same physical device.
Definition at line 197 of file deviceapi.h.
Referenced by addSinkBuddy(), addSourceBuddy(), clearBuddiesLists(), and removeSinkBuddy().
|
protected |
Device source APIs referencing the same physical device.
Definition at line 196 of file deviceapi.h.
Referenced by addSinkBuddy(), addSourceBuddy(), clearBuddiesLists(), and removeSourceBuddy().
|
protected |
Definition at line 178 of file deviceapi.h.
Referenced by addSinkBuddy(), addSourceBuddy(), getChanelSinkAPIAt(), getChanelSourceAPIAt(), removeSinkBuddy(), removeSourceBuddy(), and renumerateChannels().