aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioInterface.h
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-04-26 19:30:55 -0400
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2013-06-24 01:51:03 +0400
commit48f8fb34aadc9872f95805ba3f1d2ca3b39b3327 (patch)
treec074b07b12d2fa4d7a77367ff3133167afcfa888 /Transceiver52M/radioInterface.h
parent40c3d0a6d93a4ba9c3f83206fa726b0292ddd5ec (diff)
Transceiver52M: Setup UmTRX dual carrier support
Diffstat (limited to 'Transceiver52M/radioInterface.h')
-rw-r--r--Transceiver52M/radioInterface.h54
1 files changed, 7 insertions, 47 deletions
diff --git a/Transceiver52M/radioInterface.h b/Transceiver52M/radioInterface.h
index f301511..b02cadc 100644
--- a/Transceiver52M/radioInterface.h
+++ b/Transceiver52M/radioInterface.h
@@ -26,7 +26,7 @@
#define SAMPSPERSYM 1
#define INCHUNK (625)
#define OUTCHUNK (625)
-#define CHAN_M 5
+#define CHAN_MAX 2
static const unsigned gSlotLen = 148; ///< number of symbols per slot, not counting guard periods
@@ -49,8 +49,6 @@ protected:
float *rcvBuffer[CHAN_MAX];
unsigned rcvCursor;
- bool chanActive[CHAN_MAX];
-
bool underrun; ///< indicates writes to USRP are too slow
bool overrun; ///< indicates reads from USRP are too slow
TIMESTAMP writeTimestamp; ///< sample timestamp of next packet written to USRP
@@ -103,11 +101,11 @@ public:
void close();
/** constructor */
- RadioInterface(RadioDevice* wRadio = NULL,
+ RadioInterface(RadioDevice* wRadio,
int wChanM = 1,
- int receiveOffset = 3,
int wSPS = SAMPSPERSYM,
- GSM::Time wStartTime = GSM::Time(0));
+ int receiveOffset = 3,
+ GSM::Time wStartTime = GSM::Time(0, 0));
/** destructor */
~RadioInterface();
@@ -115,10 +113,7 @@ public:
void setSamplesPerSymbol(int wSamplesPerSymbol) {if (!mOn) samplesPerSymbol = wSamplesPerSymbol;}
int getSamplesPerSymbol() { return samplesPerSymbol;}
-
- /** check for underrun, resets underrun value */
- bool isUnderrun();
-
+
/** return the receive FIFO */
VectorFIFO* receiveFIFO(int num) { return &mReceiveFIFO[num];}
@@ -126,10 +121,10 @@ public:
RadioClock* getClock(void) { return &mClock;};
/** set transmit frequency */
- bool tuneTx(double freq);
+ bool tuneTx(double freq, int chan = 0);
/** set receive frequency */
- bool tuneRx(double freq);
+ bool tuneRx(double freq, int chan = 0);
/** set receive gain */
double setRxGain(double dB);
@@ -156,41 +151,6 @@ public:
/** get transport window type of attached device */
enum RadioDevice::TxWindowType getWindowType() { return mRadio->getWindowType(); }
-
-#if USRP1
-protected:
-
- /** drive synchronization of Tx/Rx of USRP */
- void alignRadio();
-
- /** reset the interface */
- void reset();
-
- /** interface status */
- bool on() { return mOn; }
-
- friend void *AlignRadioServiceLoopAdapter(RadioInterface*);
-#endif
-};
-
-#if USRP1
-/** synchronization thread loop */
-void *AlignRadioServiceLoopAdapter(RadioInterface*);
-#endif
-
-class RadioInterfaceResamp : public RadioInterface {
-
-private:
-
- void pushBuffer();
- void pullBuffer();
-
-public:
-
- RadioInterfaceResamp(RadioDevice* wRadio = NULL,
- int receiveOffset = 3,
- int wSPS = SAMPSPERSYM,
- GSM::Time wStartTime = GSM::Time(0));
};
#endif /* _RADIOINTEFACE_H_ */