USRP Hardware Driver and USRP Manual  Version: 3.12.0.0-0-unknown
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 
12 #include <uhd/rfnoc/constants.hpp>
13 
14 namespace uhd {
15  namespace rfnoc {
16 
28 class rate_node_ctrl : virtual public node_ctrl_base
29 {
30 public:
31  /***********************************************************************
32  * Types
33  **********************************************************************/
34  typedef boost::shared_ptr<rate_node_ctrl> sptr;
36  static const double RATE_UNDEFINED;
37 
38  /***********************************************************************
39  * Rate controls
40  **********************************************************************/
48  virtual double get_input_samp_rate(size_t port=ANY_PORT);
49  virtual double get_output_samp_rate(size_t port=ANY_PORT);
50 
51 }; /* class rate_node_ctrl */
52 
53 }} /* namespace uhd::rfnoc */
54 
55 #endif /* INCLUDED_LIBUHD_RATE_NODE_CTRL_BASE_HPP */
56 // vim: sw=4 et:
57 
virtual double get_output_samp_rate(size_t port=ANY_PORT)
Definition: rate_node_ctrl.hpp:28
Definition: build_info.hpp:14
#define UHD_RFNOC_API
Definition: config.hpp:93
boost::shared_ptr< rate_node_ctrl > sptr
Definition: rate_node_ctrl.hpp:34
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:36
Definition: node_ctrl_base.hpp:31