diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-25 18:09:08 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:58 -0800 |
commit | 823251a1969e1a3a9434e27acbbb9e3b8ea4715e (patch) | |
tree | abbdebe20d2c49120728eb269f66edc4764ce4a7 /host | |
parent | 010e24524bad79bb138f48af3fd5c29c81e2f07a (diff) | |
download | uhd-823251a1969e1a3a9434e27acbbb9e3b8ea4715e.tar.gz uhd-823251a1969e1a3a9434e27acbbb9e3b8ea4715e.tar.bz2 uhd-823251a1969e1a3a9434e27acbbb9e3b8ea4715e.zip |
eiscat: Fixed missing antenna selection reg write for direct rx
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_impl.cpp | 3 | ||||
-rw-r--r-- | host/lib/utils/rpc.hpp | 19 |
2 files changed, 20 insertions, 2 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_impl.cpp b/host/lib/usrp/mpmd/mpmd_impl.cpp index 1caec550e..747bd87a6 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_impl.cpp @@ -118,6 +118,9 @@ mpmd_impl::mpmd_impl(const device_addr_t& device_addr) UHD_HERE(); std::cout << ex.what() << std::endl; } + + + // FIXME pass in a reference to the rpc client for all childs of rpc_block_ctrl } mpmd_impl::~mpmd_impl() {} diff --git a/host/lib/utils/rpc.hpp b/host/lib/utils/rpc.hpp index 946ce90ed..39acffa04 100644 --- a/host/lib/utils/rpc.hpp +++ b/host/lib/utils/rpc.hpp @@ -20,12 +20,27 @@ #include <rpc/client.h> -namespace uhd -{ +namespace uhd { + +/*! Abstraction for RPC client + * + * Purpose of this class is to wrap the underlying RPC implementation. + * This class holds a connection to an RPC server (the connection is severed on + * destruction). + */ class rpc_client { public: + using sptr = std::shared_ptr<rpc_client>; + + /*! + * \param addr An IP address to connect to + * \param port Port to connect to + */ rpc_client(std::string const& addr, uint16_t port) : _client(addr, port) {} + + /*! Perform an RPC call + */ template <typename return_type, typename... Args> return_type call(std::string const& func_name, Args&&... args) { |