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
FCDProPlusPlugin Class Reference

#include <fcdproplusplugin.h>

+ Inheritance diagram for FCDProPlusPlugin:
+ Collaboration diagram for FCDProPlusPlugin:

Public Member Functions

 FCDProPlusPlugin (QObject *parent=NULL)
 
const PluginDescriptorgetPluginDescriptor () const
 
void initPlugin (PluginAPI *pluginAPI)
 
virtual SamplingDevices enumSampleSources ()
 
virtual PluginInstanceGUIcreateSampleSourcePluginInstanceGUI (const QString &sourceId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleSourcecreateSampleSourcePluginInstance (const QString &sourceId, 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 void deleteSampleSourcePluginInstanceGUI (PluginInstanceGUI *ui)
 
virtual void deleteSampleSourcePluginInstanceInput (DeviceSampleSource *source)
 
virtual SamplingDevices enumSampleSinks ()
 
virtual PluginInstanceGUIcreateSampleSinkPluginInstanceGUI (const QString &sinkId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleSinkcreateSampleSinkPluginInstance (const QString &sinkId, DeviceAPI *deviceAPI)
 
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_deviceTypeID = FCDPROPLUS_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 11 of file fcdproplusplugin.h.

Constructor & Destructor Documentation

◆ FCDProPlusPlugin()

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

Definition at line 41 of file fcdproplusplugin.cpp.

41  :
42  QObject(parent)
43 {
44 }

Member Function Documentation

◆ createSampleSourcePluginInstance()

DeviceSampleSource * FCDProPlusPlugin::createSampleSourcePluginInstance ( const QString &  sourceId,
DeviceAPI deviceAPI 
)
virtual

Reimplemented from PluginInterface.

Definition at line 115 of file fcdproplusplugin.cpp.

116 {
117  if(sourceId == fcd_traits<ProPlus>::interfaceIID)
118  {
119  FCDProPlusInput* input = new FCDProPlusInput(deviceAPI);
120  return input;
121  }
122  else
123  {
124  return 0;
125  }
126 }

◆ createSampleSourcePluginInstanceGUI()

PluginInstanceGUI * FCDProPlusPlugin::createSampleSourcePluginInstanceGUI ( const QString &  sourceId,
QWidget **  widget,
DeviceUISet deviceUISet 
)
virtual

Reimplemented from PluginInterface.

Definition at line 97 of file fcdproplusplugin.cpp.

Referenced by enumSampleSources().

101 {
102  if(sourceId == fcd_traits<ProPlus>::interfaceIID)
103  {
104  FCDProPlusGui* gui = new FCDProPlusGui(deviceUISet);
105  *widget = gui;
106  return gui;
107  }
108  else
109  {
110  return 0;
111  }
112 }
+ Here is the caller graph for this function:

◆ enumSampleSources()

PluginInterface::SamplingDevices FCDProPlusPlugin::enumSampleSources ( )
virtual

Reimplemented from PluginInterface.

Definition at line 56 of file fcdproplusplugin.cpp.

References arg(), createSampleSourcePluginInstanceGUI(), hid_enumerate(), i, hid_device_info::next, PluginInterface::SamplingDevice::PhysicalDevice, hid_device_info::serial_number, and PluginInterface::SamplingDevice::StreamSingleRx.

57 {
58  SamplingDevices result;
59 
60  int i = 0;
62 
63  while (device_info != 0)
64  {
65  QString serialNumber = QString::fromWCharArray(device_info->serial_number);
66  QString displayedName(QString("%1[%2] %3").arg(fcd_traits<ProPlus>::displayedName).arg(i).arg(serialNumber));
67 
68  result.append(SamplingDevice(displayedName,
71  serialNumber,
72  i,
75  1,
76  0));
77 
78  device_info = device_info->next;
79  i++;
80  }
81 
82  return result;
83 }
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
struct hid_device_info * next
Definition: hidapi.h:78
wchar_t * serial_number
Definition: hidapi.h:57
int32_t i
Definition: decimators.h:244
struct hid_device_info HID_API_EXPORT * hid_enumerate(unsigned short vendor_id, unsigned short product_id)
Enumerate the HID Devices.
Definition: hid-libusb.c:444
Exposes a single input 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 & FCDProPlusPlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 46 of file fcdproplusplugin.cpp.

References m_pluginDescriptor.

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

◆ initPlugin()

void FCDProPlusPlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 51 of file fcdproplusplugin.cpp.

References PluginAPI::registerSampleSource().

52 {
54 }
void registerSampleSource(const QString &sourceName, PluginInterface *plugin)
Definition: pluginapi.cpp:9
+ Here is the call graph for this function:

Member Data Documentation

◆ m_deviceTypeID

const QString FCDProPlusPlugin::m_deviceTypeID = FCDPROPLUS_DEVICE_TYPE_ID
static

Definition at line 29 of file fcdproplusplugin.h.

◆ m_pluginDescriptor

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

Definition at line 32 of file fcdproplusplugin.h.

Referenced by getPluginDescriptor().


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