From 639539dc41241f1981e74e7eb7fe81d75e558007 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 30 May 2017 14:33:36 -0700 Subject: eiscat: Added RPC passing API --- host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.hpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.hpp') diff --git a/host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.hpp b/host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.hpp index 46b9410cd..edc44631e 100644 --- a/host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.hpp +++ b/host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.hpp @@ -19,7 +19,8 @@ #define INCLUDED_LIBUHD_RFNOC_EISCAT_RADIO_CTRL_IMPL_HPP #include "radio_ctrl_impl.hpp" -#include "uhd/types/direction.hpp" +#include "rpc_block_ctrl.hpp" +#include namespace uhd { namespace rfnoc { @@ -28,11 +29,11 @@ namespace uhd { * * Note: This will control both daughterboards. */ -class eiscat_radio_ctrl_impl : public radio_ctrl_impl +class eiscat_radio_ctrl_impl : public radio_ctrl_impl, public rpc_block_ctrl { public: using sptr = boost::shared_ptr; - using fir_tap_t = int32_t; + using fir_tap_t = int32_t; // See also EISCAT_BITS_PER_TAP /************************************************************************ * Structors @@ -86,6 +87,11 @@ public: protected: virtual bool check_radio_config(); + void set_rpc_client( + uhd::rpc_client::sptr rpcc, + const uhd::device_addr_t &block_args + ); + private: /*! Write filter taps for a specific FIR filter. @@ -162,6 +168,10 @@ private: */ size_t _num_ports; + /*! Reference to the RPC client + */ + uhd::rpc_client::sptr _rpcc; + }; /* class radio_ctrl_impl */ }} /* namespace uhd::rfnoc */ -- cgit v1.2.3