USRP Hardware Driver and USRP Manual  Version: 4.4.0.HEAD-0-g5fac246b
UHD and USRP Manual
moving_average_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 #include <boost/optional.hpp>
13 
14 namespace uhd { namespace rfnoc {
15 
27 {
28 public:
30 
31  static const uint32_t REG_SUM_LEN_ADDR;
32  static const uint32_t REG_DIVISOR_ADDR;
33 
40  virtual void set_sum_len(const uint8_t sum_len) = 0;
41 
46  virtual uint8_t get_sum_len() const = 0;
47 
52  virtual void set_divisor(const uint32_t divisor) = 0;
53 
58  virtual uint32_t get_divisor() const = 0;
59 };
60 
61 }} // namespace uhd::rfnoc
config.hpp
uhd::rfnoc::noc_block_base
Definition: noc_block_base.hpp:42
UHD_API
#define UHD_API
Definition: config.h:87
uhd::rfnoc::moving_average_block_control
Definition: moving_average_block_control.hpp:26
uhd
Definition: build_info.hpp:12
ranges.hpp
noc_block_base.hpp
RFNOC_DECLARE_BLOCK
#define RFNOC_DECLARE_BLOCK(CLASS_NAME)
Definition: noc_block_base.hpp:22