1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-27 02:09:14 -05:00
sdrangel/plugins/channelrx/demodlora/loraplugin.cpp

51 lines
1.1 KiB
C++
Raw Normal View History

2015-01-10 19:12:58 -05:00
#include <QtPlugin>
#include "plugin/pluginapi.h"
2017-10-07 20:26:47 -04:00
#include "loraplugin.h"
#include "lorademodgui.h"
#include "lorademod.h"
2015-01-10 19:12:58 -05:00
const PluginDescriptor LoRaPlugin::m_pluginDescriptor = {
QString("LoRa Demodulator"),
QString("3.14.5"),
2015-01-10 19:12:58 -05:00
QString("(c) 2015 John Greb"),
QString("http://www.maintech.de"),
true,
QString("github.com/hexameron/rtl-sdrangelove")
};
LoRaPlugin::LoRaPlugin(QObject* parent) :
2017-05-05 04:40:45 -04:00
QObject(parent),
m_pluginAPI(0)
2015-01-10 19:12:58 -05:00
{
}
const PluginDescriptor& LoRaPlugin::getPluginDescriptor() const
{
return m_pluginDescriptor;
}
void LoRaPlugin::initPlugin(PluginAPI* pluginAPI)
{
m_pluginAPI = pluginAPI;
// register demodulator
m_pluginAPI->registerRxChannel(LoRaDemod::m_channelIdURI, LoRaDemod::m_channelId, this);
2015-01-10 19:12:58 -05:00
}
PluginInstanceGUI* LoRaPlugin::createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
2015-01-10 19:12:58 -05:00
{
return LoRaDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
2015-01-10 19:12:58 -05:00
}
2019-05-08 16:11:53 -04:00
BasebandSampleSink* LoRaPlugin::createRxChannelBS(DeviceAPI *deviceAPI)
{
return new LoRaDemod(deviceAPI);
}
2017-12-17 17:15:42 -05:00
2019-05-09 11:27:12 -04:00
ChannelAPI* LoRaPlugin::createRxChannelCS(DeviceAPI *deviceAPI)
2017-12-17 17:15:42 -05:00
{
return new LoRaDemod(deviceAPI);
2017-12-17 17:15:42 -05:00
}