USRP Hardware Driver and USRP Manual  Version: 003.010.000.HEAD-0-g6e1ac3fc
UHD and USRP Manual
rate_node_ctrl.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef INCLUDED_LIBUHD_RATE_NODE_CTRL_BASE_HPP
19 #define INCLUDED_LIBUHD_RATE_NODE_CTRL_BASE_HPP
20 
22 #include <uhd/rfnoc/constants.hpp>
23 
24 namespace uhd {
25  namespace rfnoc {
26 
38 class rate_node_ctrl : virtual public node_ctrl_base
39 {
40 public:
41  /***********************************************************************
42  * Types
43  **********************************************************************/
44  typedef boost::shared_ptr<rate_node_ctrl> sptr;
46  static const double RATE_UNDEFINED;
47 
48  /***********************************************************************
49  * Rate controls
50  **********************************************************************/
58  virtual double get_input_samp_rate(size_t port=ANY_PORT);
59  virtual double get_output_samp_rate(size_t port=ANY_PORT);
60 
61 }; /* class rate_node_ctrl */
62 
63 }} /* namespace uhd::rfnoc */
64 
65 #endif /* INCLUDED_LIBUHD_RATE_NODE_CTRL_BASE_HPP */
66 // vim: sw=4 et:
67 
virtual double get_output_samp_rate(size_t port=ANY_PORT)
Definition: rate_node_ctrl.hpp:38
Definition: build_info.hpp:25
#define UHD_RFNOC_API
Definition: config.hpp:103
boost::shared_ptr< rate_node_ctrl > sptr
Definition: rate_node_ctrl.hpp:44
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:46
Definition: node_ctrl_base.hpp:41