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
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 @@
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 @@
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);