USRP Hardware Driver and USRP Manual  Version: 004.000.000.HEAD-0-g8773fb2c
UHD and USRP Manual
fir_block_ctrl.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef INCLUDED_LIBUHD_RFNOC_fir_block_ctrl_HPP
19 #define INCLUDED_LIBUHD_RFNOC_fir_block_ctrl_HPP
20 
23 
24 namespace uhd {
25  namespace rfnoc {
26 
39 {
40 public:
42 
43 
44  //
45  // The length of \p taps must correspond the number of taps
46  // in this block. If it's shorter, zeros will be padded.
47  // If it's longer, throws a uhd::value_error.
48  virtual void set_taps(const std::vector<int> &taps) = 0;
49 
51  virtual size_t get_n_taps() const = 0;
52 }; /* class fir_block_ctrl*/
53 
54 }} /* namespace uhd::rfnoc */
55 
56 #endif /* INCLUDED_LIBUHD_RFNOC_fir_block_ctrl_HPP */
57 // vim: sw=4 et:
#define UHD_RFNOC_BLOCK_OBJECT(class_name)
This macro must be put in the public section of an RFNoC.
Definition: block_ctrl_base.hpp:74
Definition: sink_block_ctrl_base.hpp:36
Definition: build_info.hpp:25
#define UHD_RFNOC_API
Definition: config.hpp:103
Definition: source_block_ctrl_base.hpp:35
Block controller for the standard FIR RFNoC block.
Definition: fir_block_ctrl.hpp:38