diff options
author | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2011-11-26 03:18:46 +0000 |
---|---|---|
committer | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2011-11-26 03:18:46 +0000 |
commit | e724d6d53dd989d1de0c5395349c2ec4f754f427 (patch) | |
tree | 77697918354d5cbb56b131d5d0e1b3e6d78591c0 /Transceiver52M/radioInterface.h | |
parent | 0628613f4f28cdb72bbbdd892b7cbb2eaca55d14 (diff) |
transceiver: move various radio interface definitions
Move them out of the interface file - primarily for
readability.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2674 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M/radioInterface.h')
-rw-r--r-- | Transceiver52M/radioInterface.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Transceiver52M/radioInterface.h b/Transceiver52M/radioInterface.h index 9b5c2b1..31716b3 100644 --- a/Transceiver52M/radioInterface.h +++ b/Transceiver52M/radioInterface.h @@ -98,10 +98,10 @@ public: int getSamplesPerSymbol() { return samplesPerSymbol;} /** check for underrun, resets underrun value */ - bool isUnderrun() { bool retVal = underrun; underrun = false; return retVal;} + bool isUnderrun(); /** attach an existing USRP to this interface */ - void attach(RadioDevice *wRadio, int wRadioOversampling) {if (!mOn) {mRadio = wRadio; mRadioOversampling = SAMPSPERSYM;} } + void attach(RadioDevice *wRadio, int wRadioOversampling); /** return the receive FIFO */ VectorFIFO* receiveFIFO() { return &mReceiveFIFO;} @@ -109,19 +109,18 @@ public: /** return the basestation clock */ RadioClock* getClock(void) { return &mClock;}; - /** set receive gain */ - double setRxGain(double dB) {if (mRadio) return mRadio->setRxGain(dB); else return -1;} - - /** get receive gain */ - double getRxGain(void) {if (mRadio) return mRadio->getRxGain(); else return -1;} - - /** set transmit frequency */ bool tuneTx(double freq); /** set receive frequency */ bool tuneRx(double freq); + /** set receive gain */ + double setRxGain(double dB); + + /** get receive gain */ + double getRxGain(void); + /** drive transmission of GSM bursts */ void driveTransmitRadio(signalVector &radioBurst, bool zeroBurst); |