diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-04-28 21:52:57 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-06-13 21:45:32 +0000 |
commit | ea8be22e5031d9d160a6f8b4e3e2133476b03d7d (patch) | |
tree | 2c9745406a283bd0651e46ba5aa80a8a760d4fa1 /Transceiver52M/device | |
parent | a5054b398b860550b3acba72b2fec4d9bc90a4b2 (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
Diffstat (limited to 'Transceiver52M/device')
-rw-r--r-- | Transceiver52M/device/lms/LMSDevice.cpp | 4 |
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; |