diff options
author | Thomas Tsou <tom@tsou.cc> | 2013-04-08 14:18:26 -0400 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2013-06-24 01:46:34 +0400 |
commit | 5d0e392b216c3c4e3d6d701650cb13e50e19c35a (patch) | |
tree | 70cfcf0ce1b2e1aa2ddbff48286c3fea31d8b4e6 /Transceiver52M/radioDevice.h | |
parent | 801ce60d4af876badb7beed09e9ee24674f310ea (diff) |
Transceiver52M: Set sample rate from within the radio device
The GSM transceiver only operates at a whole number multiple of
the GSM rate and doesn't care about the actual device rate and
if resampling is used. Therefore GSM specific portion of the
transceiver should only need to submit the samples-per-symbol
value to the device interface.
Then, the device should be able to determine the appropriate
sample rate (400 ksps or 270.833 ksps) and if resampling is
appropriate.
Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/radioDevice.h')
-rw-r--r-- | Transceiver52M/radioDevice.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Transceiver52M/radioDevice.h b/Transceiver52M/radioDevice.h index 2c47736..d2308d5 100644 --- a/Transceiver52M/radioDevice.h +++ b/Transceiver52M/radioDevice.h @@ -21,6 +21,8 @@ #include "config.h" #endif +#define GSMRATE 1625e3/6 + /** a 64-bit virtual timestamp for radio data */ typedef unsigned long long TIMESTAMP; @@ -31,7 +33,7 @@ class RadioDevice { /* Available transport bus types */ enum TxWindowType { TX_WINDOW_USRP1, TX_WINDOW_FIXED }; - static RadioDevice *make(double desiredSampleRate, int sps, bool skipRx = false); + static RadioDevice *make(int sps, bool skipRx = false); /** Initialize the USRP */ virtual bool open(const std::string &args)=0; |