diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-30 14:33:36 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:58 -0800 |
commit | 639539dc41241f1981e74e7eb7fe81d75e558007 (patch) | |
tree | 415c26631267048298e180149754762145aa95c8 /host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.hpp | |
parent | 2b864696b729783a0248c800e0a5b18bd881509c (diff) | |
download | uhd-639539dc41241f1981e74e7eb7fe81d75e558007.tar.gz uhd-639539dc41241f1981e74e7eb7fe81d75e558007.tar.bz2 uhd-639539dc41241f1981e74e7eb7fe81d75e558007.zip |
eiscat: Added RPC passing API
Diffstat (limited to 'host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.hpp')
-rw-r--r-- | host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.hpp | 16 |
1 files changed, 13 insertions, 3 deletions
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 <uhd/types/direction.hpp> 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<eiscat_radio_ctrl_impl>; - 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 */ |