USRP Hardware Driver and USRP Manual  Version: 3.12.0.0-0-unknown
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 
12 #include <uhd/rfnoc/constants.hpp>
13 
14 namespace uhd {
15  namespace rfnoc {
16 
25 class tick_node_ctrl : virtual public node_ctrl_base
26 {
27 public:
28  /***********************************************************************
29  * Types
30  **********************************************************************/
31  typedef boost::shared_ptr<tick_node_ctrl> sptr;
32 
33  /***********************************************************************
34  * Constants
35  **********************************************************************/
37  static const double RATE_UNDEFINED;
38 
39  /***********************************************************************
40  * Rate controls
41  **********************************************************************/
48  double get_tick_rate(
49  const std::set< node_ctrl_base::sptr > &_explored_nodes=std::set< node_ctrl_base::sptr >()
50  );
51 
52 protected:
53  virtual double _get_tick_rate() { return RATE_UNDEFINED; };
54 
55 }; /* class tick_node_ctrl */
56 
57 }} /* namespace uhd::rfnoc */
58 
59 #endif /* INCLUDED_LIBUHD_TICK_NODE_CTRL_BASE_HPP */
60 // vim: sw=4 et:
Definition: build_info.hpp:14
Definition: tick_node_ctrl.hpp:25
#define UHD_RFNOC_API
Definition: config.hpp:93
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:53
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:37
boost::shared_ptr< tick_node_ctrl > sptr
Definition: tick_node_ctrl.hpp:31
Definition: node_ctrl_base.hpp:31