USRP Hardware Driver and USRP Manual  Version: 4.1.0.4-3
UHD and USRP Manual
discoverable_feature.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 
9 #include <stddef.h>
10 #include <memory>
11 #include <string>
12 
13 namespace uhd { namespace features {
14 
25 {
26 public:
27  using sptr = std::shared_ptr<discoverable_feature>;
28 
30  // feature, you should add an entry to this enum.
31  enum feature_id_t {
38  };
39 
40  virtual ~discoverable_feature() = default;
41 
43  virtual std::string get_feature_name() const = 0;
44 };
45 
46 }} // 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
@ RESERVED0
Definition: discoverable_feature.hpp:32
@ ADC_SELF_CALIBRATION
Definition: discoverable_feature.hpp:35
@ TRIG_IO_MODE
Definition: discoverable_feature.hpp:37
@ FPGA_LOAD_NOTIFICATION
Definition: discoverable_feature.hpp:34
@ RESERVED1
Definition: discoverable_feature.hpp:33
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:27
virtual ~discoverable_feature()=default
virtual std::string get_feature_name() const =0
Returns a human-readable string name of this feature.
Definition: build_info.hpp:12