uhd: add 52 MHz transceiver support
These are mostly identical changes as added to the non-52MHz
implementation with the exception of sample rate.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2634 19bc5d8c-e614-43d4-8b26-e1612bc8e597
diff --git a/Transceiver52M/radioDevice.h b/Transceiver52M/radioDevice.h
index 9ca39da..8835ae5 100644
--- a/Transceiver52M/radioDevice.h
+++ b/Transceiver52M/radioDevice.h
@@ -27,6 +27,9 @@
class RadioDevice {
public:
+ static RadioDevice *make(double desiredSampleRate, bool skipRx = false);
+
+ virtual bool open()=0;
/** Start the USRP */
virtual bool start()=0;
@@ -45,9 +48,9 @@
@return The number of samples actually read
*/
virtual int readSamples(short *buf, int len, bool *overrun,
- TIMESTAMP timestamp,
- bool *underrun,
- unsigned *RSSI=NULL)=0;
+ TIMESTAMP timestamp = 0xffffffff,
+ bool *underrun = 0,
+ unsigned *RSSI = 0)=0;
/**
Write samples to the radio.
@param buf Contains the data to be written.