Loading...
Searching...
No Matches
adc_self_calibration_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/config.hpp>
#include <uhd/features/discoverable_feature.hpp>
#include <uhd/types/device_addr.hpp>
#include <map>
#include <memory>
#include <vector>
namespace uhd { namespace features {
class UHD_API adc_self_calibration_iface : public discoverable_feature
{
public:
using sptr = std::shared_ptr<adc_self_calibration_iface>;
static discoverable_feature::feature_id_t get_feature_id()
{
return discoverable_feature::ADC_SELF_CALIBRATION;
}
std::string get_feature_name() const
{
return "ADC Self Calibration";
}
virtual ~adc_self_calibration_iface() = default;
// reconfigure both the specified RX channel as well as the matching
// TX channel for the operation.
//
// If you would like to calibrate the ADCs without interrupting the
// signal chain, use the rx_codec/<n>/calibration_frozen property on the
// motherboard's property tree.
virtual void run(const size_t chan) = 0;
// parameters.
virtual void run(const size_t chan, const uhd::device_addr_t params) = 0;
};
}} // namespace uhd::features
uhd::device_addr_t
Definition device_addr.hpp:39
uhd::features::adc_self_calibration_iface
Definition adc_self_calibration_iface.hpp:23
uhd::features::adc_self_calibration_iface::get_feature_id
static discoverable_feature::feature_id_t get_feature_id()
Definition adc_self_calibration_iface.hpp:27
uhd::features::adc_self_calibration_iface::run
virtual void run(const size_t chan, const uhd::device_addr_t params)=0
Runs calibration on the specified channel but takes custom calibration.
uhd::features::adc_self_calibration_iface::get_feature_name
std::string get_feature_name() const
Returns a human-readable string name of this feature.
Definition adc_self_calibration_iface.hpp:32
uhd::features::adc_self_calibration_iface::~adc_self_calibration_iface
virtual ~adc_self_calibration_iface()=default
uhd::features::adc_self_calibration_iface::sptr
std::shared_ptr< adc_self_calibration_iface > sptr
Definition adc_self_calibration_iface.hpp:25
uhd::features::adc_self_calibration_iface::run
virtual void run(const size_t chan)=0
Runs calibration on the specified channel. This will momentarily.
uhd::features::discoverable_feature
Definition discoverable_feature.hpp:26
uhd::features::discoverable_feature::feature_id_t
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition discoverable_feature.hpp:32
uhd::features::discoverable_feature::ADC_SELF_CALIBRATION
@ ADC_SELF_CALIBRATION
Definition discoverable_feature.hpp:36
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
device_addr.hpp
discoverable_feature.hpp
uhd::features
Definition adc_self_calibration_iface.hpp:16
uhd
Definition build_info.hpp:12