USRP Hardware Driver and USRP Manual Version: 4.1.0.3
UHD and USRP Manual
fft_block_control.hpp
Go to the documentation of this file.
1//
2// Copyright 2019 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
12namespace uhd { namespace rfnoc {
13
17
18// Custom property keys
19static const std::string PROP_KEY_MAGNITUDE = "magnitude";
20static const std::string PROP_KEY_DIRECTION = "direction";
21static const std::string PROP_KEY_LENGTH = "length";
22static const std::string PROP_KEY_FFT_SCALING = "fft_scaling";
23static const std::string PROP_KEY_SHIFT_CONFIG = "shift_config";
24
40{
41public:
43
44 static const uint32_t REG_RESET_ADDR;
45 static const uint32_t REG_LENGTH_LOG2_ADDR;
46 static const uint32_t REG_MAGNITUDE_OUT_ADDR;
47 static const uint32_t REG_DIRECTION_ADDR;
48 static const uint32_t REG_SCALING_ADDR;
49 static const uint32_t REG_SHIFT_CONFIG_ADDR;
50
58 virtual void set_direction(const fft_direction direction) = 0;
59
66 virtual fft_direction get_direction() const = 0;
67
79 virtual void set_magnitude(const fft_magnitude magnitude) = 0;
80
87 virtual fft_magnitude get_magnitude() const = 0;
88
102 virtual void set_shift_config(const fft_shift shift) = 0;
103
110 virtual fft_shift get_shift_config() const = 0;
111
122 virtual void set_scaling(const uint16_t scaling) = 0;
123
130 virtual uint16_t get_scaling() const = 0;
131
140 virtual void set_length(const size_t length) = 0;
141
148 virtual size_t get_length() const = 0;
149};
150
151}} // namespace uhd::rfnoc
Definition: fft_block_control.hpp:40
Definition: noc_block_base.hpp:42
#define UHD_API
Definition: config.h:70
fft_magnitude
Definition: fft_block_control.hpp:16
fft_shift
Definition: fft_block_control.hpp:14
fft_direction
Definition: fft_block_control.hpp:15
UHD_INLINE size_t shift(const soft_reg_field_t field)
Definition: soft_register.hpp:81
Definition: build_info.hpp:12
#define RFNOC_DECLARE_BLOCK(CLASS_NAME)
Definition: noc_block_base.hpp:21