From 705ae30e5f7cc2525627f338beef8c90a8678c2f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 27 Feb 2019 11:37:53 +0100 Subject: Refactor Lime output * master_clock_rate sets CGEN clock, not sample rate * set sample rate accordingly * support only interpolate 1 and 2 * add frequency, txgain and temperature to RC * improve error handling * fix signedness of LMS_SendStream() return value --- src/output/Lime.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/output/Lime.h') diff --git a/src/output/Lime.h b/src/output/Lime.h index ab0a388..89f3b7e 100644 --- a/src/output/Lime.h +++ b/src/output/Lime.h @@ -5,7 +5,11 @@ Copyright (C) 2018 Evariste F5OEO, evaristec@gmail.com - + Copyright (C) 2019 + Matthias P. Braendli, matthias.braendli@mpb.li + + http://opendigitalradio.org + DESCRIPTION: It is an output driver using the LimeSDR library. */ @@ -32,7 +36,7 @@ DESCRIPTION: #ifdef HAVE_CONFIG_H #include #endif -//#define HAVE_LIMESDR + #ifdef HAVE_LIMESDR #include @@ -81,14 +85,10 @@ class Lime : public Output::SDRDevice SDRDeviceConfig &m_conf; lms_device_t *m_device = nullptr; size_t m_channel = 0; // Should be set by config - /* - SoapySDR::Device *m_device = nullptr; - SoapySDR::Stream *m_tx_stream = nullptr; - */ lms_stream_t m_tx_stream; bool m_tx_stream_active = false; size_t m_interpolate = 1; - complexf *interpolatebuf = nullptr; + std::vector interpolatebuf; size_t underflows = 0; size_t overflows = 0; -- cgit v1.2.3