1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 23:14:47 -04:00

SoapySDR support: input: center frequency and sample rate handling

This commit is contained in:
f4exb
2018-11-02 02:33:04 +01:00
parent 5acac7b9fa
commit ea98f2e1c9
12 changed files with 527 additions and 14 deletions
@@ -28,6 +28,12 @@
class DeviceSourceAPI;
class SoapySDRInputThread;
class FileRecord;
namespace SoapySDR
{
class Device;
}
class SoapySDRInput : public DeviceSampleSource
{
@@ -119,14 +125,20 @@ public:
private:
DeviceSourceAPI *m_deviceAPI;
DeviceSoapySDRShared m_deviceShared;
SoapySDRInputThread *m_thread;
QMutex m_mutex;
SoapySDRInputSettings m_settings;
QString m_deviceDescription;
bool m_running;
SoapySDRInputThread *m_thread;
DeviceSoapySDRShared m_deviceShared;
FileRecord *m_fileSink; //!< File sink to record device I/Q output
bool openDevice();
void closeDevice();
SoapySDRInputThread *findThread();
void moveThreadToBuddy();
bool applySettings(const SoapySDRInputSettings& settings, bool force = false);
bool setDeviceCenterFrequency(SoapySDR::Device *dev, int requestedChannel, quint64 freq_hz, int loPpmTenths);
};