#include <limesdrinputplugin.h>
|
| LimeSDRInputPlugin (QObject *parent=0) |
|
const PluginDescriptor & | getPluginDescriptor () const |
|
void | initPlugin (PluginAPI *pluginAPI) |
|
virtual SamplingDevices | enumSampleSources () |
|
virtual PluginInstanceGUI * | createSampleSourcePluginInstanceGUI (const QString &sourceId, QWidget **widget, DeviceUISet *deviceUISet) |
|
virtual DeviceSampleSource * | createSampleSourcePluginInstance (const QString &sourceId, DeviceAPI *deviceAPI) |
|
virtual | ~PluginInterface () |
|
virtual PluginInstanceGUI * | createRxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) |
|
virtual BasebandSampleSink * | createRxChannelBS (DeviceAPI *deviceAPI) |
|
virtual ChannelAPI * | createRxChannelCS (DeviceAPI *deviceAPI) |
|
virtual PluginInstanceGUI * | createTxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSource *txChannel) |
|
virtual BasebandSampleSource * | createTxChannelBS (DeviceAPI *deviceAPI) |
|
virtual ChannelAPI * | createTxChannelCS (DeviceAPI *deviceAPI) |
|
virtual void | deleteSampleSourcePluginInstanceGUI (PluginInstanceGUI *ui) |
|
virtual void | deleteSampleSourcePluginInstanceInput (DeviceSampleSource *source) |
|
virtual SamplingDevices | enumSampleSinks () |
|
virtual PluginInstanceGUI * | createSampleSinkPluginInstanceGUI (const QString &sinkId, QWidget **widget, DeviceUISet *deviceUISet) |
|
virtual DeviceSampleSink * | createSampleSinkPluginInstance (const QString &sinkId, DeviceAPI *deviceAPI) |
|
virtual void | deleteSampleSinkPluginInstanceGUI (PluginInstanceGUI *ui) |
|
virtual void | deleteSampleSinkPluginInstanceOutput (DeviceSampleSink *sink) |
|
virtual SamplingDevices | enumSampleMIMO () |
|
virtual PluginInstanceGUI * | createSampleMIMOPluginInstanceGUI (const QString &mimoId, QWidget **widget, DeviceUISet *deviceUISet) |
|
virtual DeviceSampleMIMO * | createSampleMIMOPluginInstance (const QString &mimoId, DeviceAPI *deviceAPI) |
|
virtual void | deleteSampleMIMOPluginInstanceGUI (PluginInstanceGUI *ui) |
|
virtual void | deleteSampleMIMOPluginInstanceMIMO (DeviceSampleMIMO *mimo) |
|
|
static bool | findSerial (const char *lmsInfoStr, std::string &serial) |
|
Definition at line 28 of file limesdrinputplugin.h.
◆ LimeSDRInputPlugin()
LimeSDRInputPlugin::LimeSDRInputPlugin |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ createSampleSourcePluginInstance()
◆ createSampleSourcePluginInstanceGUI()
PluginInstanceGUI * LimeSDRInputPlugin::createSampleSourcePluginInstanceGUI |
( |
const QString & |
sourceId, |
|
|
QWidget ** |
widget, |
|
|
DeviceUISet * |
deviceUISet |
|
) |
| |
|
virtual |
◆ enumSampleSources()
Reimplemented from PluginInterface.
Definition at line 61 of file limesdrinputplugin.cpp.
References arg(), DeviceLimeSDRParams::close(), createSampleSourcePluginInstanceGUI(), findSerial(), i, m_deviceTypeID, m_hardwareID, DeviceLimeSDRParams::m_nbRxChannels, DeviceLimeSDRParams::open(), PluginInterface::SamplingDevice::PhysicalDevice, and PluginInterface::SamplingDevice::StreamSingleRx.
63 lms_info_str_t* deviceList;
67 if ((nbDevices = LMS_GetDeviceList(0)) <= 0)
69 qDebug(
"LimeSDRInputPlugin::enumSampleSources: Could not find any LimeSDR device");
73 deviceList =
new lms_info_str_t[nbDevices];
75 if (LMS_GetDeviceList(deviceList) < 0)
77 qDebug(
"LimeSDRInputPlugin::enumSampleSources: Could not obtain LimeSDR devices information");
83 for (
int i = 0;
i < nbDevices;
i++)
85 std::string serial(
"N/D");
89 limeSDRParams.
open(deviceList[
i]);
90 limeSDRParams.
close();
94 qDebug(
"LimeSDRInputPlugin::enumSampleSources: device #%d channel %u: %s", i, j, (
char *) deviceList[i]);
95 QString displayedName(QString(
"LimeSDR[%1:%2] %3").
arg(i).
arg(j).
arg(serial.c_str()));
96 result.append(SamplingDevice(displayedName,
99 QString(deviceList[i]),
uint32_t m_nbRxChannels
number of Rx channels (normally 2, we'll see if we really use it...)
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Exposes a single input stream that can be one of the streams of a physical device.
bool open(lms_info_str_t deviceStr)
QList< SamplingDevice > SamplingDevices
◆ findSerial()
bool LimeSDRInputPlugin::findSerial |
( |
const char * |
lmsInfoStr, |
|
|
std::string & |
serial |
|
) |
| |
|
staticprivate |
Definition at line 143 of file limesdrinputplugin.cpp.
Referenced by enumSampleSources().
145 std::regex serial_reg(
"serial=([0-9,A-F]+)");
146 std::string input(lmsInfoStr);
148 std::regex_search(input, result, serial_reg);
150 if (result[1].str().length()>0)
152 serial = result[1].str();
◆ getPluginDescriptor()
◆ initPlugin()
void LimeSDRInputPlugin::initPlugin |
( |
PluginAPI * |
pluginAPI | ) |
|
|
virtual |
◆ m_deviceTypeID
◆ m_hardwareID
const QString LimeSDRInputPlugin::m_hardwareID = "LimeSDR" |
|
static |
◆ m_pluginDescriptor
Initial value:= {
QString("LimeSDR Input"),
QString("4.5.5"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
}
Definition at line 50 of file limesdrinputplugin.h.
Referenced by getPluginDescriptor().
The documentation for this class was generated from the following files: