USRP Hardware Driver and USRP Manual: lc_block_control.hpp Source File

| USRP Hardware Driver and USRP Manual Version: 4.9.0.makepkg-0-g9ec1f582 UHD and USRP Manual |

Loading...
Searching...
No Matches
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>
10#include <uhd/rfnoc/noc_block_base.hpp>
11#include <vector>
12
13namespace uhd { namespace rfnoc {
14
22 class UHD_API lc_block_control : public noc_block_base
23{
24public:
25 RFNOC_DECLARE_BLOCK(lc_block_control)
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
uhd::rfnoc::lc_block_control
Definition lc_block_control.hpp:23
uhd::rfnoc::lc_block_control::REG_FEATURE_ID
static const uint32_t REG_FEATURE_ID
Definition lc_block_control.hpp:29
uhd::rfnoc::lc_block_control::REG_COMPAT_NUM
static const uint32_t REG_COMPAT_NUM
Definition lc_block_control.hpp:28
uhd::rfnoc::lc_block_control::REG_FEATURE_ENABLE_RB
static const uint32_t REG_FEATURE_ENABLE_RB
Definition lc_block_control.hpp:31
uhd::rfnoc::lc_block_control::load_key
virtual bool load_key(const std::string &key)=0
uhd::rfnoc::lc_block_control::MINOR_COMPAT
static const uint16_t MINOR_COMPAT
Definition lc_block_control.hpp:35
uhd::rfnoc::lc_block_control::get_feature_ids
virtual std::vector< uint32_t > get_feature_ids()=0
uhd::rfnoc::lc_block_control::REG_USER_KEY
static const uint32_t REG_USER_KEY
Definition lc_block_control.hpp:30
uhd::rfnoc::lc_block_control::MAJOR_COMPAT
static const uint16_t MAJOR_COMPAT
Definition lc_block_control.hpp:34
uhd::rfnoc::lc_block_control::REG_FEATURE_LIST_RB
static const uint32_t REG_FEATURE_LIST_RB
Definition lc_block_control.hpp:32
uhd::rfnoc::noc_block_base::noc_block_base
noc_block_base(make_args_ptr make_args)
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
std
STL namespace.
uhd::rfnoc
Definition actions.hpp:24
uhd
Definition build_info.hpp:12
noc_block_base.hpp
RFNOC_DECLARE_BLOCK
#define RFNOC_DECLARE_BLOCK(CLASS_NAME)
Definition noc_block_base.hpp:22