USRP Hardware Driver and USRP Manual  Version: 3.12.0.0-0-unknown
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 
12 #include <uhd/rfnoc/constants.hpp>
13 
14 namespace uhd {
15  namespace rfnoc {
16 
28 class scalar_node_ctrl : virtual public node_ctrl_base
29 {
30 public:
31  /***********************************************************************
32  * Types
33  **********************************************************************/
34  typedef boost::shared_ptr<scalar_node_ctrl> sptr;
36  static const double SCALE_UNDEFINED;
37 
38  /***********************************************************************
39  * Scaling controls
40  **********************************************************************/
48  virtual double get_input_scale_factor(size_t port=ANY_PORT);
49 
57  virtual double get_output_scale_factor(size_t port=ANY_PORT);
58 
59 }; /* class scalar_node_ctrl */
60 
61 }} /* namespace uhd::rfnoc */
62 
63 #endif /* INCLUDED_LIBUHD_SCALAR_NODE_CTRL_BASE_HPP */
64 // vim: sw=4 et:
virtual double get_output_scale_factor(size_t port=ANY_PORT)
Definition: build_info.hpp:14
#define UHD_RFNOC_API
Definition: config.hpp:93
Definition: scalar_node_ctrl.hpp:28
static const double SCALE_UNDEFINED
Undefined scaling.
Definition: scalar_node_ctrl.hpp:36
boost::shared_ptr< scalar_node_ctrl > sptr
Definition: scalar_node_ctrl.hpp:34
virtual double get_input_scale_factor(size_t port=ANY_PORT)
Definition: node_ctrl_base.hpp:31