Transceiver52M: Remove and rename oversampling variables
The transceiver only uses a single integer oversampling value, which is more simply referred to as samples-per-symbol. mRadioOversampling --> mSPS mTransceiverOversampling (removed) Signed-off-by: Thomas Tsou <tom@tsou.cc>
This commit is contained in:
parent
f2293b8cfa
commit
312e387630
|
@ -29,12 +29,11 @@ bool started = false;
|
|||
|
||||
RadioInterface::RadioInterface(RadioDevice *wRadio,
|
||||
int wReceiveOffset,
|
||||
int wRadioOversampling,
|
||||
int wTransceiverOversampling,
|
||||
int wSPS,
|
||||
GSM::Time wStartTime)
|
||||
: underrun(false), sendCursor(0), rcvCursor(0), mOn(false),
|
||||
mRadio(wRadio), receiveOffset(wReceiveOffset),
|
||||
samplesPerSymbol(wRadioOversampling), powerScaling(1.0),
|
||||
samplesPerSymbol(wSPS), powerScaling(1.0),
|
||||
loadTest(false)
|
||||
{
|
||||
mClock.set(wStartTime);
|
||||
|
|
|
@ -54,8 +54,6 @@ private:
|
|||
|
||||
int samplesPerSymbol; ///< samples per GSM symbol
|
||||
int receiveOffset; ///< offset b/w transmit and receive GSM timestamps, in timeslots
|
||||
int mRadioOversampling;
|
||||
int mTransceiverOversampling;
|
||||
|
||||
bool mOn; ///< indicates radio is on
|
||||
|
||||
|
@ -88,8 +86,7 @@ public:
|
|||
/** constructor */
|
||||
RadioInterface(RadioDevice* wRadio = NULL,
|
||||
int receiveOffset = 3,
|
||||
int wRadioOversampling = SAMPSPERSYM,
|
||||
int wTransceiverOversampling = SAMPSPERSYM,
|
||||
int wSPS = SAMPSPERSYM,
|
||||
GSM::Time wStartTime = GSM::Time(0));
|
||||
|
||||
/** destructor */
|
||||
|
|
|
@ -88,14 +88,13 @@ int main(int argc, char *argv[])
|
|||
|
||||
srandom(time(NULL));
|
||||
|
||||
int mOversamplingRate = numARFCN/2 + numARFCN;
|
||||
RadioDevice *usrp = RadioDevice::make(DEVICERATE * SAMPSPERSYM, SAMPSPERSYM);
|
||||
if (!usrp->open(deviceArgs)) {
|
||||
LOG(ALERT) << "Transceiver exiting..." << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
RadioInterface* radio = new RadioInterface(usrp,3,SAMPSPERSYM,mOversamplingRate,false);
|
||||
RadioInterface* radio = new RadioInterface(usrp,3,SAMPSPERSYM,false);
|
||||
Transceiver *trx = new Transceiver(gConfig.getNum("TRX.Port"),gConfig.getStr("TRX.IP").c_str(),SAMPSPERSYM,GSM::Time(3,0),radio);
|
||||
trx->receiveFIFO(radio->receiveFIFO());
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue