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 | Private Attributes | Static Private Attributes | List of all members
LoRaPlugin Class Reference

#include <loraplugin.h>

+ Inheritance diagram for LoRaPlugin:
+ Collaboration diagram for LoRaPlugin:

Public Member Functions

 LoRaPlugin (QObject *parent=NULL)
 
const PluginDescriptorgetPluginDescriptor () const
 
void initPlugin (PluginAPI *pluginAPI)
 
virtual PluginInstanceGUIcreateRxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
 
virtual BasebandSampleSinkcreateRxChannelBS (DeviceAPI *deviceAPI)
 
virtual ChannelAPIcreateRxChannelCS (DeviceAPI *deviceAPI)
 

Private Attributes

PluginAPIm_pluginAPI
 

Static Private Attributes

static const PluginDescriptor m_pluginDescriptor
 

Additional Inherited Members

- Private Types inherited from PluginInterface
typedef QList< SamplingDeviceSamplingDevices
 
- Private Member Functions inherited from PluginInterface
virtual ~PluginInterface ()
 
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 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)
 

Detailed Description

Definition at line 10 of file loraplugin.h.

Constructor & Destructor Documentation

◆ LoRaPlugin()

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

Definition at line 17 of file loraplugin.cpp.

17  :
18  QObject(parent),
19  m_pluginAPI(0)
20 {
21 }
PluginAPI * m_pluginAPI
Definition: loraplugin.h:28

Member Function Documentation

◆ createRxChannelBS()

BasebandSampleSink * LoRaPlugin::createRxChannelBS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 41 of file loraplugin.cpp.

42 {
43  return new LoRaDemod(deviceAPI);
44 }

◆ createRxChannelCS()

ChannelAPI * LoRaPlugin::createRxChannelCS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 46 of file loraplugin.cpp.

47 {
48  return new LoRaDemod(deviceAPI);
49 }

◆ createRxChannelGUI()

PluginInstanceGUI * LoRaPlugin::createRxChannelGUI ( DeviceUISet deviceUISet,
BasebandSampleSink rxChannel 
)
virtual

Reimplemented from PluginInterface.

Definition at line 36 of file loraplugin.cpp.

References LoRaDemodGUI::create(), and m_pluginAPI.

37 {
38  return LoRaDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
39 }
static LoRaDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceAPI, BasebandSampleSink *rxChannel)
PluginAPI * m_pluginAPI
Definition: loraplugin.h:28
+ Here is the call graph for this function:

◆ getPluginDescriptor()

const PluginDescriptor & LoRaPlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 23 of file loraplugin.cpp.

References m_pluginDescriptor.

24 {
25  return m_pluginDescriptor;
26 }
static const PluginDescriptor m_pluginDescriptor
Definition: loraplugin.h:26

◆ initPlugin()

void LoRaPlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 28 of file loraplugin.cpp.

References LoRaDemod::m_channelId, LoRaDemod::m_channelIdURI, m_pluginAPI, and PluginAPI::registerRxChannel().

29 {
30  m_pluginAPI = pluginAPI;
31 
32  // register demodulator
34 }
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
PluginAPI * m_pluginAPI
Definition: loraplugin.h:28
static const QString m_channelId
Definition: lorademod.h:120
static const QString m_channelIdURI
Definition: lorademod.h:119
+ Here is the call graph for this function:

Member Data Documentation

◆ m_pluginAPI

PluginAPI* LoRaPlugin::m_pluginAPI
private

Definition at line 28 of file loraplugin.h.

Referenced by createRxChannelGUI(), and initPlugin().

◆ m_pluginDescriptor

const PluginDescriptor LoRaPlugin::m_pluginDescriptor
staticprivate
Initial value:
= {
QString("LoRa Demodulator"),
QString("3.14.5"),
QString("(c) 2015 John Greb"),
QString("http://www.maintech.de"),
true,
QString("github.com/hexameron/rtl-sdrangelove")
}

Definition at line 26 of file loraplugin.h.

Referenced by getPluginDescriptor().


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