GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
rfnoc_ddc.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2019 Ettus Research, a National Instruments Brand.
4 * Copyright 2020 Free Software Foundation, Inc.
5 *
6 * SPDX-License-Identifier: GPL-3.0-or-later
7 */
8
9#ifndef INCLUDED_GR_UHD_RFNOC_DDC_H
10#define INCLUDED_GR_UHD_RFNOC_DDC_H
11
12#include <gnuradio/uhd/api.h>
14
15namespace gr {
16namespace uhd {
17
18/*! RFNoC Digital Downconverter Block
19 *
20 * \ingroup uhd_blk
21 */
22class GR_UHD_API rfnoc_ddc : virtual public rfnoc_block
23{
24public:
25 typedef std::shared_ptr<rfnoc_ddc> sptr;
26
27 /*!
28 * \param graph Reference to the rfnoc_graph object this block is attached to
29 * \param block_args Additional block arguments
30 * \param device_select Device Selection
31 * \param instance Instance Selection
32 */
34 const ::uhd::device_addr_t& block_args,
35 const int device_select,
36 const int instance);
37
38 /*! Set the DDS frequency of the DDC
39 *
40 * \param freq Frequency Shift (Hz)
41 * \param chan Channel Index
42 * \param time Command Time for the frequency shift
43 */
44 virtual double set_freq(const double freq,
45 const size_t chan,
46 const ::uhd::time_spec_t time = ::uhd::time_spec_t::ASAP) = 0;
47
48 /*! Manually configure output rate
49 *
50 * When the DDC block is connected to an RX streamer block, then this will
51 * help with the property propagation.
52 *
53 * \param rate Sampling Rate (Hz)
54 * \param chan Channel Index
55 */
56 virtual double set_output_rate(const double rate, const size_t chan) = 0;
57};
58
59} // namespace uhd
60} // namespace gr
61
62#endif /* INCLUDED_GR_UHD_RFNOC_DDC_H */
Definition: rfnoc_block.h:26
std::shared_ptr< rfnoc_block > sptr
Definition: rfnoc_block.h:34
Definition: rfnoc_ddc.h:23
virtual double set_freq(const double freq, const size_t chan, const ::uhd::time_spec_t time=::uhd::time_spec_t::ASAP)=0
static sptr make(rfnoc_graph::sptr graph, const ::uhd::device_addr_t &block_args, const int device_select, const int instance)
virtual double set_output_rate(const double rate, const size_t chan)=0
std::shared_ptr< rfnoc_ddc > sptr
Definition: rfnoc_ddc.h:25
std::shared_ptr< rfnoc_graph > sptr
Definition: rfnoc_graph.h:32
#define GR_UHD_API
Definition: gr-uhd/include/gnuradio/uhd/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29