USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-gaea0e2de
UHD and USRP Manual
scalar_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_SCALAR_NODE_CTRL_BASE_HPP
9 #define INCLUDED_LIBUHD_SCALAR_NODE_CTRL_BASE_HPP
10 
11 #include <uhd/rfnoc/constants.hpp>
13 
14 namespace uhd { namespace rfnoc {
15 
27 class scalar_node_ctrl : virtual public node_ctrl_base
28 {
29 public:
30  /***********************************************************************
31  * Types
32  **********************************************************************/
33  typedef boost::shared_ptr<scalar_node_ctrl> sptr;
35  static const double SCALE_UNDEFINED;
36 
37  /***********************************************************************
38  * Scaling controls
39  **********************************************************************/
47  virtual double get_input_scale_factor(size_t port = ANY_PORT);
48 
56  virtual double get_output_scale_factor(size_t port = ANY_PORT);
57 
58 }; /* class scalar_node_ctrl */
59 
60 }} /* namespace uhd::rfnoc */
61 
62 #endif /* INCLUDED_LIBUHD_SCALAR_NODE_CTRL_BASE_HPP */
virtual double get_output_scale_factor(size_t port=ANY_PORT)
Definition: build_info.hpp:13
#define UHD_RFNOC_API
Definition: config.hpp:117
Definition: scalar_node_ctrl.hpp:27
static const double SCALE_UNDEFINED
Undefined scaling.
Definition: scalar_node_ctrl.hpp:35
boost::shared_ptr< scalar_node_ctrl > sptr
Definition: scalar_node_ctrl.hpp:33
virtual double get_input_scale_factor(size_t port=ANY_PORT)
Definition: node_ctrl_base.hpp:37