aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioDevice.h
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-04-05 20:42:41 -0400
committerThomas Tsou <tom@tsou.cc>2013-10-18 13:03:41 -0400
commite3e88149487c72bd722f83865bca571134caa454 (patch)
tree0feebfe01b8eca0e82b731d51db957f7efe7a47e /Transceiver52M/radioDevice.h
parent02d88d13808135f35b1cac7a44260e09affbb428 (diff)
Transceiver52M: Add device offset correction table
Previously, two timing correction values were used for UHD devices depending on the sample rate of 270.833e3 or 400e3 for native GSM or resampled device rate respectively. The correction values compensate for residual timing effects due to analog component delays, filters lag times, and general fudge factors. These values are device specific and over-generalized by the two value configuration. This patch adds the following struct to store these correction values by device type and sample rate - through samples-per-symbol. struct uhd_dev_offset { enum uhd_dev_type type; int sps; double offset; }; Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/radioDevice.h')
-rw-r--r--Transceiver52M/radioDevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/radioDevice.h b/Transceiver52M/radioDevice.h
index e5cdde8..ff3421c 100644
--- a/Transceiver52M/radioDevice.h
+++ b/Transceiver52M/radioDevice.h
@@ -31,7 +31,7 @@ class RadioDevice {
/* Available transport bus types */
enum TxWindowType { TX_WINDOW_USRP1, TX_WINDOW_FIXED };
- static RadioDevice *make(double desiredSampleRate, bool skipRx = false);
+ static RadioDevice *make(double desiredSampleRate, int sps, bool skipRx = false);
/** Initialize the USRP */
virtual bool open(const std::string &args)=0;