Loading...
Searching...
No Matches
power_reference_iface.hpp
Go to the documentation of this file.
//
// Copyright 2020 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/types/direction.hpp>
#include <uhd/types/ranges.hpp>
#include <uhd/utils/assert_has.hpp>
#include <string>
#include <vector>
namespace uhd { namespace rfnoc { namespace rf_control {
class power_reference_iface
{
public:
using sptr = std::shared_ptr<power_reference_iface>;
virtual ~power_reference_iface() = default;
virtual bool has_rx_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 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;
virtual meta_range_t get_rx_power_range(const size_t chan) = 0;
virtual bool has_tx_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 double get_tx_power_reference(const size_t chan = 0) = 0;
virtual std::vector<std::string> get_tx_power_ref_keys(const size_t chan = 0) = 0;
virtual meta_range_t get_tx_power_range(const size_t chan) = 0;
};
}}} // namespace uhd::rfnoc::rf_control
assert_has.hpp
uhd::rfnoc::rf_control::power_reference_iface
Definition power_reference_iface.hpp:23
uhd::rfnoc::rf_control::power_reference_iface::get_tx_power_reference
virtual double get_tx_power_reference(const size_t chan=0)=0
uhd::rfnoc::rf_control::power_reference_iface::has_tx_power_reference
virtual bool has_tx_power_reference(const size_t chan=0)=0
uhd::rfnoc::rf_control::power_reference_iface::set_rx_power_reference
virtual void set_rx_power_reference(const double power_dbm, const size_t chan=0)=0
uhd::rfnoc::rf_control::power_reference_iface::get_rx_power_range
virtual meta_range_t get_rx_power_range(const size_t chan)=0
uhd::rfnoc::rf_control::power_reference_iface::~power_reference_iface
virtual ~power_reference_iface()=default
uhd::rfnoc::rf_control::power_reference_iface::has_rx_power_reference
virtual bool has_rx_power_reference(const size_t chan=0)=0
uhd::rfnoc::rf_control::power_reference_iface::set_tx_power_reference
virtual void set_tx_power_reference(const double power_dbm, const size_t chan=0)=0
uhd::rfnoc::rf_control::power_reference_iface::get_tx_power_range
virtual meta_range_t get_tx_power_range(const size_t chan)=0
uhd::rfnoc::rf_control::power_reference_iface::sptr
std::shared_ptr< power_reference_iface > sptr
Definition power_reference_iface.hpp:25
uhd::rfnoc::rf_control::power_reference_iface::get_tx_power_ref_keys
virtual std::vector< std::string > get_tx_power_ref_keys(const size_t chan=0)=0
uhd::rfnoc::rf_control::power_reference_iface::get_rx_power_reference
virtual double get_rx_power_reference(const size_t chan=0)=0
uhd::rfnoc::rf_control::power_reference_iface::get_rx_power_ref_keys
virtual std::vector< std::string > get_rx_power_ref_keys(const size_t chan=0)=0
direction.hpp
uhd::rfnoc::rf_control
Definition antenna_iface.hpp:17
uhd::rfnoc
Definition actions.hpp:24
uhd
Definition build_info.hpp:12
ranges.hpp
uhd::meta_range_t
Definition ranges.hpp:66