From efd8e88859421c0a1876cbe850536dc28a21df69 Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Sat, 25 May 2019 20:45:34 -0700 Subject: rfnoc: Added clock_iface to convey info about clocks The inteface provides a mechanism for users of clocks to query information such as the running status or rate --- host/lib/rfnoc/chdr_ctrl_endpoint.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'host/lib/rfnoc/chdr_ctrl_endpoint.cpp') diff --git a/host/lib/rfnoc/chdr_ctrl_endpoint.cpp b/host/lib/rfnoc/chdr_ctrl_endpoint.cpp index cab90fb49..6ded83c0f 100644 --- a/host/lib/rfnoc/chdr_ctrl_endpoint.cpp +++ b/host/lib/rfnoc/chdr_ctrl_endpoint.cpp @@ -67,8 +67,8 @@ public: virtual ctrlport_endpoint::sptr get_ctrlport_ep(uint16_t port, size_t buff_capacity, size_t max_outstanding_async_msgs, - double ctrl_clk_freq, - double timebase_freq) + const clock_iface& client_clk, + const clock_iface& timebase_clk) { std::lock_guard lock(_mutex); @@ -93,8 +93,8 @@ public: port, buff_capacity, max_outstanding_async_msgs, - ctrl_clk_freq, - timebase_freq); + client_clk, + timebase_clk); _endpoint_map.insert(std::make_pair(port, ctrlport_ep)); UHD_LOG_DEBUG("RFNOC", boost::format("Created ctrlport endpoint for port %d on EPID %d") % port -- cgit v1.2.3