USRP Hardware Driver and USRP Manual: internal_sync_iface.hpp Source File

| USRP Hardware Driver and USRP Manual Version: 4.9.0.makepkg-0-g9ec1f582 UHD and USRP Manual |

Loading...
Searching...
No Matches
internal_sync_iface.hpp
Go to the documentation of this file.
1//
2// Copyright 2023 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/features/discoverable_feature.hpp>
10
11namespace uhd { namespace features {
12
16 class UHD_API internal_sync_iface : public discoverable_feature
17{
18public:
19 using sptr = std::shared_ptr<internal_sync_iface>;
20
21 static discoverable_feature::feature_id_t get_feature_id()
22 {
23 return discoverable_feature::INTERNAL_SYNC;
24 }
25
26 std::string get_feature_name() const
27 {
28 return "Internal Sync";
29 }
30
31 virtual ~internal_sync_iface() = default;
32
37 virtual void enable_sync_clk() = 0;
38
42 virtual void disable_sync_clk() = 0;
43};
44}} // 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