| USRP Hardware Driver and USRP Manual Version: 4.9.0.makepkg-0-g9ec1f582 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: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