USRP Hardware Driver and USRP Manual  Version: 003.010.000.HEAD-0-g6e1ac3fc
UHD and USRP Manual
dma_fifo_block_ctrl.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2016 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_DMA_FIFO_BLOCK_HPP
19 #define INCLUDED_LIBUHD_RFNOC_DMA_FIFO_BLOCK_HPP
20 
23 
24 namespace uhd {
25  namespace rfnoc {
26 
38 {
39 public:
41 
42 
43  virtual void resize(const uint32_t base_addr, const uint32_t depth, const size_t chan) = 0;
44 
46  uint32_t get_base_addr(const size_t chan) const;
47 
49  uint32_t get_depth(const size_t chan) const;
50 
51 }; /* class dma_fifo_block_ctrl*/
52 
53 }} /* namespace uhd::rfnoc */
54 
55 #endif /* INCLUDED_LIBUHD_RFNOC_DMA_FIFO_BLOCK_HPP */
#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 a DMA FIFO block.
Definition: dma_fifo_block_ctrl.hpp:37