mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 03:02:29 -04:00
LimeSDR output: compilation succesful
This commit is contained in:
parent
90b7599a12
commit
e07a730c4f
@ -12,9 +12,15 @@ if(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
|||||||
add_subdirectory(hackrfoutput)
|
add_subdirectory(hackrfoutput)
|
||||||
endif(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
endif(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
||||||
|
|
||||||
|
find_package(LimeSuite)
|
||||||
|
if(LIBUSB_FOUND AND LIMESUITE_FOUND)
|
||||||
|
add_subdirectory(limesdroutput)
|
||||||
|
endif(LIBUSB_FOUND AND LIMESUITE_FOUND)
|
||||||
|
|
||||||
if (BUILD_DEBIAN)
|
if (BUILD_DEBIAN)
|
||||||
add_subdirectory(bladerfoutput)
|
add_subdirectory(bladerfoutput)
|
||||||
add_subdirectory(hackrfoutput)
|
add_subdirectory(hackrfoutput)
|
||||||
|
add_subdirectory(limesdroutput)
|
||||||
endif (BUILD_DEBIAN)
|
endif (BUILD_DEBIAN)
|
||||||
|
|
||||||
add_subdirectory(filesink)
|
add_subdirectory(filesink)
|
||||||
|
@ -50,6 +50,6 @@ target_link_libraries(outputlimesdr
|
|||||||
limesdrdevice
|
limesdrdevice
|
||||||
)
|
)
|
||||||
|
|
||||||
qt5_use_modules(inputlimesdr Core Widgets)
|
qt5_use_modules(outputlimesdr Core Widgets)
|
||||||
|
|
||||||
install(TARGETS inputlimesdr DESTINATION lib/plugins/samplesource)
|
install(TARGETS outputlimesdr DESTINATION lib/plugins/samplesink)
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "device/devicesourceapi.h"
|
#include "device/devicesourceapi.h"
|
||||||
#include "device/devicesinkapi.h"
|
#include "device/devicesinkapi.h"
|
||||||
#include "dsp/dspcommands.h"
|
#include "dsp/dspcommands.h"
|
||||||
#include "limesdrinputthread.h"
|
#include "limesdroutputthread.h"
|
||||||
#include "limesdr/devicelimesdrparam.h"
|
#include "limesdr/devicelimesdrparam.h"
|
||||||
#include "limesdr/devicelimesdr.h"
|
#include "limesdr/devicelimesdr.h"
|
||||||
#include "limesdroutput.h"
|
#include "limesdroutput.h"
|
||||||
@ -229,7 +229,7 @@ void LimeSDROutput::closeDevice()
|
|||||||
|
|
||||||
for (int i = 0; i < m_deviceAPI->getSinkBuddies().size(); i++)
|
for (int i = 0; i < m_deviceAPI->getSinkBuddies().size(); i++)
|
||||||
{
|
{
|
||||||
DeviceSourceAPI *buddy = m_deviceAPI->getSinkBuddies()[i];
|
const DeviceSinkAPI *buddy = m_deviceAPI->getSinkBuddies()[i];
|
||||||
DeviceLimeSDRShared *buddyShared = (DeviceLimeSDRShared *) buddy->getBuddySharedPtr();
|
DeviceLimeSDRShared *buddyShared = (DeviceLimeSDRShared *) buddy->getBuddySharedPtr();
|
||||||
|
|
||||||
if (buddyShared->m_thread) {
|
if (buddyShared->m_thread) {
|
||||||
@ -702,9 +702,9 @@ bool LimeSDROutput::applySettings(const LimeSDROutputSettings& settings, bool fo
|
|||||||
for (; itSource != sourceBuddies.end(); ++itSource)
|
for (; itSource != sourceBuddies.end(); ++itSource)
|
||||||
{
|
{
|
||||||
DeviceLimeSDRShared *buddySharedPtr = (DeviceLimeSDRShared *) (*itSource)->getBuddySharedPtr();
|
DeviceLimeSDRShared *buddySharedPtr = (DeviceLimeSDRShared *) (*itSource)->getBuddySharedPtr();
|
||||||
if (buddySharedPtr->m_thread)
|
|
||||||
{
|
if (buddySharedPtr->m_thread) {
|
||||||
((LimeSDRInputThread *) buddySharedPtr->m_thread)->startWork();
|
buddySharedPtr->m_thread->startWork();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ void LimeSDROutputThread::run()
|
|||||||
{
|
{
|
||||||
callback(m_buf, 2 * res);
|
callback(m_buf, 2 * res);
|
||||||
|
|
||||||
if ((res = LMS_SendStream(m_stream, (void *) m_buf, LIMESDR_BLOCKSIZE, &metadata, 1000)) < 0)
|
if ((res = LMS_SendStream(m_stream, (void *) m_buf, LIMESDROUTPUT_BLOCKSIZE, &metadata, 1000)) < 0)
|
||||||
{
|
{
|
||||||
qCritical("LimeSDROutputThread::run write error: %s", strerror(errno));
|
qCritical("LimeSDROutputThread::run write error: %s", strerror(errno));
|
||||||
break;
|
break;
|
||||||
@ -102,7 +102,7 @@ void LimeSDROutputThread::run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Interpolate according to specified log2 (ex: log2=4 => decim=16)
|
// Interpolate according to specified log2 (ex: log2=4 => decim=16)
|
||||||
void LimeSDROutputThread::callback(const qint16* buf, qint32 len)
|
void LimeSDROutputThread::callback(qint16* buf, qint32 len)
|
||||||
{
|
{
|
||||||
SampleVector::iterator beginRead;
|
SampleVector::iterator beginRead;
|
||||||
m_sampleFifo->readAdvance(beginRead, len/(1<<m_log2Interp));
|
m_sampleFifo->readAdvance(beginRead, len/(1<<m_log2Interp));
|
||||||
|
@ -57,7 +57,7 @@ private:
|
|||||||
Interpolators<qint16, SDR_SAMP_SZ, 12> m_interpolators;
|
Interpolators<qint16, SDR_SAMP_SZ, 12> m_interpolators;
|
||||||
|
|
||||||
void run();
|
void run();
|
||||||
void callback(const qint16* buf, qint32 len);
|
void callback(qint16* buf, qint32 len);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user