2017-01-08 18:54:51 +00:00
|
|
|
#include "wfmplugin.h"
|
2016-10-02 11:18:07 +00:00
|
|
|
|
2014-11-16 22:39:50 +00:00
|
|
|
#include <QtPlugin>
|
|
|
|
#include "plugin/pluginapi.h"
|
2015-05-14 09:08:23 +00:00
|
|
|
|
2017-01-08 18:54:51 +00:00
|
|
|
#include "wfmdemodgui.h"
|
2017-11-08 13:23:49 +00:00
|
|
|
#include "wfmdemod.h"
|
2014-11-16 22:39:50 +00:00
|
|
|
|
|
|
|
const PluginDescriptor WFMPlugin::m_pluginDescriptor = {
|
|
|
|
QString("WFM Demodulator"),
|
2018-05-05 16:12:05 +00:00
|
|
|
QString("3.14.5"),
|
2015-05-14 09:08:23 +00:00
|
|
|
QString("(c) Edouard Griffiths, F4EXB"),
|
2015-09-01 23:16:40 +00:00
|
|
|
QString("https://github.com/f4exb/sdrangel"),
|
2014-11-16 22:39:50 +00:00
|
|
|
true,
|
2015-09-01 23:16:40 +00:00
|
|
|
QString("https://github.com/f4exb/sdrangel")
|
2014-11-16 22:39:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
WFMPlugin::WFMPlugin(QObject* parent) :
|
2017-05-05 08:40:45 +00:00
|
|
|
QObject(parent),
|
|
|
|
m_pluginAPI(0)
|
2014-11-16 22:39:50 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
const PluginDescriptor& WFMPlugin::getPluginDescriptor() const
|
|
|
|
{
|
|
|
|
return m_pluginDescriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
void WFMPlugin::initPlugin(PluginAPI* pluginAPI)
|
|
|
|
{
|
|
|
|
m_pluginAPI = pluginAPI;
|
|
|
|
|
|
|
|
// register WFM demodulator
|
2017-11-23 00:19:32 +00:00
|
|
|
m_pluginAPI->registerRxChannel(WFMDemod::m_channelIdURI, WFMDemod::m_channelId, this);
|
2014-11-16 22:39:50 +00:00
|
|
|
}
|
|
|
|
|
2017-12-23 09:32:02 +00:00
|
|
|
PluginInstanceGUI* WFMPlugin::createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
|
2014-11-16 22:39:50 +00:00
|
|
|
{
|
2017-12-23 09:32:02 +00:00
|
|
|
return WFMDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
|
2014-11-16 22:39:50 +00:00
|
|
|
}
|
2017-11-08 13:23:49 +00:00
|
|
|
|
2017-12-23 08:54:42 +00:00
|
|
|
BasebandSampleSink* WFMPlugin::createRxChannelBS(DeviceSourceAPI *deviceAPI)
|
2017-11-08 13:23:49 +00:00
|
|
|
{
|
2017-12-23 08:54:42 +00:00
|
|
|
return new WFMDemod(deviceAPI);
|
2017-11-08 13:23:49 +00:00
|
|
|
}
|
2017-12-17 22:15:42 +00:00
|
|
|
|
2017-12-23 08:54:42 +00:00
|
|
|
ChannelSinkAPI* WFMPlugin::createRxChannelCS(DeviceSourceAPI *deviceAPI)
|
2017-12-17 22:15:42 +00:00
|
|
|
{
|
2017-12-23 04:56:40 +00:00
|
|
|
return new WFMDemod(deviceAPI);
|
2017-12-17 22:15:42 +00:00
|
|
|
}
|
|
|
|
|