From 911b89e4f6e2df66d355448c452af0b2fc058fe6 Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Fri, 31 May 2019 15:06:07 -0700 Subject: rfnoc: Added src port, EPID getters to register_iface, 64-bit calls - Add peek64() and poke64() convenience calls --- host/tests/rfnoc_mock_reg_iface.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'host/tests') diff --git a/host/tests/rfnoc_mock_reg_iface.hpp b/host/tests/rfnoc_mock_reg_iface.hpp index 3ceb95893..b43317237 100644 --- a/host/tests/rfnoc_mock_reg_iface.hpp +++ b/host/tests/rfnoc_mock_reg_iface.hpp @@ -106,6 +106,15 @@ public: "Requested to set policy for " << name << " to " << args.to_string()); } + uint16_t get_src_epid() const + { + return 0; + } + + uint16_t get_port_num() const + { + return 0; + } bool force_timeout = false; @@ -113,7 +122,8 @@ public: std::unordered_map write_memory; protected: - virtual void _poke_cb(uint32_t /*addr*/, uint32_t /*data*/, uhd::time_spec_t /*time*/, bool /*ack*/) + virtual void _poke_cb( + uint32_t /*addr*/, uint32_t /*data*/, uhd::time_spec_t /*time*/, bool /*ack*/) { } virtual void _peek_cb(uint32_t /*addr*/, uhd::time_spec_t /*time*/) {} @@ -121,4 +131,3 @@ protected: #endif /* INCLUDED_LIBUHD_TESTS_MOCK_REG_IFACE_HPP */ - -- cgit v1.2.3