From 8a1f6365833008781bee02a44ccc7a3ca55cbe3a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 7 May 2019 11:57:34 +0200 Subject: Implement bandwidth functions for Lime --- src/output/Lime.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/output/Lime.cpp') diff --git a/src/output/Lime.cpp b/src/output/Lime.cpp index 1d4c581..8618c6e 100644 --- a/src/output/Lime.cpp +++ b/src/output/Lime.cpp @@ -295,6 +295,18 @@ double Lime::get_txgain(void) const return txgain; } +void Lime::set_bandwidth(double bandwidth) +{ + LMS_SetLPFBW(m_device, LMS_CH_TX, m_channel, bandwidth); +} + +double Lime::get_bandwidth(void) const +{ + double bw; + LMS_GetLPFBW(m_device, LMS_CH_TX, m_channel, &bw); + return bw; +} + SDRDevice::RunStatistics Lime::get_run_statistics(void) const { RunStatistics rs; -- cgit v1.2.3