diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-07 11:57:34 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-07 11:57:34 +0200 |
commit | 8a1f6365833008781bee02a44ccc7a3ca55cbe3a (patch) | |
tree | e6942a08de3f5c313c4297136a06045818a25bd8 /src | |
parent | 04c3650d5f730891c33e45d2f07c052c6393c2e8 (diff) | |
download | dabmod-8a1f6365833008781bee02a44ccc7a3ca55cbe3a.tar.gz dabmod-8a1f6365833008781bee02a44ccc7a3ca55cbe3a.tar.bz2 dabmod-8a1f6365833008781bee02a44ccc7a3ca55cbe3a.zip |
Implement bandwidth functions for Limelime
Diffstat (limited to 'src')
-rw-r--r-- | src/output/Lime.cpp | 12 | ||||
-rw-r--r-- | src/output/Lime.h | 2 |
2 files changed, 14 insertions, 0 deletions
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; diff --git a/src/output/Lime.h b/src/output/Lime.h index 48fb648..594ef58 100644 --- a/src/output/Lime.h +++ b/src/output/Lime.h @@ -64,6 +64,8 @@ class Lime : public Output::SDRDevice virtual double get_tx_freq(void) const override; virtual void set_txgain(double txgain) override; virtual double get_txgain(void) const override; + virtual void set_bandwidth(double bandwidth) override; + virtual double get_bandwidth(void) const override; virtual void transmit_frame(const struct FrameData &frame) override; virtual RunStatistics get_run_statistics(void) const override; virtual double get_real_secs(void) const override; |