USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-gaea0e2de
UHD and USRP Manual
tick_node_ctrl.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #ifndef INCLUDED_LIBUHD_TICK_NODE_CTRL_BASE_HPP
9 #define INCLUDED_LIBUHD_TICK_NODE_CTRL_BASE_HPP
10 
11 #include <uhd/rfnoc/constants.hpp>
13 
14 namespace uhd { namespace rfnoc {
15 
24 class tick_node_ctrl : virtual public node_ctrl_base
25 {
26 public:
27  /***********************************************************************
28  * Types
29  **********************************************************************/
30  typedef boost::shared_ptr<tick_node_ctrl> sptr;
31 
32  /***********************************************************************
33  * Constants
34  **********************************************************************/
36  static const double RATE_UNDEFINED;
37 
38  /***********************************************************************
39  * Rate controls
40  **********************************************************************/
47  double get_tick_rate(const std::set<node_ctrl_base::sptr>& _explored_nodes =
48  std::set<node_ctrl_base::sptr>());
49 
50 protected:
51  virtual double _get_tick_rate()
52  {
53  return RATE_UNDEFINED;
54  };
55 
56 }; /* class tick_node_ctrl */
57 
58 }} /* namespace uhd::rfnoc */
59 
60 #endif /* INCLUDED_LIBUHD_TICK_NODE_CTRL_BASE_HPP */
Definition: build_info.hpp:13
Definition: tick_node_ctrl.hpp:24
#define UHD_RFNOC_API
Definition: config.hpp:117
double get_tick_rate(const std::set< node_ctrl_base::sptr > &_explored_nodes=std::set< node_ctrl_base::sptr >())
virtual double _get_tick_rate()
Definition: tick_node_ctrl.hpp:51
static const double RATE_UNDEFINED
This value is used by rate nodes that don&#39;t actually set a rate themselves.
Definition: tick_node_ctrl.hpp:36
boost::shared_ptr< tick_node_ctrl > sptr
Definition: tick_node_ctrl.hpp:30
Definition: node_ctrl_base.hpp:37