USRP Hardware Driver and USRP Manual  Version: 20250528.0.gitc354764c.el9
UHD and USRP Manual
ref_clk_calibration_iface.hpp
Go to the documentation of this file.
1 #include <cstdint>
2 //
3 // Copyright 2020 Ettus Research, a National Instruments Brand
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <uhd/config.hpp>
12 #include <cstdint>
13 #include <memory>
14 
15 namespace uhd { namespace features {
16 
23 {
24 public:
25  using sptr = std::shared_ptr<ref_clk_calibration_iface>;
26 
28  {
30  }
31 
32  std::string get_feature_name() const
33  {
34  return "Ref Clk Calibration";
35  }
36 
37  virtual ~ref_clk_calibration_iface() = default;
38 
40  virtual void set_ref_clk_tuning_word(uint32_t tuning_word) = 0;
42  virtual uint32_t get_ref_clk_tuning_word() = 0;
44  virtual void store_ref_clk_tuning_word(uint32_t tuning_word) = 0;
45 };
46 
47 }} // namespace uhd::features
Definition: discoverable_feature.hpp:26
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition: discoverable_feature.hpp:32
@ REF_CLK_CALIBRATION
Definition: discoverable_feature.hpp:37
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:28
Definition: ref_clk_calibration_iface.hpp:23
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:32
static discoverable_feature::feature_id_t get_feature_id()
Definition: ref_clk_calibration_iface.hpp:27
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.
#define UHD_API
Definition: config.h:87
Definition: build_info.hpp:12