18 #ifndef _TESTSOURCE_TESTSOURCETHREAD_H_ 19 #define _TESTSOURCE_TESTSOURCETHREAD_H_ 25 #include <QWaitCondition> 27 #include <QElapsedTimer> 38 #define TESTSOURCE_THROTTLE_MS 50 59 m_startStop(startStop)
144 void callback(
const qint16* buf, qint32 len);
150 inline void convert_8(SampleVector::iterator* it,
const qint16* buf, qint32 len)
152 if (m_log2Decim == 0) {
156 switch (m_log2Decim) {
178 }
else if (m_fcPos == 1) {
179 switch (m_log2Decim) {
202 switch (m_log2Decim) {
228 void convert_12(SampleVector::iterator* it,
const qint16* buf, qint32 len)
230 if (m_log2Decim == 0) {
234 switch (m_log2Decim) {
256 }
else if (m_fcPos == 1) {
257 switch (m_log2Decim) {
280 switch (m_log2Decim) {
306 void convert_16(SampleVector::iterator* it,
const qint16* buf, qint32 len)
308 if (m_log2Decim == 0) {
312 switch (m_log2Decim) {
334 }
else if (m_fcPos == 1) {
335 switch (m_log2Decim) {
358 switch (m_log2Decim) {
390 #endif // _TESTSOURCE_TESTSOURCETHREAD_H_
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 16 > m_decimators_16
std::vector< Sample > SampleVector
uint32_t m_pulsePatternPlaces
void decimate2_inf(SampleVector::iterator *it, const T *buf, qint32 len)
int32_t m_amplitudeBitsDC
void decimate64_sup(SampleVector::iterator *it, const T *buf, qint32 len)
static MsgStartStop * create(bool startStop)
void decimate64_cen(SampleVector::iterator *it, const T *buf, qint32 len)
uint32_t m_pulseWidth
pulse width in number of samples
void decimate2_sup(SampleVector::iterator *it, const T *buf, qint32 len)
uint32_t m_pulsePatternCount
void setPhaseImbalance(float phaseImbalance)
void setSamplerate(int samplerate)
void decimate2_cen(SampleVector::iterator *it, const T *buf, qint32 len)
uint32_t m_pulseSampleCount
void setIFactor(float iFactor)
void setLog2Decimation(unsigned int log2_decim)
void startStop(bool start)
TestSourceThread(SampleSinkFifo *sampleFifo, QObject *parent=0)
void setAMModulation(float amModulation)
void setBitSize(uint32_t bitSizeIndex)
void decimate8_sup(SampleVector::iterator *it, const T *buf, qint32 len)
bool getStartStop() const
MsgStartStop(bool startStop)
void convert_12(SampleVector::iterator *it, const qint16 *buf, qint32 len)
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)
SampleVector m_convertBuffer
void setModulation(TestSourceSettings::Modulation modulation)
void convert_8(SampleVector::iterator *it, const qint16 *buf, qint32 len)
SampleSinkFifo * m_sampleFifo
QWaitCondition m_startWaiter
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 8 > m_decimators_8
void decimate4_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void setToneFrequency(int toneFrequency)
void handleInputMessages()
void setFrequencyShift(int shift)
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)
#define MESSAGE_CLASS_DECLARATION
uint32_t m_pulsePatternCycle
void generate(quint32 chunksize)
void setAmplitudeBits(int32_t amplitudeBits)
void callback(const qint16 *buf, qint32 len)
void decimate4_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void setFMDeviation(float deviation)
void pullAF(Real &afSample)
void setDCFactor(float iFactor)
void decimate4_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void setBuffers(quint32 chunksize)
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 12 > m_decimators_12
void convert_16(SampleVector::iterator *it, const qint16 *buf, qint32 len)
TestSourceSettings::Modulation m_modulation
MessageQueue m_inputMessageQueue
void decimate16_inf(SampleVector::iterator *it, const T *buf, qint32 len)
std::map< int, int > m_timerHistogram
void setQFactor(float qFactor)
void decimate16_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate32_cen(SampleVector::iterator *it, const T *buf, qint32 len)
QElapsedTimer m_elapsedTimer
void decimate1(SampleVector::iterator *it, const T *buf, qint32 len)
unsigned __int64 uint64_t