USRP Hardware Driver and USRP Manual Version: 4.2.0.0
UHD and USRP Manual
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
10
11namespace uhd { namespace rfnoc {
12
19{
20public:
22 virtual ~register_iface_holder() = default;
23
29 {
30 return *(_reg.get());
31 };
32
33protected:
34 void update_reg_iface(register_iface::sptr new_iface = nullptr);
35
36private:
38};
39
40}} /* namespace uhd::rfnoc */
Definition: register_iface_holder.hpp:19
virtual ~register_iface_holder()=default
register_iface_holder(register_iface::sptr reg)
Definition: register_iface_holder.hpp:21
register_iface & regs()
Definition: register_iface_holder.hpp:28
void update_reg_iface(register_iface::sptr new_iface=nullptr)
Definition: register_iface.hpp:28
std::shared_ptr< register_iface > sptr
Definition: register_iface.hpp:30
Definition: build_info.hpp:12