aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200/b200_impl.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-06-16 16:27:22 -0700
committerMartin Braun <martin.braun@ettus.com>2015-06-29 10:01:06 -0700
commitb2ae3b2d86e2cc6400cfc94b57054fdd9128e923 (patch)
treed2d13395fa315833f713743a25f1abdd8e4e87c5 /host/lib/usrp/b200/b200_impl.hpp
parent3177e039550a9365dba10f24350322f3ef181a98 (diff)
downloaduhd-b2ae3b2d86e2cc6400cfc94b57054fdd9128e923.tar.gz
uhd-b2ae3b2d86e2cc6400cfc94b57054fdd9128e923.tar.bz2
uhd-b2ae3b2d86e2cc6400cfc94b57054fdd9128e923.zip
b200: Modify initialization sequence to avoid warnings
This will set the actual default rate to an integer factor of whatever the tick rate is, but leave the property tree value at zero. This avoids warnings if the chosen tick rate is not a multiple of the previous default rate, but also returns a zero value for the rate when it has not been initialized, allowing the user to probe if the value has not yet been set.
Diffstat (limited to 'host/lib/usrp/b200/b200_impl.hpp')
-rw-r--r--host/lib/usrp/b200/b200_impl.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/b200/b200_impl.hpp b/host/lib/usrp/b200/b200_impl.hpp
index aea9b78be..7ed94284d 100644
--- a/host/lib/usrp/b200/b200_impl.hpp
+++ b/host/lib/usrp/b200/b200_impl.hpp
@@ -51,7 +51,8 @@ static const boost::uint16_t B200_FPGA_COMPAT_NUM = 6;
static const double B200_BUS_CLOCK_RATE = 100e6;
static const double B200_DEFAULT_TICK_RATE = 32e6;
static const double B200_DEFAULT_FREQ = 100e6; // Hz
-static const double B200_DEFAULT_RATE = 250e3; // Sps
+static const double B200_DEFAULT_DECIM = 128;
+static const double B200_DEFAULT_INTERP = 128;
static const double B200_DEFAULT_RX_GAIN = 0; // dB
static const double B200_DEFAULT_TX_GAIN = 0; // dB
static const boost::uint32_t B200_GPSDO_ST_NONE = 0x83;