USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-gaea0e2de
UHD and USRP Manual
rate_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_RATE_NODE_CTRL_BASE_HPP
9 #define INCLUDED_LIBUHD_RATE_NODE_CTRL_BASE_HPP
10 
11 #include <uhd/rfnoc/constants.hpp>
13 
14 namespace uhd { namespace rfnoc {
15 
27 class rate_node_ctrl : virtual public node_ctrl_base
28 {
29 public:
30  /***********************************************************************
31  * Types
32  **********************************************************************/
33  typedef boost::shared_ptr<rate_node_ctrl> sptr;
35  static const double RATE_UNDEFINED;
36 
37  /***********************************************************************
38  * Rate controls
39  **********************************************************************/
47  virtual double get_input_samp_rate(size_t port = ANY_PORT);
48  virtual double get_output_samp_rate(size_t port = ANY_PORT);
49 
50 }; /* class rate_node_ctrl */
51 
52 }} /* namespace uhd::rfnoc */
53 
54 #endif /* INCLUDED_LIBUHD_RATE_NODE_CTRL_BASE_HPP */
virtual double get_output_samp_rate(size_t port=ANY_PORT)
Definition: rate_node_ctrl.hpp:27
Definition: build_info.hpp:13
#define UHD_RFNOC_API
Definition: config.hpp:117
boost::shared_ptr< rate_node_ctrl > sptr
Definition: rate_node_ctrl.hpp:33
virtual double get_input_samp_rate(size_t port=ANY_PORT)
static const double RATE_UNDEFINED
This value is used by rate nodes that don&#39;t actually set a rate themselves.
Definition: rate_node_ctrl.hpp:35
Definition: node_ctrl_base.hpp:37