USRP Hardware Driver and USRP Manual Version: 4.1.0.1
UHD and USRP Manual
ref_clk_calibration_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 <memory>
11
12namespace uhd { namespace features {
13
20{
21public:
22 using sptr = std::shared_ptr<ref_clk_calibration_iface>;
23
25 {
27 }
28
29 std::string get_feature_name() const
30 {
31 return "Ref Clk Calibration";
32 }
33
34 virtual ~ref_clk_calibration_iface() = default;
35
37 virtual void set_ref_clk_tuning_word(uint32_t tuning_word) = 0;
39 virtual uint32_t get_ref_clk_tuning_word() = 0;
41 virtual void store_ref_clk_tuning_word(uint32_t tuning_word) = 0;
42};
43
44}} // namespace uhd::features
Definition: discoverable_feature.hpp:25
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition: discoverable_feature.hpp:31
@ REF_CLK_CALIBRATION
Definition: discoverable_feature.hpp:36
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:27
Definition: ref_clk_calibration_iface.hpp:20
virtual void store_ref_clk_tuning_word(uint32_t tuning_word)=0
Writes the reference clock tuning word to the clocking board EEPROM.
std::string get_feature_name() const
Returns a human-readable string name of this feature.
Definition: ref_clk_calibration_iface.hpp:29
static discoverable_feature::feature_id_t get_feature_id()
Definition: ref_clk_calibration_iface.hpp:24
virtual void set_ref_clk_tuning_word(uint32_t tuning_word)=0
Set the tuning word to be configured on the internal reference clock DAC.
virtual uint32_t get_ref_clk_tuning_word()=0
Returns the tuning word configured on the internal reference clock DAC.
Definition: build_info.hpp:12