1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-29 21:44:14 -04:00

Support for Airspy: compiles

This commit is contained in:
f4exb
2015-09-10 05:53:37 +02:00
parent 1e37479130
commit 61e6e3e2cc
14 changed files with 318 additions and 414 deletions
+4 -3
View File
@@ -30,12 +30,12 @@ class AirspyThread : public QThread {
Q_OBJECT
public:
AirspyThread(struct bladerf* dev, SampleFifo* sampleFifo, QObject* parent = NULL);
AirspyThread(struct airspy_device* dev, SampleFifo* sampleFifo, QObject* parent = NULL);
~AirspyThread();
void startWork();
void stopWork();
void setSamplerate(int samplerate);
void setSamplerate(uint32_t samplerate);
void setLog2Decimation(unsigned int log2_decim);
void setFcPos(int fcPos);
@@ -44,7 +44,7 @@ private:
QWaitCondition m_startWaiter;
bool m_running;
struct bladerf* m_dev;
struct airspy_device* m_dev;
qint16 m_buf[2*AIRSPY_BLOCKSIZE];
SampleVector m_convertBuffer;
SampleFifo* m_sampleFifo;
@@ -57,6 +57,7 @@ private:
void run();
void callback(const qint16* buf, qint32 len);
static int rx_callback(airspy_transfer_t* transfer);
};
#endif // INCLUDE_AIRSPYTHREAD_H