summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/rfnoc_duc_impl.h
blob: 1bf1306e3133467fb20785ef5fd6554e0fe6d6fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* -*- c++ -*- */
/*
 * Copyright 2019 Ettus Research, a National Instruments Brand.
 * Copyright 2020 Free Software Foundation, Inc.
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#ifndef INCLUDED_GR_UHD_RFNOC_DUC_IMPL_H
#define INCLUDED_GR_UHD_RFNOC_DUC_IMPL_H

#include <gnuradio/uhd/rfnoc_duc.h>
#include <uhd/rfnoc/duc_block_control.hpp>

namespace gr {
namespace uhd {

class rfnoc_duc_impl : public rfnoc_duc
{
public:
    rfnoc_duc_impl(::uhd::rfnoc::noc_block_base::sptr block_ref);
    ~rfnoc_duc_impl();

    /*** API *****************************************************************/
    double set_freq(const double freq,
                    const size_t chan,
                    const ::uhd::time_spec_t time = ::uhd::time_spec_t::ASAP);
    double set_input_rate(const double rate, const size_t chan);

private:
    ::uhd::rfnoc::duc_block_control::sptr d_duc_ref;
};

} // namespace uhd
} // namespace gr

#endif /* INCLUDED_GR_UHD_RFNOC_DUC_IMPL_H */