21 #include <libbladeRF.h> 32 QString(
"BladeRF1 Input"),
34 QString(
"(c) Edouard Griffiths, F4EXB"),
35 QString(
"https://github.com/f4exb/sdrangel"),
37 QString(
"https://github.com/f4exb/sdrangel")
61 struct bladerf_devinfo *devinfo =
nullptr;
63 int count = bladerf_get_device_list(&devinfo);
67 for(
int i = 0;
i < count;
i++)
71 int status = bladerf_open_with_devinfo(&dev, &devinfo[
i]);
73 if (status == BLADERF_ERR_NODEV)
75 qCritical(
"BlderfInputPlugin::enumSampleSources: No device at index %d", i);
80 qCritical(
"BlderfInputPlugin::enumSampleSources: Failed to open device at index %d", i);
84 const char *boardName = bladerf_get_board_name(dev);
86 if (strcmp(boardName,
"bladerf1") == 0)
88 QString displayedName(QString(
"BladeRF1[%1] %2").
arg(devinfo[i].instance).
arg(devinfo[i].serial));
93 QString(devinfo[i].serial),
104 bladerf_free_device_list(devinfo);
112 const QString& sourceId,
123 const QString& sourceId,
void registerSampleSource(const QString &sourceName, PluginInterface *plugin)
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.
QList< SamplingDevice > SamplingDevices