From 1ee9529abdf32be8ff254114a108aeb14534cf98 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 27 May 2019 21:05:56 -0700 Subject: uhd: utils: Add compat check for 32-bit compat numbers --- host/lib/include/uhdlib/utils/compat_check.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'host/lib/include') diff --git a/host/lib/include/uhdlib/utils/compat_check.hpp b/host/lib/include/uhdlib/utils/compat_check.hpp index b2d7652d0..8fe96d118 100644 --- a/host/lib/include/uhdlib/utils/compat_check.hpp +++ b/host/lib/include/uhdlib/utils/compat_check.hpp @@ -25,6 +25,19 @@ namespace uhd { const bool fail_on_minor_behind=false ); + /*! Checks for FPGA compatibility, and throws an exception on mismatch. + * + * \throws uhd::runtime_error on mismatch. + */ + void assert_fpga_compat( + const size_t uhd_major, + const size_t uhd_minor, + const uint32_t fpga_compat, + const std::string& fpga_component, + const std::string& log_component, + const bool fail_on_minor_behind=false + ); + } /* namespace uhd */ #endif /* INCLUDED_UHDLIB_UTILS_COMPATCHECK_HPP */ -- cgit v1.2.3