USRP Hardware Driver and USRP Manual  Version: 4.6.0.0-7-gece7c4811
UHD and USRP Manual
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 #pragma once
8 
9 #include <uhd/config.hpp>
11 #include <uhd/types/ranges.hpp>
12 
13 namespace uhd { namespace rfnoc {
14 
26 {
27 public:
29 
30  // Block registers
31  static const uint32_t REG_FIR_BLOCK_SIZE;
32  static const uint32_t REG_FIR_MAX_NUM_COEFFS_ADDR;
33  static const uint32_t REG_FIR_LOAD_COEFF_ADDR;
34  static const uint32_t REG_FIR_LOAD_COEFF_LAST_ADDR;
35 
43  virtual size_t get_max_num_coefficients(const size_t chan = 0) const = 0;
44 
59  virtual void set_coefficients(
60  const std::vector<int16_t>& coeffs, const size_t chan = 0) = 0;
61 
68  virtual std::vector<int16_t> get_coefficients(const size_t chan = 0) const = 0;
69 };
70 
71 }} // 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: fir_filter_block_control.hpp:25