USRP Hardware Driver and USRP Manual Version: 4.1.0.1
UHD and USRP Manual
window_block_control.hpp
Go to the documentation of this file.
1//
2// Copyright 2020 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 <uhd/types/ranges.hpp>
12
13namespace uhd { namespace rfnoc {
14
29{
30public:
32
33 // Block registers
34 static const uint32_t REG_WINDOW_BLOCK_SIZE;
35
36 static const uint32_t REG_WINDOW_LEN_OFFSET;
37 static const uint32_t REG_WINDOW_MAX_LEN_OFFSET;
38 static const uint32_t REG_WINDOW_LOAD_COEFF_OFFSET;
39 static const uint32_t REG_WINDOW_LOAD_COEFF_LAST_OFFSET;
40
49 virtual size_t get_max_num_coefficients(const size_t chan) const = 0;
50
60 virtual void set_coefficients(
61 const std::vector<int16_t>& coeffs, const size_t chan) = 0;
62
70 virtual std::vector<int16_t> get_coefficients(const size_t chan) const = 0;
71};
72
73}} // namespace uhd::rfnoc
74
Definition: noc_block_base.hpp:42
Definition: window_block_control.hpp:29
#define UHD_API
Definition: config.h:70
STL namespace.
Definition: build_info.hpp:12
#define RFNOC_DECLARE_BLOCK(CLASS_NAME)
Definition: noc_block_base.hpp:21