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.
Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
PlutoSDROutputPlugin Class Reference

#include <plutosdroutputplugin.h>

+ Inheritance diagram for PlutoSDROutputPlugin:
+ Collaboration diagram for PlutoSDROutputPlugin:

Public Member Functions

 PlutoSDROutputPlugin (QObject *parent=NULL)
 
const PluginDescriptorgetPluginDescriptor () const
 
void initPlugin (PluginAPI *pluginAPI)
 
virtual SamplingDevices enumSampleSinks ()
 
virtual PluginInstanceGUIcreateSampleSinkPluginInstanceGUI (const QString &sinkId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleSinkcreateSampleSinkPluginInstance (const QString &sinkId, DeviceAPI *deviceAPI)
 
- Public Member Functions inherited from PluginInterface
virtual ~PluginInterface ()
 
virtual PluginInstanceGUIcreateRxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
 
virtual BasebandSampleSinkcreateRxChannelBS (DeviceAPI *deviceAPI)
 
virtual ChannelAPIcreateRxChannelCS (DeviceAPI *deviceAPI)
 
virtual PluginInstanceGUIcreateTxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
 
virtual BasebandSampleSourcecreateTxChannelBS (DeviceAPI *deviceAPI)
 
virtual ChannelAPIcreateTxChannelCS (DeviceAPI *deviceAPI)
 
virtual SamplingDevices enumSampleSources ()
 
virtual PluginInstanceGUIcreateSampleSourcePluginInstanceGUI (const QString &sourceId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleSourcecreateSampleSourcePluginInstance (const QString &sourceId, DeviceAPI *deviceAPI)
 
virtual void deleteSampleSourcePluginInstanceGUI (PluginInstanceGUI *ui)
 
virtual void deleteSampleSourcePluginInstanceInput (DeviceSampleSource *source)
 
virtual void deleteSampleSinkPluginInstanceGUI (PluginInstanceGUI *ui)
 
virtual void deleteSampleSinkPluginInstanceOutput (DeviceSampleSink *sink)
 
virtual SamplingDevices enumSampleMIMO ()
 
virtual PluginInstanceGUIcreateSampleMIMOPluginInstanceGUI (const QString &mimoId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleMIMOcreateSampleMIMOPluginInstance (const QString &mimoId, DeviceAPI *deviceAPI)
 
virtual void deleteSampleMIMOPluginInstanceGUI (PluginInstanceGUI *ui)
 
virtual void deleteSampleMIMOPluginInstanceMIMO (DeviceSampleMIMO *mimo)
 

Static Public Attributes

static const QString m_hardwareID = "PlutoSDR"
 
static const QString m_deviceTypeID = PLUTOSDR_DEVICE_TYPE_ID
 

Static Private Attributes

static const PluginDescriptor m_pluginDescriptor
 

Additional Inherited Members

- Public Types inherited from PluginInterface
typedef QList< SamplingDeviceSamplingDevices
 

Detailed Description

Definition at line 28 of file plutosdroutputplugin.h.

Constructor & Destructor Documentation

◆ PlutoSDROutputPlugin()

PlutoSDROutputPlugin::PlutoSDROutputPlugin ( QObject *  parent = NULL)
explicit

Definition at line 42 of file plutosdroutputplugin.cpp.

42  :
43  QObject(parent)
44 {
45 }

Member Function Documentation

◆ createSampleSinkPluginInstance()

DeviceSampleSink * PlutoSDROutputPlugin::createSampleSinkPluginInstance ( const QString &  sinkId,
DeviceAPI deviceAPI 
)
virtual

Reimplemented from PluginInterface.

Definition at line 119 of file plutosdroutputplugin.cpp.

References m_deviceTypeID.

120 {
121  if (sinkId == m_deviceTypeID)
122  {
123  PlutoSDROutput* output = new PlutoSDROutput(deviceAPI);
124  return output;
125  }
126  else
127  {
128  return 0;
129  }
130 }
static const QString m_deviceTypeID

◆ createSampleSinkPluginInstanceGUI()

PluginInstanceGUI * PlutoSDROutputPlugin::createSampleSinkPluginInstanceGUI ( const QString &  sinkId,
QWidget **  widget,
DeviceUISet deviceUISet 
)
virtual

Reimplemented from PluginInterface.

Definition at line 101 of file plutosdroutputplugin.cpp.

References m_deviceTypeID.

Referenced by enumSampleSinks().

105 {
106  if(sinkId == m_deviceTypeID)
107  {
108  PlutoSDROutputGUI* gui = new PlutoSDROutputGUI(deviceUISet);
109  *widget = gui;
110  return gui;
111  }
112  else
113  {
114  return 0;
115  }
116 }
static const QString m_deviceTypeID
+ Here is the caller graph for this function:

◆ enumSampleSinks()

PluginInterface::SamplingDevices PlutoSDROutputPlugin::enumSampleSinks ( )
virtual

Reimplemented from PluginInterface.

Definition at line 58 of file plutosdroutputplugin.cpp.

References arg(), createSampleSinkPluginInstanceGUI(), DevicePlutoSDR::getSerials(), i, DevicePlutoSDR::instance(), m_deviceTypeID, m_hardwareID, PluginInterface::SamplingDevice::PhysicalDevice, DevicePlutoSDR::scan(), and PluginInterface::SamplingDevice::StreamSingleTx.

59 {
61  std::vector<std::string> serials;
63 
64  std::vector<std::string>::const_iterator it = serials.begin();
65  int i;
66  SamplingDevices result;
67 
68  for (i = 0; it != serials.end(); ++it, ++i)
69  {
70  QString serial_str = QString::fromLocal8Bit(it->c_str());
71  QString displayedName(QString("PlutoSDR[%1] %2").arg(i).arg(serial_str));
72 
73  result.append(SamplingDevice(displayedName,
76  serial_str,
77  i,
80  1,
81  0));
82 
83  qDebug("PlutoSDROutputPlugin::enumSampleSources: enumerated PlutoSDR device #%d", i);
84  }
85 
86  return result;
87 }
static const QString m_hardwareID
static DevicePlutoSDR & instance()
static const QString m_deviceTypeID
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
void getSerials(std::vector< std::string > &serials) const
int32_t i
Definition: decimators.h:244
Exposes a single output stream that can be one of the streams of a physical device.
QList< SamplingDevice > SamplingDevices
+ Here is the call graph for this function:

◆ getPluginDescriptor()

const PluginDescriptor & PlutoSDROutputPlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 47 of file plutosdroutputplugin.cpp.

References m_pluginDescriptor.

48 {
49  return m_pluginDescriptor;
50 }
static const PluginDescriptor m_pluginDescriptor

◆ initPlugin()

void PlutoSDROutputPlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 52 of file plutosdroutputplugin.cpp.

References DevicePlutoSDR::instance(), m_deviceTypeID, and PluginAPI::registerSampleSink().

53 {
54  pluginAPI->registerSampleSink(m_deviceTypeID, this);
55  DevicePlutoSDR::instance(); // create singleton
56 }
void registerSampleSink(const QString &sinkName, PluginInterface *plugin)
Definition: pluginapi.cpp:24
static DevicePlutoSDR & instance()
static const QString m_deviceTypeID
+ Here is the call graph for this function:

Member Data Documentation

◆ m_deviceTypeID

const QString PlutoSDROutputPlugin::m_deviceTypeID = PLUTOSDR_DEVICE_TYPE_ID
static

◆ m_hardwareID

const QString PlutoSDROutputPlugin::m_hardwareID = "PlutoSDR"
static

Definition at line 46 of file plutosdroutputplugin.h.

Referenced by enumSampleSinks().

◆ m_pluginDescriptor

const PluginDescriptor PlutoSDROutputPlugin::m_pluginDescriptor
staticprivate
Initial value:
= {
QString("PlutoSDR Output"),
QString("4.5.4"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
}

Definition at line 50 of file plutosdroutputplugin.h.

Referenced by getPluginDescriptor().


The documentation for this class was generated from the following files: