From 0ff69c95fff6b6227815cff6749c2deedfa717c3 Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Fri, 6 May 2011 13:16:36 -0400 Subject: [PATCH] uhd: set hardware side delay offset for e100 The value is used to align transmit and receive time slots within a sample. This oscilloscope measured value is close, but may need minor tweaking. Signed-off-by: Thomas Tsou --- public-trunk/Transceiver/UHDDevice.cpp | 1 + public-trunk/Transceiver52M/UHDDevice.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public-trunk/Transceiver/UHDDevice.cpp b/public-trunk/Transceiver/UHDDevice.cpp index c2236e8..d6d987c 100644 --- a/public-trunk/Transceiver/UHDDevice.cpp +++ b/public-trunk/Transceiver/UHDDevice.cpp @@ -36,6 +36,7 @@ rx_smpl_offset - Timing correction in seconds between receive and transmit timestamps. This value corrects for delays on on the RF side of the timestamping point of the device. + This value is generally empirically measured. smpl_buf_sz - The receive sample buffer size in bytes. */ diff --git a/public-trunk/Transceiver52M/UHDDevice.cpp b/public-trunk/Transceiver52M/UHDDevice.cpp index e134f56..145a15a 100644 --- a/public-trunk/Transceiver52M/UHDDevice.cpp +++ b/public-trunk/Transceiver52M/UHDDevice.cpp @@ -36,12 +36,13 @@ rx_smpl_offset - Timing correction in seconds between receive and transmit timestamps. This value corrects for delays on on the RF side of the timestamping point of the device. + This value is generally empirically measured. smpl_buf_sz - The receive sample buffer size in bytes. */ const bool use_ext_ref = false; const double master_clk_rt = 52e6; -const double rx_smpl_offset = .00005; +const double rx_smpl_offset = .0000869; const size_t smpl_buf_sz = (1 << 20); /** Timestamp conversion