USRP Hardware Driver and USRP Manual  Version: 003.010.000.HEAD-0-g6e1ac3fc
UHD and USRP Manual
scalar_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_SCALAR_NODE_CTRL_BASE_HPP
19 #define INCLUDED_LIBUHD_SCALAR_NODE_CTRL_BASE_HPP
20 
22 #include <uhd/rfnoc/constants.hpp>
23 
24 namespace uhd {
25  namespace rfnoc {
26 
38 class scalar_node_ctrl : virtual public node_ctrl_base
39 {
40 public:
41  /***********************************************************************
42  * Types
43  **********************************************************************/
44  typedef boost::shared_ptr<scalar_node_ctrl> sptr;
46  static const double SCALE_UNDEFINED;
47 
48  /***********************************************************************
49  * Scaling controls
50  **********************************************************************/
58  virtual double get_input_scale_factor(size_t port=ANY_PORT);
59 
67  virtual double get_output_scale_factor(size_t port=ANY_PORT);
68 
69 }; /* class scalar_node_ctrl */
70 
71 }} /* namespace uhd::rfnoc */
72 
73 #endif /* INCLUDED_LIBUHD_SCALAR_NODE_CTRL_BASE_HPP */
74 // vim: sw=4 et:
virtual double get_output_scale_factor(size_t port=ANY_PORT)
Definition: build_info.hpp:25
#define UHD_RFNOC_API
Definition: config.hpp:103
Definition: scalar_node_ctrl.hpp:38
static const double SCALE_UNDEFINED
Undefined scaling.
Definition: scalar_node_ctrl.hpp:46
boost::shared_ptr< scalar_node_ctrl > sptr
Definition: scalar_node_ctrl.hpp:44
virtual double get_input_scale_factor(size_t port=ANY_PORT)
Definition: node_ctrl_base.hpp:41