USRP Hardware Driver and USRP Manual  Version: 4.7.0.0
UHD and USRP Manual
lc_block_control.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2023 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/config.hpp>
11 #include <vector>
12 
13 namespace uhd { namespace rfnoc {
14 
23 {
24 public:
26 
27  // Block registers
28  static const uint32_t REG_COMPAT_NUM;
29  static const uint32_t REG_FEATURE_ID;
30  static const uint32_t REG_USER_KEY;
31  static const uint32_t REG_FEATURE_ENABLE_RB;
32  static const uint32_t REG_FEATURE_LIST_RB;
33 
34  static const uint16_t MAJOR_COMPAT;
35  static const uint16_t MINOR_COMPAT;
36 
46  virtual bool load_key(const std::string& key) = 0;
47 
50  virtual std::vector<uint32_t> get_feature_ids() = 0;
51 };
52 
53 }} // namespace uhd::rfnoc
STL namespace.
#define RFNOC_DECLARE_BLOCK(CLASS_NAME)
Definition: noc_block_base.hpp:22
Definition: build_info.hpp:12
Definition: noc_block_base.hpp:42
#define UHD_API
Definition: config.h:87
Definition: lc_block_control.hpp:22