uhd/host/lib/usrp/x400/x400_internal_sync.hpp
Martin Anderseck 9dea8286d0 host: Make int sync feature independent of FBX
Previously, only FBX could use the internal sync feature as there was a
hard connection to the FBX Ctrl class in it. This makes it independent
and daughterboard drivers now only need to implement the
internal_sync_actor class.
2026-03-06 08:32:32 +01:00

39 lines
882 B
C++

//
// Copyright 2023 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/features/internal_sync_iface.hpp>
namespace uhd { namespace features {
/*!
* This class should serve as starting point for using the internal sync. Currently it
* only supports switching on and off the 5 MHz Sync Clock. So it has to be extended once
* more functionality should be required.
*/
class internal_sync : public internal_sync_iface
{
public:
internal_sync(uhd::usrp::internal_sync_actor::sptr db_ctrl);
/*
* Enables the sync clock for this daughterboard.
*/
void enable_sync_clk() override;
/*
* Disables the sync clock for this daughterboard.
*/
void disable_sync_clk() override;
private:
uhd::usrp::internal_sync_actor::sptr _db_ctrl;
};
}} // namespace uhd::features