USRP Hardware Driver and USRP Manual Version: 3.15.0.0-MacPorts-Release
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
13
14namespace uhd { namespace rfnoc {
15
27class rate_node_ctrl : virtual public node_ctrl_base
28{
29public:
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 */
Definition: node_ctrl_base.hpp:39
Definition: rate_node_ctrl.hpp:28
static const double RATE_UNDEFINED
This value is used by rate nodes that don't actually set a rate themselves.
Definition: rate_node_ctrl.hpp:35
boost::shared_ptr< rate_node_ctrl > sptr
Definition: rate_node_ctrl.hpp:33
virtual double get_input_samp_rate(size_t port=ANY_PORT)
virtual double get_output_samp_rate(size_t port=ANY_PORT)
#define UHD_RFNOC_API
Definition: config.hpp:117
Definition: build_info.hpp:13