mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 17:28:50 -05:00
Perseus support (3)
This commit is contained in:
parent
fb2114a9f3
commit
becbe0f96e
@ -25,11 +25,14 @@ public:
|
||||
static DevicePerseus& instance();
|
||||
void scan() { m_scan.scan(m_nbDevices); }
|
||||
void getSerials(std::vector<std::string>& serials) const { m_scan.getSerials(serials); }
|
||||
int getSequenceFromSerial(const std::string& serial) const { return m_scan.getSequenceFromSerial(serial); }
|
||||
|
||||
protected:
|
||||
DevicePerseus();
|
||||
DevicePerseus(const DevicePerseus&) : m_nbDevices(0) {}
|
||||
DevicePerseus& operator=(const DevicePerseus& other __attribute__((unused))) { return *this; }
|
||||
~DevicePerseus();
|
||||
|
||||
private:
|
||||
int m_nbDevices;
|
||||
DevicePerseusScan m_scan;
|
||||
|
@ -37,14 +37,14 @@ void DevicePerseusScan::scan(int nbDevices)
|
||||
continue;
|
||||
}
|
||||
|
||||
// if (perseus_firmware_download(descr, 0) < 0) {
|
||||
// qCritical("DevicePerseusScan::scan: firmware download error: %s", perseus_errorstr());
|
||||
// continue;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// qInfo("DevicePerseusScan::scan: device #%d firmware downloaded", deviceIndex);
|
||||
// }
|
||||
if (perseus_firmware_download(descr, 0) < 0) {
|
||||
qCritical("DevicePerseusScan::scan: firmware download error: %s", perseus_errorstr());
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
qInfo("DevicePerseusScan::scan: device #%d firmware downloaded", deviceIndex);
|
||||
}
|
||||
|
||||
if (perseus_get_product_id(descr,&prodid) < 0) {
|
||||
qCritical("DevicePerseusScan::scan: get product id error: %s", perseus_errorstr());
|
||||
|
@ -71,6 +71,12 @@ if(CM256CC_FOUND AND LIBNANOMSG_FOUND)
|
||||
add_subdirectory(sdrdaemonsource)
|
||||
endif(CM256CC_FOUND AND LIBNANOMSG_FOUND)
|
||||
|
||||
find_package(LibPerseus)
|
||||
if(LIBUSB_FOUND AND RX_SAMPLE_24BIT AND LIBPERSEUS_FOUND)
|
||||
message(STATUS "Add Persesus plugin")
|
||||
add_subdirectory(perseus)
|
||||
endif(LIBUSB_FOUND AND LIBPERSEUS_FOUND)
|
||||
|
||||
if (BUILD_DEBIAN)
|
||||
if (LIBNANOMSG_FOUND)
|
||||
add_subdirectory(sdrdaemonsource)
|
||||
|
@ -16,14 +16,13 @@
|
||||
|
||||
#include <QtPlugin>
|
||||
#include <QAction>
|
||||
#include <perseus-sdr.h>
|
||||
#include "perseus-sdr.h"
|
||||
|
||||
#include <device/devicesourceapi.h>
|
||||
#include "plugin/pluginapi.h"
|
||||
#include "util/simpleserializer.h"
|
||||
#include "airspyhfplugin.h"
|
||||
#include "airspyhfgui.h"
|
||||
|
||||
#include "perseusplugin.h"
|
||||
#include "perseusgui.h"
|
||||
|
||||
const PluginDescriptor PerseusPlugin::m_pluginDescriptor = {
|
||||
QString("Perseus Input"),
|
||||
|
Loading…
Reference in New Issue
Block a user