18 #ifndef PLUGINS_SAMPLESOURCE_PERSEUS_PERSEUSTHREAD_H_ 19 #define PLUGINS_SAMPLESOURCE_PERSEUS_PERSEUSTHREAD_H_ 23 #include <QWaitCondition> 24 #include "perseus-sdr.h" 29 #define PERSEUS_NBSAMPLES 2048 // Number of I/Q samples in each callback from Perseus 30 #define PERSEUS_BLOCKSIZE 6*PERSEUS_NBSAMPLES // Perseus sends 2*3 bytes samples 61 static int rx_callback(
void *buf,
int buf_size,
void *extra);
std::vector< Sample > SampleVector
Decimators< qint32, TripleByteLE< qint64 >, SDR_RX_SAMP_SZ, 24 > m_decimators64
QWaitCondition m_startWaiter
static PerseusThread * m_this
void setLog2Decimation(unsigned int log2_decim)
PerseusThread(perseus_descr *dev, SampleSinkFifo *sampleFifo, QObject *parent=0)
void callback(const uint8_t *buf, qint32 len)
Decimators< qint32, TripleByteLE< qint32 >, SDR_RX_SAMP_SZ, 24 > m_decimators32
static int rx_callback(void *buf, int buf_size, void *extra)
SampleSinkFifo * m_sampleFifo
#define PERSEUS_NBSAMPLES
qint32 m_buf[2 *PERSEUS_NBSAMPLES]
SampleVector m_convertBuffer