From c256b9df6502536c2e451e690f1ad5962c664d1a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 3 Jul 2019 20:15:35 -0700 Subject: x300/mpmd: Port all RFNoC devices to the new RFNoC framework Co-Authored-By: Alex Williams Co-Authored-By: Sugandha Gupta Co-Authored-By: Brent Stapleton Co-Authored-By: Ciro Nishiguchi --- host/lib/usrp/mpmd/mpmd_mb_controller.hpp | 73 ------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 host/lib/usrp/mpmd/mpmd_mb_controller.hpp (limited to 'host/lib/usrp/mpmd/mpmd_mb_controller.hpp') diff --git a/host/lib/usrp/mpmd/mpmd_mb_controller.hpp b/host/lib/usrp/mpmd/mpmd_mb_controller.hpp deleted file mode 100644 index 65e5dc468..000000000 --- a/host/lib/usrp/mpmd/mpmd_mb_controller.hpp +++ /dev/null @@ -1,73 +0,0 @@ -// -// Copyright 2019 Ettus Research, a National Instruments Brand -// -// SPDX-License-Identifier: GPL-3.0-or-later -// - -#ifndef INCLUDED_LIBUHD_MPMD_MB_CONTROLLER_HPP -#define INCLUDED_LIBUHD_MPMD_MB_CONTROLLER_HPP - -#include -#include - -namespace uhd { namespace rfnoc { - -/*! X300-Specific version of the mb_controller - * - * Reminder: There is one of these per motherboard. - */ -class mpmd_mb_controller : public mb_controller -{ -public: - - - //! Return reference to the RPC client - uhd::rpc_client::sptr get_rpc_client() { return _rpc; } - - //! X300-specific version of the timekeeper controls - class mpmd_timekeeper : public mb_controller::timekeeper - { - public: - mpmd_timekeeper(const size_t tk_idx, uhd::rpc_client::sptr rpc_client) - : _tk_idx(tk_idx), _rpc(rpc_client) - { - // nop - } - - uint64_t get_ticks_now(); - - uint64_t get_ticks_last_pps(); - - void set_ticks_now(const uint64_t ticks); - - void set_ticks_next_pps(const uint64_t ticks); - - void set_period(const uint64_t period_ns); - - private: - /*! Shorthand to perform an RPC request. Saves some typing. - */ - template - return_type request(std::string const& func_name, Args&&... args) - { - UHD_LOG_TRACE("X300MBCTRL", "[RPC] Calling " << func_name); - return _rpc->request_with_token( - func_name, std::forward(args)...); - }; - - const size_t _tk_idx; - - uhd::rpc_client::sptr _rpc; - }; - -private: - /************************************************************************** - * Attributes - *************************************************************************/ - //! Reference to RPC interface - uhd::rpc_client::sptr _rpc; -}; - -}} // namespace uhd::rfnoc - -#endif /* INCLUDED_LIBUHD_MPMD_MB_CONTROLLER_HPP */ -- cgit v1.2.3