GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
rfnoc_duc.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_DUC_H
10 #define INCLUDED_GR_UHD_RFNOC_DUC_H
11 
12 #include <gnuradio/uhd/api.h>
15 
16 namespace gr {
17 namespace uhd {
18 
19 /*! RFNoC Digital Upconverter Block
20  *
21  * \ingroup uhd_blk
22  */
23 class GR_UHD_API rfnoc_duc : virtual public rfnoc_block
24 {
25 public:
26  typedef std::shared_ptr<rfnoc_duc> sptr;
27 
28  /*!
29  * \param graph Reference to the rfnoc_graph object this block is attached to
30  * \param block_args Additional block arguments
31  * \param device_select Device Selection
32  * \param instance Instance Selection
33  */
34  static sptr make(rfnoc_graph::sptr graph,
35  const ::uhd::device_addr_t& block_args,
36  const int device_select,
37  const int instance);
38 
39  /*! Set DDS frequency
40  */
41  virtual double set_freq(const double freq,
42  const size_t chan,
43  const ::uhd::time_spec_t time = ::uhd::time_spec_t::ASAP) = 0;
44 
45  /*! Set the sample rate at the input
46  *
47  * When the DUC block is connected to a TX streamer block, then this will
48  * help with the property propagation.
49  *
50  * \param rate Input Sampling Rate (Hz)
51  * \param chan Channel Index
52  */
53  virtual double set_input_rate(const double rate, const size_t chan) = 0;
54 };
55 
56 } // namespace uhd
57 } // namespace gr
58 
59 #endif /* INCLUDED_GR_UHD_RFNOC_DUC_H */
Definition: rfnoc_block.h:29
std::shared_ptr< rfnoc_block > sptr
Definition: rfnoc_block.h:37
Definition: rfnoc_duc.h:24
virtual double set_freq(const double freq, const size_t chan, const ::uhd::time_spec_t time=::uhd::time_spec_t::ASAP)=0
std::shared_ptr< rfnoc_duc > sptr
Definition: rfnoc_duc.h:26
static sptr make(rfnoc_graph::sptr graph, const ::uhd::device_addr_t &block_args, const int device_select, const int instance)
virtual double set_input_rate(const double rate, const size_t chan)=0
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