| USRP Hardware Driver and Device Manual Version: 4.10.0.0 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
11 namespace uhd { namespace features {
12
16 class UHD_API internal_sync_iface : public discoverable_feature
17{
18 public:
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
45
46
47 namespace uhd { namespace usrp {
53 class internal_sync_actor
54{
55 public:
56 using sptr = std::shared_ptr<internal_sync_actor>;
57
58 virtual ~internal_sync_actor() = default;
62 virtual void set_internal_sync_clk(const bool enable) = 0;
63};
64}} // namespace uhd::usrp
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::usrp::internal_sync_actor
Definition internal_sync_iface.hpp:54
uhd::usrp::internal_sync_actor::sptr
std::shared_ptr< internal_sync_actor > sptr
Definition internal_sync_iface.hpp:56
uhd::usrp::internal_sync_actor::~internal_sync_actor
virtual ~internal_sync_actor()=default
uhd::usrp::internal_sync_actor::set_internal_sync_clk
virtual void set_internal_sync_clk(const bool enable)=0
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