USRP Hardware Driver and USRP Manual Version: 4.2.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 <stddef.h>
10#include <memory>
11#include <string>
12
13namespace uhd { namespace features {
14
25{
26public:
27 using sptr = std::shared_ptr<discoverable_feature>;
28
30 // feature, you should add an entry to this enum.
40 };
41
42 virtual ~discoverable_feature() = default;
43
45 virtual std::string get_feature_name() const = 0;
46};
47
48}} // 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
@ GPIO_POWER
Definition: discoverable_feature.hpp:38
@ SPI_GETTER_IFACE
Definition: discoverable_feature.hpp:39
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