1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-17 13:19:25 -04:00

LimeSDR: implemented common thread interface for input and output plugins to be able to start/stop thread from each other

This commit is contained in:
f4exb
2017-04-22 10:40:57 +02:00
parent f447c9f9bd
commit 29a44a27f6
3 changed files with 35 additions and 27 deletions
@@ -25,10 +25,11 @@
#include "dsp/samplesinkfifo.h"
#include "dsp/decimators.h"
#include "limesdr/devicelimesdrshared.h"
#define LIMESDR_BLOCKSIZE (1<<14) //complex samples per buffer ~10k (16k)
class LimeSDRInputThread : public QThread
class LimeSDRInputThread : public QThread, public DeviceLimeSDRShared::ThreadInterface
{
Q_OBJECT
@@ -36,8 +37,8 @@ public:
LimeSDRInputThread(lms_stream_t* stream, SampleSinkFifo* sampleFifo, QObject* parent = 0);
~LimeSDRInputThread();
void startWork();
void stopWork();
virtual void startWork();
virtual void stopWork();
void setLog2Decimation(unsigned int log2_decim);
void setFcPos(int fcPos);