From 965e757c53d2abc805d927bb7d1d2b62d24bfe4a Mon Sep 17 00:00:00 2001 From: "kurtis.heimerl" Date: Sat, 26 Nov 2011 03:16:54 +0000 Subject: 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 git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2634 19bc5d8c-e614-43d4-8b26-e1612bc8e597 --- Transceiver52M/radioDevice.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Transceiver52M/radioDevice.h') 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 @@ typedef unsigned long long TIMESTAMP; 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 @@ class RadioDevice { @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. -- cgit v1.2.3