diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2019-05-31 15:06:07 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:22 -0800 |
commit | 911b89e4f6e2df66d355448c452af0b2fc058fe6 (patch) | |
tree | 240900847a926459533dda9a5bb5759166a41c4c /host/tests | |
parent | de9cbe9c7c0a6e9296c561423d3b568bc1513133 (diff) | |
download | uhd-911b89e4f6e2df66d355448c452af0b2fc058fe6.tar.gz uhd-911b89e4f6e2df66d355448c452af0b2fc058fe6.tar.bz2 uhd-911b89e4f6e2df66d355448c452af0b2fc058fe6.zip |
rfnoc: Added src port, EPID getters to register_iface, 64-bit calls
- Add peek64() and poke64() convenience calls
Diffstat (limited to 'host/tests')
-rw-r--r-- | host/tests/rfnoc_mock_reg_iface.hpp | 13 |
1 files changed, 11 insertions, 2 deletions
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<uint32_t, uint32_t> 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 */ - |