diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-06-16 16:27:22 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-06-29 10:38:17 -0700 |
commit | 9132fab60945f8665cac71a6921fd7e90ad68ec3 (patch) | |
tree | a5c681f2eba238389729625dfbc7e9a345022d4b /host/lib/usrp/b200/b200_impl.hpp | |
parent | 0de701af7708112285e35ea038cae4e9034a7001 (diff) | |
download | uhd-9132fab60945f8665cac71a6921fd7e90ad68ec3.tar.gz uhd-9132fab60945f8665cac71a6921fd7e90ad68ec3.tar.bz2 uhd-9132fab60945f8665cac71a6921fd7e90ad68ec3.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.hpp | 3 |
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 2491b36ad..57c68be71 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 = 7; 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; |