| USRP Hardware Driver and USRP Manual Version: 4.8.0.makepkg-0-g308126a4 UHD and USRP Manual |

Loading...
Searching...
No Matches
ddc_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>
10#include <uhd/rfnoc/noc_block_base.hpp>
11#include <uhd/types/ranges.hpp>
12#include <boost/optional.hpp>
13
14 namespace uhd { namespace rfnoc {
15
31 class UHD_API ddc_block_control : public noc_block_base
32{
33 public:
34 RFNOC_DECLARE_BLOCK(ddc_block_control)
35
36 static const uint16_t MAJOR_COMPAT;
37 static const uint16_t MINOR_COMPAT;
38 // Readback addresses
39 static const uint32_t RB_COMPAT_NUM;
40 static const uint32_t RB_NUM_HB;
41 static const uint32_t RB_CIC_MAX_DECIM;
42 // Write addresses
43 static const uint32_t SR_N_ADDR;
44 static const uint32_t SR_M_ADDR;
45 static const uint32_t SR_CONFIG_ADDR;
46 static const uint32_t SR_FREQ_ADDR;
47 static const uint32_t SR_SCALE_IQ_ADDR;
48 static const uint32_t SR_DECIM_ADDR;
49 static const uint32_t SR_MUX_ADDR;
50 static const uint32_t SR_COEFFS_ADDR;
51 static const uint32_t SR_TIME_INCR_ADDR;
52
72 virtual double set_freq(const double freq,
73 const size_t chan,
74 const boost::optional<uhd::time_spec_t> time = boost::none) = 0;
75
80 virtual double get_freq(const size_t chan) const = 0;
81
93 virtual uhd::freq_range_t get_frequency_range(const size_t chan) const = 0;
94
100 virtual double get_input_rate(const size_t chan) const = 0;
101
107 virtual void set_input_rate(const double rate, const size_t chan) = 0;
108
116 virtual double get_output_rate(const size_t chan) const = 0;
117
123 virtual uhd::meta_range_t get_output_rates(const size_t chan) const = 0;
124
135 virtual double set_output_rate(const double rate, const size_t chan) = 0;
136
137 /**************************************************************************
138 * Streaming-Related API Calls
139 *************************************************************************/
145 virtual void issue_stream_cmd(
146 const uhd::stream_cmd_t& stream_cmd, const size_t port) = 0;
147};
148
149}} // namespace uhd::rfnoc
uhd::rfnoc::ddc_block_control
Definition ddc_block_control.hpp:32
uhd::rfnoc::ddc_block_control::set_output_rate
virtual double set_output_rate(const double rate, const size_t chan)=0
uhd::rfnoc::ddc_block_control::SR_MUX_ADDR
static const uint32_t SR_MUX_ADDR
Definition ddc_block_control.hpp:49
uhd::rfnoc::ddc_block_control::MAJOR_COMPAT
static const uint16_t MAJOR_COMPAT
Definition ddc_block_control.hpp:36
uhd::rfnoc::ddc_block_control::RB_COMPAT_NUM
static const uint32_t RB_COMPAT_NUM
Definition ddc_block_control.hpp:39
uhd::rfnoc::ddc_block_control::SR_CONFIG_ADDR
static const uint32_t SR_CONFIG_ADDR
Definition ddc_block_control.hpp:45
uhd::rfnoc::ddc_block_control::issue_stream_cmd
virtual void issue_stream_cmd(const uhd::stream_cmd_t &stream_cmd, const size_t port)=0
uhd::rfnoc::ddc_block_control::SR_TIME_INCR_ADDR
static const uint32_t SR_TIME_INCR_ADDR
Definition ddc_block_control.hpp:51
uhd::rfnoc::ddc_block_control::get_frequency_range
virtual uhd::freq_range_t get_frequency_range(const size_t chan) const =0
uhd::rfnoc::ddc_block_control::SR_FREQ_ADDR
static const uint32_t SR_FREQ_ADDR
Definition ddc_block_control.hpp:46
uhd::rfnoc::ddc_block_control::set_input_rate
virtual void set_input_rate(const double rate, const size_t chan)=0
uhd::rfnoc::ddc_block_control::SR_DECIM_ADDR
static const uint32_t SR_DECIM_ADDR
Definition ddc_block_control.hpp:48
uhd::rfnoc::ddc_block_control::get_output_rates
virtual uhd::meta_range_t get_output_rates(const size_t chan) const =0
uhd::rfnoc::ddc_block_control::get_freq
virtual double get_freq(const size_t chan) const =0
uhd::rfnoc::ddc_block_control::MINOR_COMPAT
static const uint16_t MINOR_COMPAT
Definition ddc_block_control.hpp:37
uhd::rfnoc::ddc_block_control::RB_NUM_HB
static const uint32_t RB_NUM_HB
Definition ddc_block_control.hpp:40
uhd::rfnoc::ddc_block_control::RB_CIC_MAX_DECIM
static const uint32_t RB_CIC_MAX_DECIM
Definition ddc_block_control.hpp:41
uhd::rfnoc::ddc_block_control::SR_M_ADDR
static const uint32_t SR_M_ADDR
Definition ddc_block_control.hpp:44
uhd::rfnoc::ddc_block_control::SR_SCALE_IQ_ADDR
static const uint32_t SR_SCALE_IQ_ADDR
Definition ddc_block_control.hpp:47
uhd::rfnoc::ddc_block_control::get_input_rate
virtual double get_input_rate(const size_t chan) const =0
uhd::rfnoc::ddc_block_control::get_output_rate
virtual double get_output_rate(const size_t chan) const =0
uhd::rfnoc::ddc_block_control::SR_N_ADDR
static const uint32_t SR_N_ADDR
Definition ddc_block_control.hpp:43
uhd::rfnoc::ddc_block_control::SR_COEFFS_ADDR
static const uint32_t SR_COEFFS_ADDR
Definition ddc_block_control.hpp:50
uhd::rfnoc::ddc_block_control::set_freq
virtual double set_freq(const double freq, const size_t chan, const boost::optional< uhd::time_spec_t > time=boost::none)=0
uhd::rfnoc::noc_block_base::noc_block_base
noc_block_base(make_args_ptr make_args)
uhd::time_spec_t
Definition time_spec.hpp:31
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
uhd::rfnoc
Definition actions.hpp:24
uhd
Definition build_info.hpp:12
uhd::freq_range_t
meta_range_t freq_range_t
Definition ranges.hpp:131
noc_block_base.hpp
RFNOC_DECLARE_BLOCK
#define RFNOC_DECLARE_BLOCK(CLASS_NAME)
Definition noc_block_base.hpp:22
ranges.hpp
uhd::meta_range_t
Definition ranges.hpp:66
uhd::stream_cmd_t
Definition stream_cmd.hpp:40