18 #ifndef _TESTMI_TESTMITHREAD_H_ 19 #define _TESTMI_TESTMITHREAD_H_ 23 #include <QWaitCondition> 25 #include <QElapsedTimer> 36 #define TESTMI_THROTTLE_MS 50 57 m_startStop(startStop)
140 void callback(
const qint16* buf, qint32 len);
146 inline void convert_8(SampleVector::iterator* it,
const qint16* buf, qint32 len)
148 if (m_log2Decim == 0) {
152 switch (m_log2Decim) {
174 }
else if (m_fcPos == 1) {
175 switch (m_log2Decim) {
198 switch (m_log2Decim) {
224 void convert_12(SampleVector::iterator* it,
const qint16* buf, qint32 len)
226 if (m_log2Decim == 0) {
230 switch (m_log2Decim) {
252 }
else if (m_fcPos == 1) {
253 switch (m_log2Decim) {
276 switch (m_log2Decim) {
302 void convert_16(SampleVector::iterator* it,
const qint16* buf, qint32 len)
304 if (m_log2Decim == 0) {
308 switch (m_log2Decim) {
330 }
else if (m_fcPos == 1) {
331 switch (m_log2Decim) {
354 switch (m_log2Decim) {
386 #endif // _TESTSOURCE_TESTSOURCETHREAD_H_
void setQFactor(float qFactor)
void setSamplerate(int samplerate)
SampleSinkFifo * m_sampleFifo
void convert_16(SampleVector::iterator *it, const qint16 *buf, qint32 len)
std::vector< Sample > SampleVector
void decimate2_inf(SampleVector::iterator *it, const T *buf, qint32 len)
QElapsedTimer m_elapsedTimer
void decimate64_sup(SampleVector::iterator *it, const T *buf, qint32 len)
int32_t m_amplitudeBitsDC
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)
void decimate8_sup(SampleVector::iterator *it, const T *buf, qint32 len)
TestMIStreamSettings::Modulation m_modulation
QWaitCondition m_startWaiter
TestMIThread(SampleSinkFifo *sampleFifo, int streamIndex, QObject *parent=0)
static MsgStartStop * create(bool startStop)
uint32_t m_pulseSampleCount
void setFMDeviation(float deviation)
void setIFactor(float iFactor)
void setDCFactor(float iFactor)
void decimate64_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void generate(quint32 chunksize)
void decimate32_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate32_sup(SampleVector::iterator *it, const T *buf, qint32 len)
uint32_t m_pulsePatternCycle
uint32_t m_pulsePatternPlaces
SampleVector m_convertBuffer
void decimate4_sup(SampleVector::iterator *it, const T *buf, qint32 len)
uint32_t m_pulsePatternCount
void decimate8_cen(SampleVector::iterator *it, const T *buf, qint32 len)
bool getStartStop() const
MessageQueue m_inputMessageQueue
void handleInputMessages()
void decimate8_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate16_sup(SampleVector::iterator *it, const T *buf, qint32 len)
#define MESSAGE_CLASS_DECLARATION
void convert_8(SampleVector::iterator *it, const qint16 *buf, qint32 len)
void setBuffers(quint32 chunksize)
void setBitSize(uint32_t bitSizeIndex)
void pullAF(Real &afSample)
void callback(const qint16 *buf, qint32 len)
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 16 > m_decimators_16
void decimate4_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void setModulation(TestMIStreamSettings::Modulation modulation)
void decimate4_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void setToneFrequency(int toneFrequency)
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 12 > m_decimators_12
uint32_t m_pulseWidth
pulse width in number of samples
void decimate16_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void setAmplitudeBits(int32_t amplitudeBits)
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 8 > m_decimators_8
void startStop(bool start)
void setLog2Decimation(unsigned int log2_decim)
MsgStartStop(bool startStop)
void convert_12(SampleVector::iterator *it, const qint16 *buf, qint32 len)
void setPhaseImbalance(float phaseImbalance)
void decimate16_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void setAMModulation(float amModulation)
void decimate32_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate1(SampleVector::iterator *it, const T *buf, qint32 len)
void setFrequencyShift(int shift)
unsigned __int64 uint64_t