Loading...
Searching...
No Matches
register_iface_holder.hpp
Go to the documentation of this file.
//
// Copyright 2019 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/rfnoc/register_iface.hpp>
namespace uhd { namespace rfnoc {
class register_iface_holder
{
public:
register_iface_holder(register_iface::sptr reg) : _reg(reg){};
virtual ~register_iface_holder() = default;
register_iface& regs()
{
return *(_reg.get());
};
protected:
void update_reg_iface(register_iface::sptr new_iface = nullptr);
private:
register_iface::sptr _reg;
};
}} /* namespace uhd::rfnoc */
uhd::rfnoc::register_iface_holder::~register_iface_holder
virtual ~register_iface_holder()=default
uhd::rfnoc::register_iface_holder::register_iface_holder
register_iface_holder(register_iface::sptr reg)
Definition register_iface_holder.hpp:21
uhd::rfnoc::register_iface_holder::regs
register_iface & regs()
Definition register_iface_holder.hpp:28
uhd::rfnoc::register_iface_holder::update_reg_iface
void update_reg_iface(register_iface::sptr new_iface=nullptr)
uhd::rfnoc::register_iface
Definition register_iface.hpp:39
uhd::rfnoc::register_iface::sptr
std::shared_ptr< register_iface > sptr
Definition register_iface.hpp:41
uhd::rfnoc
Definition actions.hpp:24
uhd
Definition build_info.hpp:12
register_iface.hpp