USRP Hardware Driver and Device Manual  Version: 4.11.0.0-0-g0d7ed3b1
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 
33  enum feature_id_t {
43  GPS,
45  RX_COMPLEX_GAIN
46  };
47 
48  virtual ~discoverable_feature() = default;
49 
51  virtual std::string get_feature_name() const = 0;
52 };
53 
54 }} // namespace uhd::features
Definition: discoverable_feature.hpp:26
feature_id_t
Definition: discoverable_feature.hpp:33
@ REF_CLK_CALIBRATION
Definition: discoverable_feature.hpp:38
@ GPS
Definition: discoverable_feature.hpp:43
@ RESERVED0
Definition: discoverable_feature.hpp:34
@ INTERNAL_SYNC
Definition: discoverable_feature.hpp:42
@ ADC_SELF_CALIBRATION
Definition: discoverable_feature.hpp:37
@ TRIG_IO_MODE
Definition: discoverable_feature.hpp:39
@ FPGA_LOAD_NOTIFICATION
Definition: discoverable_feature.hpp:36
@ TX_COMPLEX_GAIN
Definition: discoverable_feature.hpp:44
@ RESERVED1
Definition: discoverable_feature.hpp:35
@ GPIO_POWER
Definition: discoverable_feature.hpp:40
@ SPI_GETTER_IFACE
Definition: discoverable_feature.hpp:41
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:28
virtual ~discoverable_feature()=default
virtual std::string get_feature_name() const =0
Returns a human-readable string name of this feature.
#define UHD_API
Definition: config.h:87
Definition: build_info.hpp:12