USRP Hardware Driver and USRP Manual Version: 4.0.0.0-0-unknown
UHD and USRP Manual
 
Loading...
Searching...
No Matches
fir_filter_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#ifndef INCLUDED_LIBUHD_FIR_FILTER_BLOCK_CONTROL_HPP
8#define INCLUDED_LIBUHD_FIR_FILTER_BLOCK_CONTROL_HPP
9
10#include <uhd/config.hpp>
12#include <uhd/types/ranges.hpp>
13
14namespace uhd { namespace rfnoc {
15
25{
26public:
28
29 // Block registers
30 static const uint32_t REG_FIR_MAX_NUM_COEFFS_ADDR;
31 static const uint32_t REG_FIR_LOAD_COEFF_ADDR;
32 static const uint32_t REG_FIR_LOAD_COEFF_LAST_ADDR;
33
41 virtual size_t get_max_num_coefficients() const = 0;
42
56 virtual void set_coefficients(const std::vector<int16_t>& coeffs) = 0;
57
64 virtual std::vector<int16_t> get_coefficients() const = 0;
65};
66
67}} // namespace uhd::rfnoc
68
69#endif /* INCLUDED_LIBUHD_FIR_FILTER_BLOCK_CONTROL_HPP */
Definition fir_filter_block_control.hpp:25
Definition noc_block_base.hpp:42
#define UHD_API
Definition config.h:67
STL namespace.
Definition build_info.hpp:12
#define RFNOC_DECLARE_BLOCK(CLASS_NAME)
Definition noc_block_base.hpp:21