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/runTransceiver.cpp | |
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/runTransceiver.cpp')
-rw-r--r-- | Transceiver52M/runTransceiver.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Transceiver52M/runTransceiver.cpp b/Transceiver52M/runTransceiver.cpp index 43ee82e..6b35797 100644 --- a/Transceiver52M/runTransceiver.cpp +++ b/Transceiver52M/runTransceiver.cpp @@ -36,12 +36,6 @@ #include <Logger.h> #include <Configuration.h> -#ifdef RESAMPLE - #define DEVICERATE 400e3 -#else - #define DEVICERATE 1625e3/6 -#endif - using namespace std; ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db"); @@ -89,7 +83,7 @@ int main(int argc, char *argv[]) srandom(time(NULL)); - RadioDevice *usrp = RadioDevice::make(DEVICERATE * SAMPSPERSYM, SAMPSPERSYM); + RadioDevice *usrp = RadioDevice::make(SAMPSPERSYM); if (!usrp->open(deviceArgs)) { LOG(ALERT) << "Transceiver exiting..." << std::endl; return EXIT_FAILURE; |