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