USRP Hardware Driver and USRP Manual Version: 4.8.0.0-0-unknown
UHD and USRP Manual
Loading...
Searching...
No Matches
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
31{
32public:
34
35 // Block registers
36 static const uint32_t REG_WINDOW_BLOCK_SIZE;
37
38 static const uint32_t REG_WINDOW_LEN_OFFSET;
39 static const uint32_t REG_WINDOW_MAX_LEN_OFFSET;
40 static const uint32_t REG_WINDOW_LOAD_COEFF_OFFSET;
41 static const uint32_t REG_WINDOW_LOAD_COEFF_LAST_OFFSET;
42
51 virtual size_t get_max_num_coefficients(const size_t chan) const = 0;
52
62 virtual void set_coefficients(
63 const std::vector<int16_t>& coeffs, const size_t chan) = 0;
64
72 virtual std::vector<int16_t> get_coefficients(const size_t chan) const = 0;
73};
74
75}} // namespace uhd::rfnoc
noc_block_base(make_args_ptr make_args)
Definition window_block_control.hpp:31
virtual std::vector< int16_t > get_coefficients(const size_t chan) const =0
virtual void set_coefficients(const std::vector< int16_t > &coeffs, const size_t chan)=0
static const uint32_t REG_WINDOW_LOAD_COEFF_LAST_OFFSET
Definition window_block_control.hpp:41
static const uint32_t REG_WINDOW_LOAD_COEFF_OFFSET
Definition window_block_control.hpp:40
virtual size_t get_max_num_coefficients(const size_t chan) const =0
static const uint32_t REG_WINDOW_LEN_OFFSET
Definition window_block_control.hpp:38
static const uint32_t REG_WINDOW_MAX_LEN_OFFSET
Definition window_block_control.hpp:39
static const uint32_t REG_WINDOW_BLOCK_SIZE
Definition window_block_control.hpp:36
#define UHD_API
Definition config.h:87
STL namespace.
Definition actions.hpp:24
Definition build_info.hpp:12
#define RFNOC_DECLARE_BLOCK(CLASS_NAME)
Definition noc_block_base.hpp:22