| USRP Hardware Driver and Device Manual Version: 4.10.0.0 UHD and USRP Manual |

Loading...
Searching...
No Matches
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
25 class UHD_API discoverable_feature
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 {
33 RESERVED0,
34 RESERVED1,
35 FPGA_LOAD_NOTIFICATION,
36 ADC_SELF_CALIBRATION,
37 REF_CLK_CALIBRATION,
38 TRIG_IO_MODE,
39 GPIO_POWER,
40 SPI_GETTER_IFACE,
41 INTERNAL_SYNC,
42 GPS,
43 TX_COMPLEX_GAIN,
44 RX_COMPLEX_GAIN
45 };
46
47 virtual ~discoverable_feature() = default;
48
50 virtual std::string get_feature_name() const = 0;
51};
52
53}} // namespace uhd::features
uhd::features::discoverable_feature
Definition discoverable_feature.hpp:26
uhd::features::discoverable_feature::feature_id_t
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition discoverable_feature.hpp:32
uhd::features::discoverable_feature::REF_CLK_CALIBRATION
@ REF_CLK_CALIBRATION
Definition discoverable_feature.hpp:37
uhd::features::discoverable_feature::GPS
@ GPS
Definition discoverable_feature.hpp:42
uhd::features::discoverable_feature::RESERVED0
@ RESERVED0
Definition discoverable_feature.hpp:33
uhd::features::discoverable_feature::RX_COMPLEX_GAIN
@ RX_COMPLEX_GAIN
Definition discoverable_feature.hpp:44
uhd::features::discoverable_feature::INTERNAL_SYNC
@ INTERNAL_SYNC
Definition discoverable_feature.hpp:41
uhd::features::discoverable_feature::ADC_SELF_CALIBRATION
@ ADC_SELF_CALIBRATION
Definition discoverable_feature.hpp:36
uhd::features::discoverable_feature::TRIG_IO_MODE
@ TRIG_IO_MODE
Definition discoverable_feature.hpp:38
uhd::features::discoverable_feature::FPGA_LOAD_NOTIFICATION
@ FPGA_LOAD_NOTIFICATION
Definition discoverable_feature.hpp:35
uhd::features::discoverable_feature::TX_COMPLEX_GAIN
@ TX_COMPLEX_GAIN
Definition discoverable_feature.hpp:43
uhd::features::discoverable_feature::RESERVED1
@ RESERVED1
Definition discoverable_feature.hpp:34
uhd::features::discoverable_feature::GPIO_POWER
@ GPIO_POWER
Definition discoverable_feature.hpp:39
uhd::features::discoverable_feature::SPI_GETTER_IFACE
@ SPI_GETTER_IFACE
Definition discoverable_feature.hpp:40
uhd::features::discoverable_feature::sptr
std::shared_ptr< discoverable_feature > sptr
Definition discoverable_feature.hpp:28
uhd::features::discoverable_feature::~discoverable_feature
virtual ~discoverable_feature()=default
uhd::features::discoverable_feature::get_feature_name
virtual std::string get_feature_name() const =0
Returns a human-readable string name of this feature.
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
uhd::features
Definition adc_self_calibration_iface.hpp:16
uhd
Definition build_info.hpp:12