USRP Hardware Driver and USRP Manual  Version: 4.4.0.HEAD-0-g5fac246b
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 */
register_iface.hpp
uhd::rfnoc::register_iface_holder
Definition: register_iface_holder.hpp:18
uhd::rfnoc::register_iface_holder::update_reg_iface
void update_reg_iface(register_iface::sptr new_iface=nullptr)
uhd::rfnoc::register_iface_holder::regs
register_iface & regs()
Definition: register_iface_holder.hpp:28
uhd::rfnoc::register_iface_holder::register_iface_holder
register_iface_holder(register_iface::sptr reg)
Definition: register_iface_holder.hpp:21
uhd
Definition: build_info.hpp:12
uhd::rfnoc::register_iface::sptr
std::shared_ptr< register_iface > sptr
Definition: register_iface.hpp:30
uhd::rfnoc::register_iface_holder::~register_iface_holder
virtual ~register_iface_holder()=default
uhd::rfnoc::register_iface
Definition: register_iface.hpp:27