From e724d6d53dd989d1de0c5395349c2ec4f754f427 Mon Sep 17 00:00:00 2001 From: "kurtis.heimerl" Date: Sat, 26 Nov 2011 03:18:46 +0000 Subject: transceiver: move various radio interface definitions Move them out of the interface file - primarily for readability. Signed-off-by: Thomas Tsou git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2674 19bc5d8c-e614-43d4-8b26-e1612bc8e597 --- Transceiver52M/radioInterface.cpp | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) (limited to 'Transceiver52M/radioInterface.cpp') diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp index 1482eb6..a3c933f 100644 --- a/Transceiver52M/radioInterface.cpp +++ b/Transceiver52M/radioInterface.cpp @@ -215,5 +215,36 @@ void RadioInterface::driveReceiveRadio() { rcvCursor -= readSz; memmove(rcvBuffer,rcvBuffer+2*readSz,sizeof(float) * 2 * rcvCursor); } -} - +} + +bool RadioInterface::isUnderrun() +{ + bool retVal = underrun; + underrun = false; + + return retVal; +} + +void RadioInterface::attach(RadioDevice *wRadio, int wRadioOversampling) +{ + if (!mOn) { + mRadio = wRadio; + mRadioOversampling = SAMPSPERSYM; + } +} + +double RadioInterface::setRxGain(double dB) +{ + if (mRadio) + return mRadio->setRxGain(dB); + else + return -1; +} + +double RadioInterface::getRxGain() +{ + if (mRadio) + return mRadio->getRxGain(); + else + return -1; +} -- cgit v1.2.3