aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/common/mock_ctrl_iface_impl.hpp
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2018-10-09 11:22:28 -0700
committerMartin Braun <martin.braun@ettus.com>2018-10-31 12:03:33 -0700
commit0738580e6ef03f9676632ffc3bc7e8d9fb0bc09f (patch)
tree2264c2b05f62c3abf75270da5a4765fb3fd161b0 /host/tests/common/mock_ctrl_iface_impl.hpp
parent77bd36701608551376f33e04ba01d8efa550299c (diff)
downloaduhd-0738580e6ef03f9676632ffc3bc7e8d9fb0bc09f.tar.gz
uhd-0738580e6ef03f9676632ffc3bc7e8d9fb0bc09f.tar.bz2
uhd-0738580e6ef03f9676632ffc3bc7e8d9fb0bc09f.zip
tests: device3_test: add graph impl test
Diffstat (limited to 'host/tests/common/mock_ctrl_iface_impl.hpp')
-rw-r--r--host/tests/common/mock_ctrl_iface_impl.hpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/host/tests/common/mock_ctrl_iface_impl.hpp b/host/tests/common/mock_ctrl_iface_impl.hpp
new file mode 100644
index 000000000..8d2aafed6
--- /dev/null
+++ b/host/tests/common/mock_ctrl_iface_impl.hpp
@@ -0,0 +1,30 @@
+//
+// Copyright 2018 Ettus Research, a National Instruments Company
+//
+// SPDX-License-Identifier: GPL-3.0-or-later
+//
+
+
+#ifndef INCLUDED_MOCK_CTRL_IFACE_IMPL_HPP
+#define INCLUDED_MOCK_CTRL_IFACE_IMPL_HPP
+
+#include <uhd/rfnoc/constants.hpp>
+#include <uhdlib/rfnoc/ctrl_iface.hpp>
+#include <boost/thread/mutex.hpp>
+#include <boost/thread/thread.hpp>
+#include <boost/format.hpp>
+#include <boost/bind.hpp>
+#include <boost/make_shared.hpp>
+#include <queue>
+
+class mock_ctrl_iface_impl : public uhd::rfnoc::ctrl_iface
+{
+
+ uint64_t send_cmd_pkt(
+ const size_t addr,
+ const size_t data,
+ const bool readback=false,
+ const uint64_t timestamp=0
+ );
+};
+#endif /* INCLUDED_MOCK_CTRL_IFACE_IMPL_HPP */ \ No newline at end of file