26 m_nbChannels(nbRxChannels)
28 qDebug(
"BladeRF2InputThread::BladeRF2InputThread");
31 for (
unsigned int i = 0;
i < nbRxChannels;
i++) {
40 qDebug(
"BladeRF2InputThread::~BladeRF2InputThread");
82 status = bladerf_sync_config(
m_dev, BLADERF_RX_X2, BLADERF_FORMAT_SC16_Q11, 64, 8192, 32, 10000);
84 status = bladerf_sync_config(
m_dev, BLADERF_RX_X1, BLADERF_FORMAT_SC16_Q11, 64, 8192, 32, 10000);
89 qCritical(
"BladeRF2InputThread::run: cannot configure streams: %s", bladerf_strerror(status));
93 qDebug(
"BladeRF2InputThread::run: start running loop");
104 qCritical(
"BladeRF2InputThread::run sync Rx error: %s", bladerf_strerror(res));
114 qDebug(
"BladeRF2InputThread::run: stop running loop");
119 qWarning(
"BladeRF2InputThread::run: no channels or FIFO allocated. Aborting");
128 unsigned int fifoCount = 0;
191 int status = bladerf_deinterleave_stream_buffer(BLADERF_RX_X2, BLADERF_FORMAT_SC16_Q11 , samplesPerChannel*
m_nbChannels, (
void *) buf);
195 qCritical(
"BladeRF2InputThread::callbackMI: cannot de-interleave buffer: %s", bladerf_strerror(status));
199 for (
unsigned int channel = 0; channel <
m_nbChannels; channel++)
202 callbackSI(&buf[2*samplesPerChannel*channel], 2*samplesPerChannel, channel);
void decimate2_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate64_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate64_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate2_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate2_cen(SampleVector::iterator *it, const T *buf, qint32 len)
uint write(const quint8 *data, uint count)
void decimate8_sup(SampleVector::iterator *it, const T *buf, qint32 len)
static const unsigned int blockSize
void decimate64_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate32_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate32_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate4_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate8_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate8_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate16_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate4_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate4_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate16_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate16_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate32_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate1(SampleVector::iterator *it, const T *buf, qint32 len)