From f8c0c464b84f6ca44c7a50623909e1a4aace0a1e Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 12 Mar 2020 19:08:46 +0100 Subject: radioDevice: Drop unused RSSI param from readSamples API The out "RSSI" parameter is only filled by USRPDevice, and not used at all by any user of the API (radioInterface*.cpp). RSSI seems to be computed nowadays in the common path in Transceiver::pullRadioVector(). Change-Id: I06c2ea5a9891d170bc468f952bbf2a7e64d95784 --- Transceiver52M/device/lms/LMSDevice.cpp | 2 +- Transceiver52M/device/lms/LMSDevice.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'Transceiver52M/device/lms') diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp index 884cc28..0cd8002 100644 --- a/Transceiver52M/device/lms/LMSDevice.cpp +++ b/Transceiver52M/device/lms/LMSDevice.cpp @@ -739,7 +739,7 @@ void LMSDevice::update_stream_stats_rx(size_t chan, bool *overrun) // NOTE: Assumes sequential reads int LMSDevice::readSamples(std::vector < short *>&bufs, int len, bool * overrun, - TIMESTAMP timestamp, bool * underrun, unsigned *RSSI) + TIMESTAMP timestamp, bool * underrun) { int rc, num_smpls, expect_smpls; ssize_t avail_smpls; diff --git a/Transceiver52M/device/lms/LMSDevice.h b/Transceiver52M/device/lms/LMSDevice.h index 755f6c4..c2fd2f6 100644 --- a/Transceiver52M/device/lms/LMSDevice.h +++ b/Transceiver52M/device/lms/LMSDevice.h @@ -106,12 +106,11 @@ public: @param overrun Set if read buffer has been overrun, e.g. data not being read fast enough @param timestamp The timestamp of the first samples to be read @param underrun Set if LMS does not have data to transmit, e.g. data not being sent fast enough - @param RSSI The received signal strength of the read result @return The number of samples actually read */ int readSamples(std::vector < short *>&buf, int len, bool * overrun, TIMESTAMP timestamp = 0xffffffff, bool * underrun = - NULL, unsigned *RSSI = NULL); + NULL); /** Write samples to the LMS. @param buf Contains the data to be written. -- cgit v1.2.3