SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <bladerf1inputthread.h>
Inherits QThread.
Public Member Functions | |
Bladerf1InputThread (struct bladerf *dev, SampleSinkFifo *sampleFifo, QObject *parent=NULL) | |
~Bladerf1InputThread () | |
void | startWork () |
void | stopWork () |
void | setLog2Decimation (unsigned int log2_decim) |
void | setFcPos (int fcPos) |
Private Member Functions | |
void | run () |
void | callback (const qint16 *buf, qint32 len) |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
bool | m_running |
struct bladerf * | m_dev |
qint16 | m_buf [2 *BLADERF_BLOCKSIZE] |
SampleVector | m_convertBuffer |
SampleSinkFifo * | m_sampleFifo |
unsigned int | m_log2Decim |
int | m_fcPos |
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 12 > | m_decimators |
Definition at line 30 of file bladerf1inputthread.h.
Bladerf1InputThread::Bladerf1InputThread | ( | struct bladerf * | dev, |
SampleSinkFifo * | sampleFifo, | ||
QObject * | parent = NULL |
||
) |
Definition at line 27 of file bladerf1inputthread.cpp.
References BLADERF_BLOCKSIZE, and m_buf.
Bladerf1InputThread::~Bladerf1InputThread | ( | ) |
Definition at line 39 of file bladerf1inputthread.cpp.
References stopWork().
|
private |
Definition at line 89 of file bladerf1inputthread.cpp.
References Decimators< StorageType, T, SdrBits, InputBits >::decimate1(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_sup(), m_convertBuffer, m_decimators, m_fcPos, m_log2Decim, m_sampleFifo, and SampleSinkFifo::write().
Referenced by run().
|
private |
Definition at line 69 of file bladerf1inputthread.cpp.
References BLADERF_BLOCKSIZE, callback(), m_buf, m_dev, m_running, and m_startWaiter.
void Bladerf1InputThread::setFcPos | ( | int | fcPos | ) |
Definition at line 64 of file bladerf1inputthread.cpp.
References m_fcPos.
Referenced by Bladerf1Input::applySettings(), and Bladerf1Input::start().
void Bladerf1InputThread::setLog2Decimation | ( | unsigned int | log2_decim | ) |
Definition at line 59 of file bladerf1inputthread.cpp.
References m_log2Decim.
Referenced by Bladerf1Input::applySettings(), and Bladerf1Input::start().
void Bladerf1InputThread::startWork | ( | ) |
Definition at line 44 of file bladerf1inputthread.cpp.
References m_running, m_startWaiter, and m_startWaitMutex.
Referenced by Bladerf1Input::start().
void Bladerf1InputThread::stopWork | ( | ) |
Definition at line 53 of file bladerf1inputthread.cpp.
References m_running.
Referenced by Bladerf1Input::stop(), and ~Bladerf1InputThread().
|
private |
Definition at line 48 of file bladerf1inputthread.h.
Referenced by Bladerf1InputThread(), and run().
|
private |
Definition at line 49 of file bladerf1inputthread.h.
Referenced by callback().
|
private |
Definition at line 55 of file bladerf1inputthread.h.
Referenced by callback().
|
private |
Definition at line 47 of file bladerf1inputthread.h.
Referenced by run().
|
private |
Definition at line 53 of file bladerf1inputthread.h.
Referenced by callback(), and setFcPos().
|
private |
Definition at line 52 of file bladerf1inputthread.h.
Referenced by callback(), and setLog2Decimation().
|
private |
Definition at line 45 of file bladerf1inputthread.h.
Referenced by run(), startWork(), and stopWork().
|
private |
Definition at line 50 of file bladerf1inputthread.h.
Referenced by callback().
|
private |
Definition at line 44 of file bladerf1inputthread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 43 of file bladerf1inputthread.h.
Referenced by startWork().