2015-01-11 00:12:58 +00:00
|
|
|
#include <QtPlugin>
|
|
|
|
#include "plugin/pluginapi.h"
|
2016-10-02 11:18:07 +00:00
|
|
|
|
2017-10-08 00:26:47 +00:00
|
|
|
#include "loraplugin.h"
|
|
|
|
#include "lorademodgui.h"
|
2017-11-08 13:23:49 +00:00
|
|
|
#include "lorademod.h"
|
2015-01-11 00:12:58 +00:00
|
|
|
|
|
|
|
const PluginDescriptor LoRaPlugin::m_pluginDescriptor = {
|
2019-12-16 00:03:47 +00:00
|
|
|
LoRaDemod::m_channelId,
|
2015-01-11 00:12:58 +00:00
|
|
|
QString("LoRa Demodulator"),
|
2019-12-16 00:03:47 +00:00
|
|
|
QString("4.12.3"),
|
2015-01-11 00:12:58 +00: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 08:40:45 +00:00
|
|
|
QObject(parent),
|
|
|
|
m_pluginAPI(0)
|
2015-01-11 00:12:58 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
const PluginDescriptor& LoRaPlugin::getPluginDescriptor() const
|
|
|
|
{
|
|
|
|
return m_pluginDescriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
void LoRaPlugin::initPlugin(PluginAPI* pluginAPI)
|
|
|
|
{
|
|
|
|
m_pluginAPI = pluginAPI;
|
|
|
|
|
|
|
|
// register demodulator
|
2017-11-23 00:19:32 +00:00
|
|
|
m_pluginAPI->registerRxChannel(LoRaDemod::m_channelIdURI, LoRaDemod::m_channelId, this);
|
2015-01-11 00:12:58 +00:00
|
|
|
}
|
|
|
|
|
2019-08-01 19:27:31 +00:00
|
|
|
PluginInstanceGUI* LoRaPlugin::createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) const
|
2015-01-11 00:12:58 +00:00
|
|
|
{
|
2017-12-23 09:32:02 +00:00
|
|
|
return LoRaDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
|
2015-01-11 00:12:58 +00:00
|
|
|
}
|
2017-11-08 13:23:49 +00:00
|
|
|
|
2019-08-01 19:27:31 +00:00
|
|
|
BasebandSampleSink* LoRaPlugin::createRxChannelBS(DeviceAPI *deviceAPI) const
|
2017-11-08 13:23:49 +00:00
|
|
|
{
|
2017-12-23 08:54:42 +00:00
|
|
|
return new LoRaDemod(deviceAPI);
|
2017-11-08 13:23:49 +00:00
|
|
|
}
|
2017-12-17 22:15:42 +00:00
|
|
|
|
2019-08-01 19:27:31 +00:00
|
|
|
ChannelAPI* LoRaPlugin::createRxChannelCS(DeviceAPI *deviceAPI) const
|
2017-12-17 22:15:42 +00:00
|
|
|
{
|
2017-12-23 04:56:40 +00:00
|
|
|
return new LoRaDemod(deviceAPI);
|
2017-12-17 22:15:42 +00:00
|
|
|
}
|
|
|
|
|