aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/Lime.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-02-27 11:37:53 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-02-27 11:37:53 +0100
commit705ae30e5f7cc2525627f338beef8c90a8678c2f (patch)
treed119190bf5eba0e70eea2fecc8fd005ec2fa9cb5 /src/output/Lime.h
parent6db4e5b3ad28973601b8e7426a4cffa01322b9a2 (diff)
downloaddabmod-705ae30e5f7cc2525627f338beef8c90a8678c2f.tar.gz
dabmod-705ae30e5f7cc2525627f338beef8c90a8678c2f.tar.bz2
dabmod-705ae30e5f7cc2525627f338beef8c90a8678c2f.zip
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
Diffstat (limited to 'src/output/Lime.h')
-rw-r--r--src/output/Lime.h14
1 files changed, 7 insertions, 7 deletions
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 <config.h>
#endif
-//#define HAVE_LIMESDR
+
#ifdef HAVE_LIMESDR
#include <string>
@@ -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<complexf> interpolatebuf;
size_t underflows = 0;
size_t overflows = 0;