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 <airspyhfthread.h>
Inherits QThread.
Public Member Functions | |
AirspyHFThread (airspyhf_device_t *dev, SampleSinkFifo *sampleFifo, QObject *parent=0) | |
~AirspyHFThread () | |
void | startWork () |
void | stopWork () |
void | setSamplerate (uint32_t samplerate) |
void | setLog2Decimation (unsigned int log2_decim) |
Private Member Functions | |
void | run () |
void | callback (const float *buf, qint32 len) |
Static Private Member Functions | |
static int | rx_callback (airspyhf_transfer_t *transfer) |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
bool | m_running |
airspyhf_device_t * | m_dev |
qint16 | m_buf [2 *AIRSPYHF_BLOCKSIZE] |
SampleVector | m_convertBuffer |
SampleSinkFifo * | m_sampleFifo |
int | m_samplerate |
unsigned int | m_log2Decim |
DecimatorsFI | m_decimators |
Static Private Attributes | |
static AirspyHFThread * | m_this = 0 |
Definition at line 31 of file airspyhfthread.h.
AirspyHFThread::AirspyHFThread | ( | airspyhf_device_t * | dev, |
SampleSinkFifo * | sampleFifo, | ||
QObject * | parent = 0 |
||
) |
AirspyHFThread::~AirspyHFThread | ( | ) |
Definition at line 40 of file airspyhfthread.cpp.
References m_this, and stopWork().
|
private |
Definition at line 105 of file airspyhfthread.cpp.
References DecimatorsFI::decimate1(), DecimatorsFI::decimate16_cen(), DecimatorsFI::decimate2_cen(), DecimatorsFI::decimate32_cen(), DecimatorsFI::decimate4_cen(), DecimatorsFI::decimate64_cen(), DecimatorsFI::decimate8_cen(), m_convertBuffer, m_decimators, m_log2Decim, m_sampleFifo, and SampleSinkFifo::write().
Referenced by rx_callback().
|
private |
Definition at line 72 of file airspyhfthread.cpp.
References m_dev, m_running, m_startWaiter, and rx_callback().
|
staticprivate |
Definition at line 140 of file airspyhfthread.cpp.
References callback(), and m_this.
Referenced by run().
void AirspyHFThread::setLog2Decimation | ( | unsigned int | log2_decim | ) |
Definition at line 67 of file airspyhfthread.cpp.
References m_log2Decim.
Referenced by AirspyHFInput::applySettings(), and AirspyHFInput::start().
void AirspyHFThread::setSamplerate | ( | uint32_t | samplerate | ) |
Definition at line 62 of file airspyhfthread.cpp.
References m_samplerate.
Referenced by AirspyHFInput::applySettings(), and AirspyHFInput::start().
void AirspyHFThread::startWork | ( | ) |
Definition at line 46 of file airspyhfthread.cpp.
References m_running, m_startWaiter, and m_startWaitMutex.
Referenced by AirspyHFInput::start().
void AirspyHFThread::stopWork | ( | ) |
Definition at line 55 of file airspyhfthread.cpp.
References m_running.
Referenced by AirspyHFInput::stop(), and ~AirspyHFThread().
|
private |
Definition at line 49 of file airspyhfthread.h.
Referenced by AirspyHFThread().
|
private |
Definition at line 50 of file airspyhfthread.h.
Referenced by callback().
|
private |
Definition at line 57 of file airspyhfthread.h.
Referenced by callback().
|
private |
Definition at line 48 of file airspyhfthread.h.
Referenced by run().
|
private |
Definition at line 54 of file airspyhfthread.h.
Referenced by callback(), and setLog2Decimation().
|
private |
Definition at line 46 of file airspyhfthread.h.
Referenced by run(), startWork(), and stopWork().
|
private |
Definition at line 51 of file airspyhfthread.h.
Referenced by callback().
|
private |
Definition at line 53 of file airspyhfthread.h.
Referenced by setSamplerate().
|
private |
Definition at line 45 of file airspyhfthread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 44 of file airspyhfthread.h.
Referenced by startWork().
|
staticprivate |
Definition at line 55 of file airspyhfthread.h.
Referenced by AirspyHFThread(), rx_callback(), and ~AirspyHFThread().