USRP Hardware Driver and USRP Manual  Version: 4.6.0.0
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 <uhd/config.hpp>
10 #include <stddef.h>
11 #include <memory>
12 #include <string>
13 
14 namespace uhd { namespace features {
15 
26 {
27 public:
28  using sptr = std::shared_ptr<discoverable_feature>;
29 
31  // feature, you should add an entry to this enum.
32  enum feature_id_t {
41  INTERNAL_SYNC
42  };
43 
44  virtual ~discoverable_feature() = default;
45 
47  virtual std::string get_feature_name() const = 0;
48 };
49 
50 }} // namespace uhd::features
Definition: discoverable_feature.hpp:39
Definition: discoverable_feature.hpp:40
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition: discoverable_feature.hpp:32
Definition: build_info.hpp:12
Definition: discoverable_feature.hpp:37
Definition: discoverable_feature.hpp:25
Definition: discoverable_feature.hpp:33
#define UHD_API
Definition: config.h:87
Definition: discoverable_feature.hpp:38
Definition: discoverable_feature.hpp:34
Definition: discoverable_feature.hpp:36
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:28