diff options
author | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2011-11-26 03:16:54 +0000 |
---|---|---|
committer | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2011-11-26 03:16:54 +0000 |
commit | 965e757c53d2abc805d927bb7d1d2b62d24bfe4a (patch) | |
tree | bd78ce2166e17b1f494f38e1d05ac735dac661cb /Transceiver52M/radioDevice.h | |
parent | d302868b13c4abe5616d5425b1bc47420023831c (diff) |
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
Diffstat (limited to 'Transceiver52M/radioDevice.h')
-rw-r--r-- | Transceiver52M/radioDevice.h | 9 |
1 files changed, 6 insertions, 3 deletions
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. |