aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-04-20 14:39:25 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-20 14:40:26 -0700
commitfbb3af323db4d54681ea49f51e51e0920f731805 (patch)
tree521dde7cdd59318c68c331f933e8a1a204628e11 /host/tests
parent3dd065f9f8a50011719fc41fc21a23660f370f6f (diff)
downloaduhd-fbb3af323db4d54681ea49f51e51e0920f731805.tar.gz
uhd-fbb3af323db4d54681ea49f51e51e0920f731805.tar.bz2
uhd-fbb3af323db4d54681ea49f51e51e0920f731805.zip
fixup! rfnoc: ctrl_iface cleanup
Diffstat (limited to 'host/tests')
-rw-r--r--host/tests/device3_test.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/host/tests/device3_test.cpp b/host/tests/device3_test.cpp
index 62b90920e..d3f7aa2ee 100644
--- a/host/tests/device3_test.cpp
+++ b/host/tests/device3_test.cpp
@@ -11,6 +11,8 @@
#include <uhd/device3.hpp>
#include <uhd/rfnoc/block_ctrl.hpp>
#include <uhd/rfnoc/graph.hpp>
+#include <uhd/rfnoc/constants.hpp>
+#include <uhdlib/rfnoc/ctrl_iface.hpp>
#include <boost/test/unit_test.hpp>
#include <exception>
#include <iostream>
@@ -27,7 +29,7 @@ class pseudo_ctrl_iface_impl : public ctrl_iface
{
public:
pseudo_ctrl_iface_impl() {};
- ~pseudo_ctrl_iface_impl() {};
+ virtual ~pseudo_ctrl_iface_impl() {}
uint64_t send_cmd_pkt(
const size_t addr,
@@ -46,6 +48,9 @@ class pseudo_ctrl_iface_impl : public ctrl_iface
return 0x000000000000000B;
case SR_READBACK_REG_USER:
return 0x0123456789ABCDEF;
+ case SR_READBACK_COMPAT:
+ return uhd::rfnoc::NOC_SHELL_COMPAT_MAJOR << 32 |
+ uhd::rfnoc::NOC_SHELL_COMPAT_MINOR;
default:
return 0;
}