From d2374c6ad67f94fa577d28d5660f32579f4775cc Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Mon, 31 Jan 2022 16:10:42 -0600 Subject: host: zbx: Expose tuning table on property tree This allows viewing or, conceivably, customizing the tuning table that ZBX uses, depending on the particular needs of the end user. --- host/lib/include/uhdlib/usrp/dboard/zbx/zbx_constants.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/lib/include/uhdlib/usrp/dboard/zbx/zbx_constants.hpp') diff --git a/host/lib/include/uhdlib/usrp/dboard/zbx/zbx_constants.hpp b/host/lib/include/uhdlib/usrp/dboard/zbx/zbx_constants.hpp index bc61b9d61..f6956a6aa 100644 --- a/host/lib/include/uhdlib/usrp/dboard/zbx/zbx_constants.hpp +++ b/host/lib/include/uhdlib/usrp/dboard/zbx/zbx_constants.hpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -199,6 +200,10 @@ struct tune_map_item_t double if1_freq_max; double if2_freq_min; double if2_freq_max; + + bool operator==(const tune_map_item_t& other) const { + return std::memcmp(this, &other, sizeof(tune_map_item_t)) == 0; + } }; // These are addresses for the various table-based registers @@ -266,4 +271,6 @@ namespace uhd { namespace usrp { namespace zbx { // Any added expert nodes of type enum class will have to define this std::ostream& operator<<( std::ostream& os, const ::uhd::usrp::zbx::zbx_lo_source_t& lo_source); +std::ostream& operator<<( + std::ostream& os, const std::vector<::uhd::usrp::zbx::tune_map_item_t>& tune_map); }}} // namespace uhd::usrp::zbx -- cgit v1.2.3