diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2019-05-25 20:45:34 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:18 -0800 |
commit | efd8e88859421c0a1876cbe850536dc28a21df69 (patch) | |
tree | 0835dbc9ef27a0471581bebedcba09a74f4d3de4 /host/lib/rfnoc/chdr_ctrl_endpoint.cpp | |
parent | 15c058015f56cfcd0e42cf6779a6e6ef6e0da911 (diff) | |
download | uhd-efd8e88859421c0a1876cbe850536dc28a21df69.tar.gz uhd-efd8e88859421c0a1876cbe850536dc28a21df69.tar.bz2 uhd-efd8e88859421c0a1876cbe850536dc28a21df69.zip |
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
Diffstat (limited to 'host/lib/rfnoc/chdr_ctrl_endpoint.cpp')
-rw-r--r-- | host/lib/rfnoc/chdr_ctrl_endpoint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<std::mutex> 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 |