Loading...
Searching...
No Matches
internal_sync_iface.hpp
Go to the documentation of this file.
//
// Copyright 2023 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/features/discoverable_feature.hpp>
namespace uhd { namespace features {
class UHD_API internal_sync_iface : public discoverable_feature
{
public:
using sptr = std::shared_ptr<internal_sync_iface>;
static discoverable_feature::feature_id_t get_feature_id()
{
return discoverable_feature::INTERNAL_SYNC;
}
std::string get_feature_name() const
{
return "Internal Sync";
}
virtual ~internal_sync_iface() = default;
virtual void enable_sync_clk() = 0;
virtual void disable_sync_clk() = 0;
};
}} // 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::INTERNAL_SYNC
@ INTERNAL_SYNC
Definition discoverable_feature.hpp:41
uhd::features::internal_sync_iface
Definition internal_sync_iface.hpp:17
uhd::features::internal_sync_iface::sptr
std::shared_ptr< internal_sync_iface > sptr
Definition internal_sync_iface.hpp:19
uhd::features::internal_sync_iface::get_feature_id
static discoverable_feature::feature_id_t get_feature_id()
Definition internal_sync_iface.hpp:21
uhd::features::internal_sync_iface::enable_sync_clk
virtual void enable_sync_clk()=0
uhd::features::internal_sync_iface::~internal_sync_iface
virtual ~internal_sync_iface()=default
uhd::features::internal_sync_iface::disable_sync_clk
virtual void disable_sync_clk()=0
uhd::features::internal_sync_iface::get_feature_name
std::string get_feature_name() const
Returns a human-readable string name of this feature.
Definition internal_sync_iface.hpp:26
UHD_API
#define UHD_API
Definition config.h:87
discoverable_feature.hpp
uhd::features
Definition adc_self_calibration_iface.hpp:16
uhd
Definition build_info.hpp:12