aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_defaults.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-02-26 16:03:48 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-02-28 11:52:21 -0800
commit0592032f4a3aba7feafdcba017b1df42457c1d37 (patch)
treef47f10e39c475ec105e1cd130949e2ab2cc4d530 /host/lib/usrp/x300/x300_defaults.hpp
parentcbaa0bb6dbf36fcbd9d602eefc07b7dcac2ef4dc (diff)
downloaduhd-0592032f4a3aba7feafdcba017b1df42457c1d37.tar.gz
uhd-0592032f4a3aba7feafdcba017b1df42457c1d37.tar.bz2
uhd-0592032f4a3aba7feafdcba017b1df42457c1d37.zip
x300: Catch more inconsistencies in x300_device_args
- ADC self test had magic numbers for default duration - resource and addr can be no longer be both specified without a warning - second_addr requires addr now, or you get a warning
Diffstat (limited to 'host/lib/usrp/x300/x300_defaults.hpp')
-rw-r--r--host/lib/usrp/x300/x300_defaults.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/x300/x300_defaults.hpp b/host/lib/usrp/x300/x300_defaults.hpp
index 5956686d0..55991587a 100644
--- a/host/lib/usrp/x300/x300_defaults.hpp
+++ b/host/lib/usrp/x300/x300_defaults.hpp
@@ -102,6 +102,8 @@ static const size_t MAX_RATE_1GIGE = (size_t)( // bytes/s
/ float(GE_DATA_FRAME_RECV_SIZE
+ 8 /* UDP header */ + 20 /* Ethernet header length */)));
+static constexpr double DEFAULT_EXT_ADC_SELF_TEST_DURATION = 30.0;
+
}}} /* namespace uhd::usrp::x300 */
#endif /* INCLUDED_X300_DEFAULTS_HPP */