aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'Transceiver52M/radioInterface.h')
-rw-r--r--Transceiver52M/radioInterface.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/Transceiver52M/radioInterface.h b/Transceiver52M/radioInterface.h
index 216cf3e..94d8917 100644
--- a/Transceiver52M/radioInterface.h
+++ b/Transceiver52M/radioInterface.h
@@ -31,7 +31,7 @@ static const unsigned gSlotLen = 148; ///< number of symbols per slot, not
/** class to interface the transceiver with the USRP */
class RadioInterface {
-private:
+protected:
Thread mAlignRadioServiceLoopThread; ///< thread that synchronizes transmit and receive sections
@@ -63,6 +63,8 @@ private:
int mNumARFCNs;
signalVector *finalVec, *finalVec9;
+private:
+
/** format samples to USRP */
int radioifyVector(signalVector &wVector,
float *floatVector,
@@ -73,10 +75,10 @@ private:
int unRadioifyVector(float *floatVector, signalVector &wVector);
/** push GSM bursts into the transmit buffer */
- void pushBuffer(void);
+ virtual void pushBuffer(void);
/** pull GSM bursts from the receive buffer */
- void pullBuffer(void);
+ virtual void pullBuffer(void);
public:
@@ -154,3 +156,18 @@ protected:
/** 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));
+};