From d25782cf487bbed397a35c330ca0613251fd1b5d Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Mon, 22 Jun 2020 18:19:22 -0500 Subject: uhd: Implement discoverable_features for radio_control radio_control doesn't implement any discoverable_features in particular, but this gives it the API to do so. --- host/include/uhd/rfnoc/radio_control.hpp | 4 +++- host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/include/uhd/rfnoc/radio_control.hpp b/host/include/uhd/rfnoc/radio_control.hpp index 349cca536..67ddbd47d 100644 --- a/host/include/uhd/rfnoc/radio_control.hpp +++ b/host/include/uhd/rfnoc/radio_control.hpp @@ -7,6 +7,7 @@ #pragma once #include +#include #include #include #include @@ -19,7 +20,8 @@ namespace uhd { namespace rfnoc { /*! Parent class for radio block controllers */ -class radio_control : public noc_block_base +class radio_control : public noc_block_base, + public virtual ::uhd::features::discoverable_feature_getter_iface { public: static const std::string ALL_LOS; diff --git a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp index 956280007..5ea1e57f0 100644 --- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp +++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -26,7 +27,8 @@ namespace uhd { namespace rfnoc { * Many of the radio_control API calls have virtual (default) implementations * here, but they can be overridden. */ -class radio_control_impl : public radio_control +class radio_control_impl : public radio_control, + public ::uhd::features::discoverable_feature_registry { public: /************************************************************************** -- cgit v1.2.3