USRP Hardware Driver and USRP Manual Version: 4.1.0.1
UHD and USRP Manual
power_reference_iface.hpp
Go to the documentation of this file.
1//
2// Copyright 2020 Ettus Research, a National Instruments Brand
3//
4// SPDX-License-Identifier: GPL-3.0-or-later
5//
6
7#pragma once
8
10#include <uhd/types/ranges.hpp>
12#include <string>
13#include <vector>
14
15namespace uhd { namespace rfnoc { namespace rf_control {
16
23{
24public:
25 virtual ~power_reference_iface() = default;
26
43 virtual bool has_rx_power_reference(const size_t chan = 0) = 0;
44
60 const double power_dbm, const size_t chan = 0) = 0;
61
74 virtual double get_rx_power_reference(const size_t chan = 0) = 0;
75
95 virtual std::vector<std::string> get_rx_power_ref_keys(const size_t chan = 0) = 0;
96
106 virtual meta_range_t get_rx_power_range(const size_t chan) = 0;
107
124 virtual bool has_tx_power_reference(const size_t chan = 0) = 0;
125
141 const double power_dbm, const size_t chan = 0) = 0;
142
155 virtual double get_tx_power_reference(const size_t chan = 0) = 0;
156
176 virtual std::vector<std::string> get_tx_power_ref_keys(const size_t chan = 0) = 0;
177
187 virtual meta_range_t get_tx_power_range(const size_t chan) = 0;
188
189};
190
191}}} // namespace uhd::rfnoc::rf_control
Definition: power_reference_iface.hpp:23
virtual double get_tx_power_reference(const size_t chan=0)=0
virtual bool has_tx_power_reference(const size_t chan=0)=0
virtual void set_rx_power_reference(const double power_dbm, const size_t chan=0)=0
virtual meta_range_t get_rx_power_range(const size_t chan)=0
virtual bool has_rx_power_reference(const size_t chan=0)=0
virtual void set_tx_power_reference(const double power_dbm, const size_t chan=0)=0
virtual meta_range_t get_tx_power_range(const size_t chan)=0
virtual std::vector< std::string > get_tx_power_ref_keys(const size_t chan=0)=0
virtual double get_rx_power_reference(const size_t chan=0)=0
virtual std::vector< std::string > get_rx_power_ref_keys(const size_t chan=0)=0
Definition: build_info.hpp:12
Definition: ranges.hpp:65