kopia lustrzana https://github.com/f4exb/sdrangel
HackRF Tx support: rename more Rx files and cmake items
rodzic
7ef54cc2e0
commit
dc2df804f7
|
@ -39,7 +39,7 @@ endif(LIBUSB_FOUND AND LIBAIRSPY_FOUND)
|
||||||
|
|
||||||
find_package(LibHACKRF)
|
find_package(LibHACKRF)
|
||||||
if(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
if(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
||||||
add_subdirectory(hackrf)
|
add_subdirectory(hackrfinput)
|
||||||
endif(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
endif(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
||||||
|
|
||||||
find_package(LibMiriSDR)
|
find_package(LibMiriSDR)
|
||||||
|
@ -66,7 +66,7 @@ if (BUILD_DEBIAN)
|
||||||
add_subdirectory(sdrdaemonfec)
|
add_subdirectory(sdrdaemonfec)
|
||||||
endif (LIBNANOMSG_FOUND)
|
endif (LIBNANOMSG_FOUND)
|
||||||
add_subdirectory(airspy)
|
add_subdirectory(airspy)
|
||||||
add_subdirectory(hackrf)
|
add_subdirectory(hackrfinput)
|
||||||
add_subdirectory(rtlsdr)
|
add_subdirectory(rtlsdr)
|
||||||
add_subdirectory(bladerfinput)
|
add_subdirectory(bladerfinput)
|
||||||
add_subdirectory(sdrplay)
|
add_subdirectory(sdrplay)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
project(hackrf)
|
project(hackrfinput)
|
||||||
|
|
||||||
set(hackrf_SOURCES
|
set(hackrfinput_SOURCES
|
||||||
hackrfinputgui.cpp
|
hackrfinputgui.cpp
|
||||||
hackrfinput.cpp
|
hackrfinput.cpp
|
||||||
hackrfinputplugin.cpp
|
hackrfinputplugin.cpp
|
||||||
|
@ -8,7 +8,7 @@ set(hackrf_SOURCES
|
||||||
hackrfinputthread.cpp
|
hackrfinputthread.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(hackrf_HEADERS
|
set(hackrfinput_HEADERS
|
||||||
hackrfinputgui.h
|
hackrfinputgui.h
|
||||||
hackrfinput.h
|
hackrfinput.h
|
||||||
hackrfinputplugin.h
|
hackrfinputplugin.h
|
||||||
|
@ -16,7 +16,7 @@ set(hackrf_HEADERS
|
||||||
hackrfinputthread.h
|
hackrfinputthread.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set(hackrf_FORMS
|
set(hackrfinput_FORMS
|
||||||
hackrfinputgui.ui
|
hackrfinputgui.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -41,13 +41,13 @@ add_definitions("${QT_DEFINITIONS} -DLIBHACKRF_DYN_RATES")
|
||||||
add_definitions(-DQT_PLUGIN)
|
add_definitions(-DQT_PLUGIN)
|
||||||
add_definitions(-DQT_SHARED)
|
add_definitions(-DQT_SHARED)
|
||||||
|
|
||||||
#qt4_wrap_cpp(hackrf_HEADERS_MOC ${hackrf_HEADERS})
|
#qt4_wrap_cpp(hackrfinput_HEADERS_MOC ${hackrfinput_HEADERS})
|
||||||
qt5_wrap_ui(hackrf_FORMS_HEADERS ${hackrf_FORMS})
|
qt5_wrap_ui(hackrfinput_FORMS_HEADERS ${hackrfinput_FORMS})
|
||||||
|
|
||||||
add_library(inputhackrf SHARED
|
add_library(inputhackrf SHARED
|
||||||
${hackrf_SOURCES}
|
${hackrfinput_SOURCES}
|
||||||
${hackrf_HEADERS_MOC}
|
${hackrfinput_HEADERS_MOC}
|
||||||
${hackrf_FORMS_HEADERS}
|
${hackrfinput_FORMS_HEADERS}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_DEBIAN)
|
if (BUILD_DEBIAN)
|
|
@ -14,6 +14,8 @@
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "../hackrfinput/hackrfinput.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
@ -21,12 +23,10 @@
|
||||||
#include "util/simpleserializer.h"
|
#include "util/simpleserializer.h"
|
||||||
#include "dsp/dspcommands.h"
|
#include "dsp/dspcommands.h"
|
||||||
#include "dsp/dspengine.h"
|
#include "dsp/dspengine.h"
|
||||||
#include "hackrfinput.h"
|
|
||||||
|
|
||||||
#include <device/devicesourceapi.h>
|
#include <device/devicesourceapi.h>
|
||||||
|
|
||||||
#include "hackrfinputgui.h"
|
#include "../hackrfinput/hackrfinputgui.h"
|
||||||
#include "hackrfinputthread.h"
|
#include "../hackrfinput/hackrfinputthread.h"
|
||||||
|
|
||||||
MESSAGE_CLASS_DEFINITION(HackRFInput::MsgConfigureHackRF, Message)
|
MESSAGE_CLASS_DEFINITION(HackRFInput::MsgConfigureHackRF, Message)
|
||||||
MESSAGE_CLASS_DEFINITION(HackRFInput::MsgReportHackRF, Message)
|
MESSAGE_CLASS_DEFINITION(HackRFInput::MsgReportHackRF, Message)
|
|
@ -20,7 +20,8 @@
|
||||||
#include <dsp/devicesamplesource.h>
|
#include <dsp/devicesamplesource.h>
|
||||||
#include "libhackrf/hackrf.h"
|
#include "libhackrf/hackrf.h"
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include "hackrfinputsettings.h"
|
|
||||||
|
#include "../hackrfinput/hackrfinputsettings.h"
|
||||||
|
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
class HackRFInputThread;
|
class HackRFInputThread;
|
|
@ -14,6 +14,8 @@
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "../hackrfinput/hackrfinputgui.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
|
@ -26,7 +28,6 @@
|
||||||
#include <device/devicesourceapi.h>
|
#include <device/devicesourceapi.h>
|
||||||
#include <dsp/filerecord.h>
|
#include <dsp/filerecord.h>
|
||||||
|
|
||||||
#include "hackrfinputgui.h"
|
|
||||||
#include "ui_hackrfinputgui.h"
|
#include "ui_hackrfinputgui.h"
|
||||||
|
|
||||||
HackRFInputGui::HackRFInputGui(DeviceSourceAPI *deviceAPI, QWidget* parent) :
|
HackRFInputGui::HackRFInputGui(DeviceSourceAPI *deviceAPI, QWidget* parent) :
|
|
@ -19,8 +19,8 @@
|
||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include "hackrfinput.h"
|
|
||||||
#include "plugin/plugingui.h"
|
#include "plugin/plugingui.h"
|
||||||
|
#include "../hackrfinput/hackrfinput.h"
|
||||||
|
|
||||||
#define HACKRF_MAX_DEVICE (32)
|
#define HACKRF_MAX_DEVICE (32)
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "../hackrfinput/hackrfinputplugin.h"
|
||||||
|
|
||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include "libhackrf/hackrf.h"
|
#include "libhackrf/hackrf.h"
|
||||||
|
@ -22,8 +24,8 @@
|
||||||
|
|
||||||
#include "plugin/pluginapi.h"
|
#include "plugin/pluginapi.h"
|
||||||
#include "util/simpleserializer.h"
|
#include "util/simpleserializer.h"
|
||||||
#include "hackrfinputplugin.h"
|
|
||||||
#include "hackrfinputgui.h"
|
#include "../hackrfinput/hackrfinputgui.h"
|
||||||
|
|
||||||
const PluginDescriptor HackRFInputPlugin::m_pluginDescriptor = {
|
const PluginDescriptor HackRFInputPlugin::m_pluginDescriptor = {
|
||||||
QString("HackRF Input"),
|
QString("HackRF Input"),
|
|
@ -14,10 +14,11 @@
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "../hackrfinput/hackrfinputsettings.h"
|
||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include "util/simpleserializer.h"
|
#include "util/simpleserializer.h"
|
||||||
|
|
||||||
#include "hackrfinputsettings.h"
|
|
||||||
|
|
||||||
HackRFInputSettings::HackRFInputSettings()
|
HackRFInputSettings::HackRFInputSettings()
|
||||||
{
|
{
|
|
@ -17,6 +17,8 @@
|
||||||
#ifndef _HACKRF_HACKRFINPUTSETTINGS_H_
|
#ifndef _HACKRF_HACKRFINPUTSETTINGS_H_
|
||||||
#define _HACKRF_HACKRFINPUTSETTINGS_H_
|
#define _HACKRF_HACKRFINPUTSETTINGS_H_
|
||||||
|
|
||||||
|
#include <QtGlobal>
|
||||||
|
|
||||||
struct HackRFInputSettings {
|
struct HackRFInputSettings {
|
||||||
typedef enum {
|
typedef enum {
|
||||||
FC_POS_INFRA = 0,
|
FC_POS_INFRA = 0,
|
|
@ -14,11 +14,12 @@
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "../hackrfinput/hackrfinputthread.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "../../../sdrbase/dsp/samplesinkfifo.h"
|
#include "../../../sdrbase/dsp/samplesinkfifo.h"
|
||||||
#include "hackrfinputthread.h"
|
|
||||||
|
|
||||||
HackRFInputThread *HackRFInputThread::m_this = 0;
|
HackRFInputThread *HackRFInputThread::m_this = 0;
|
||||||
|
|
Ładowanie…
Reference in New Issue