| USRP Hardware Driver and Device Manual Version: 4.10.0.0 UHD and USRP Manual |

Loading...
Searching...
No Matches
register_iface_holder.hpp
Go to the documentation of this file.
1//
2// Copyright 2019 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/rfnoc/register_iface.hpp>
10
11 namespace uhd { namespace rfnoc {
12
18 class register_iface_holder
19{
20 public:
21 register_iface_holder(register_iface::sptr reg) : _reg(reg){};
22 virtual ~register_iface_holder() = default;
23
28 register_iface& regs()
29 {
30 return *(_reg.get());
31 };
32
33 protected:
34 void update_reg_iface(register_iface::sptr new_iface = nullptr);
35
36 private:
37 register_iface::sptr _reg;
38};
39
40}} /* 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:78
uhd::rfnoc::register_iface::sptr
std::shared_ptr< register_iface > sptr
Definition register_iface.hpp:80
uhd::rfnoc
Definition actions.hpp:25
uhd
Definition build_info.hpp:12
register_iface.hpp