aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-28 21:52:57 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-05-25 17:14:43 +0200
commit6d000ba2f7191efbb15b4ea54bcf9c5cb5a528e1 (patch)
treeb5a35ab46843e40498ebbbfec17d381bfbab9ffc
parent2b764c33e5be29fa66a72fa033cf3f47fa510a42 (diff)
LMSDevice: Set low-pass filters to smallest possible option
Rx 1.4 MHz, Tx 5MHz. Both massively too wide for GSM, but there's no smaller band-width available. Change-Id: I9723c9a2ea77f65bfa9d796d7c44adc2417e89cf
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index c131aea..3b2ce5e 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -156,6 +156,10 @@ int LMSDevice::open(const std::string &args, int ref, bool swap_channels)
/* Perform Rx and Tx calibration */
for (i=0; i<chans; i++) {
+ if (LMS_SetLPFBW(m_lms_dev, LMS_CH_RX, i, 1.4001e6) < 0)
+ goto out_close;
+ if (LMS_SetLPFBW(m_lms_dev, LMS_CH_TX, i, 5e6) < 0)
+ goto out_close;
LOG(INFO) << "Calibrating chan " << i;
if (LMS_Calibrate(m_lms_dev, LMS_CH_RX, i, LMS_CALIBRATE_BW_HZ, 0) < 0)
goto out_close;