aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioInterface.h
diff options
context:
space:
mode:
authorkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:18:34 +0000
committerkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:18:34 +0000
commit9b557835d5fbdba543491f6a04f11b335653b2c4 (patch)
tree61f8fcc8a3f8348c050db85acb766149be17421b /Transceiver52M/radioInterface.h
parent8aea56e15f3593e3606594fd2e55b3b0022e7c01 (diff)
transceiver: separate I/O portion of radio interface implementation
Move push and pull of buffers into a dedicated file. This will allow us to swap out resampling, non-resampling, and possibly floating point device interfaces while presenting a single floating point abstration in the interface itself. Signed-off-by: Thomas Tsou <ttsou@vt.edu> git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2670 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M/radioInterface.h')
-rw-r--r--Transceiver52M/radioInterface.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Transceiver52M/radioInterface.h b/Transceiver52M/radioInterface.h
index 8fb9f27..9b5c2b1 100644
--- a/Transceiver52M/radioInterface.h
+++ b/Transceiver52M/radioInterface.h
@@ -37,10 +37,10 @@ private:
RadioDevice *mRadio; ///< the USRP object
- short *sendBuffer; //[2*2*INCHUNK];
+ float *sendBuffer;
unsigned sendCursor;
- short *rcvBuffer; //[2*2*OUTCHUNK];
+ float *rcvBuffer;
unsigned rcvCursor;
bool underrun; ///< indicates writes to USRP are too slow
@@ -64,13 +64,13 @@ private:
signalVector *finalVec, *finalVec9;
/** format samples to USRP */
- short *radioifyVector(signalVector &wVector,
- short *shortVector,
- float scale,
- bool zeroOut);
+ int radioifyVector(signalVector &wVector,
+ float *floatVector,
+ float scale,
+ bool zero);
/** format samples from USRP */
- void unRadioifyVector(short *shortVector, signalVector &wVector);
+ int unRadioifyVector(float *floatVector, signalVector &wVector);
/** push GSM bursts into the transmit buffer */
void pushBuffer(void);