diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-11-04 08:36:03 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-11-04 08:36:03 +0100 |
commit | 4d8310ae0ffe1f78a2b8623d55f63ae504ff1aa8 (patch) | |
tree | eb6a7ad2b63b2887725159f53904c7a471429269 /src/output/Soapy.h | |
parent | 34afa3a0632817c30e4e5427ee67138d59c4ede3 (diff) | |
download | dabmod-4d8310ae0ffe1f78a2b8623d55f63ae504ff1aa8.tar.gz dabmod-4d8310ae0ffe1f78a2b8623d55f63ae504ff1aa8.tar.bz2 dabmod-4d8310ae0ffe1f78a2b8623d55f63ae504ff1aa8.zip |
Make DPD Feedback server SDRDevice-agnostic
Diffstat (limited to 'src/output/Soapy.h')
-rw-r--r-- | src/output/Soapy.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/output/Soapy.h b/src/output/Soapy.h index 97076b5..c603193 100644 --- a/src/output/Soapy.h +++ b/src/output/Soapy.h @@ -68,6 +68,14 @@ class Soapy : public Output::SDRDevice virtual RunStatistics get_run_statistics(void) override; virtual double get_real_secs(void) override; + virtual void set_rxgain(double rxgain) override; + virtual double get_rxgain(void) override; + virtual size_t receive_frame( + complexf *buf, + size_t num_samples, + struct frame_timestamp& ts, + double timeout_secs) override; + // Return true if GPS and reference clock inputs are ok virtual bool is_clk_source_ok(void) override; virtual const char* device_name(void) override; @@ -75,7 +83,8 @@ class Soapy : public Output::SDRDevice private: SDRDeviceConfig& m_conf; SoapySDR::Device *m_device = nullptr; - SoapySDR::Stream *m_stream = nullptr; + SoapySDR::Stream *m_tx_stream = nullptr; + SoapySDR::Stream *m_rx_stream = nullptr; size_t underflows = 0; size_t overflows = 0; |