Loading...
Searching...
No Matches
window_block_control.hpp
Go to the documentation of this file.
//
// Copyright 2020 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.hpp>
#include <uhd/rfnoc/noc_block_base.hpp>
#include <uhd/types/ranges.hpp>
namespace uhd { namespace rfnoc {
class UHD_API window_block_control : public noc_block_base
{
public:
RFNOC_DECLARE_BLOCK(window_block_control)
// Block registers
static const uint32_t REG_WINDOW_BLOCK_SIZE;
static const uint32_t REG_WINDOW_LEN_OFFSET;
static const uint32_t REG_WINDOW_MAX_LEN_OFFSET;
static const uint32_t REG_WINDOW_LOAD_COEFF_OFFSET;
static const uint32_t REG_WINDOW_LOAD_COEFF_LAST_OFFSET;
virtual size_t get_max_num_coefficients(const size_t chan) const = 0;
virtual void set_coefficients(
const std::vector<int16_t>& coeffs, const size_t chan) = 0;
virtual std::vector<int16_t> get_coefficients(const size_t chan) const = 0;
};
}} // namespace uhd::rfnoc
uhd::rfnoc::noc_block_base::noc_block_base
noc_block_base(make_args_ptr make_args)
uhd::rfnoc::window_block_control
Definition window_block_control.hpp:31
uhd::rfnoc::window_block_control::get_coefficients
virtual std::vector< int16_t > get_coefficients(const size_t chan) const =0
uhd::rfnoc::window_block_control::set_coefficients
virtual void set_coefficients(const std::vector< int16_t > &coeffs, const size_t chan)=0
uhd::rfnoc::window_block_control::REG_WINDOW_LOAD_COEFF_LAST_OFFSET
static const uint32_t REG_WINDOW_LOAD_COEFF_LAST_OFFSET
Definition window_block_control.hpp:41
uhd::rfnoc::window_block_control::REG_WINDOW_LOAD_COEFF_OFFSET
static const uint32_t REG_WINDOW_LOAD_COEFF_OFFSET
Definition window_block_control.hpp:40
uhd::rfnoc::window_block_control::get_max_num_coefficients
virtual size_t get_max_num_coefficients(const size_t chan) const =0
uhd::rfnoc::window_block_control::REG_WINDOW_LEN_OFFSET
static const uint32_t REG_WINDOW_LEN_OFFSET
Definition window_block_control.hpp:38
uhd::rfnoc::window_block_control::REG_WINDOW_MAX_LEN_OFFSET
static const uint32_t REG_WINDOW_MAX_LEN_OFFSET
Definition window_block_control.hpp:39
uhd::rfnoc::window_block_control::REG_WINDOW_BLOCK_SIZE
static const uint32_t REG_WINDOW_BLOCK_SIZE
Definition window_block_control.hpp:36
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
std
STL namespace.
uhd::rfnoc
Definition actions.hpp:24
uhd
Definition build_info.hpp:12
noc_block_base.hpp
RFNOC_DECLARE_BLOCK
#define RFNOC_DECLARE_BLOCK(CLASS_NAME)
Definition noc_block_base.hpp:22
ranges.hpp