summaryrefslogtreecommitdiff
path: root/gr-digital/python/digital/bindings/pfb_clock_sync_fff_python.cc
blob: 3c49df020cf48e25e06bddf8bf7c757bfcb484bf (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
 * Copyright 2020 Free Software Foundation, Inc.
 *
 * This file is part of GNU Radio
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 */

/***********************************************************************************/
/* This file is automatically generated using bindtool and can be manually edited  */
/* The following lines can be configured to regenerate this file during cmake      */
/* If manual edits are made, the following tags should be modified accordingly.    */
/* BINDTOOL_GEN_AUTOMATIC(0)                                                       */
/* BINDTOOL_USE_PYGCCXML(0)                                                        */
/* BINDTOOL_HEADER_FILE(pfb_clock_sync_fff.h)                                        */
/* BINDTOOL_HEADER_FILE_HASH(a3246c72d3a0a56ddfa3be6489dd2ff3)                     */
/***********************************************************************************/

#include <pybind11/complex.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

namespace py = pybind11;

#include <gnuradio/digital/pfb_clock_sync_fff.h>
// pydoc.h is automatically generated in the build directory
#include <pfb_clock_sync_fff_pydoc.h>

void bind_pfb_clock_sync_fff(py::module& m)
{

    using pfb_clock_sync_fff = ::gr::digital::pfb_clock_sync_fff;


    py::class_<pfb_clock_sync_fff,
               gr::block,
               gr::basic_block,
               std::shared_ptr<pfb_clock_sync_fff>>(
        m, "pfb_clock_sync_fff", D(pfb_clock_sync_fff))

        .def(py::init(&pfb_clock_sync_fff::make),
             py::arg("sps"),
             py::arg("gain"),
             py::arg("taps"),
             py::arg("filter_size") = 32,
             py::arg("init_phase") = 0,
             py::arg("max_rate_deviation") = 1.5,
             py::arg("osps") = 1,
             D(pfb_clock_sync_fff, make))


        .def("update_gains",
             &pfb_clock_sync_fff::update_gains,
             D(pfb_clock_sync_fff, update_gains))


        .def("update_taps",
             &pfb_clock_sync_fff::update_taps,
             py::arg("taps"),
             D(pfb_clock_sync_fff, update_taps))


        .def("taps", &pfb_clock_sync_fff::taps, D(pfb_clock_sync_fff, taps))


        .def(
            "diff_taps", &pfb_clock_sync_fff::diff_taps, D(pfb_clock_sync_fff, diff_taps))


        .def("channel_taps",
             &pfb_clock_sync_fff::channel_taps,
             py::arg("channel"),
             D(pfb_clock_sync_fff, channel_taps))


        .def("diff_channel_taps",
             &pfb_clock_sync_fff::diff_channel_taps,
             py::arg("channel"),
             D(pfb_clock_sync_fff, diff_channel_taps))


        .def("taps_as_string",
             &pfb_clock_sync_fff::taps_as_string,
             D(pfb_clock_sync_fff, taps_as_string))


        .def("diff_taps_as_string",
             &pfb_clock_sync_fff::diff_taps_as_string,
             D(pfb_clock_sync_fff, diff_taps_as_string))


        .def("set_loop_bandwidth",
             &pfb_clock_sync_fff::set_loop_bandwidth,
             py::arg("bw"),
             D(pfb_clock_sync_fff, set_loop_bandwidth))


        .def("set_damping_factor",
             &pfb_clock_sync_fff::set_damping_factor,
             py::arg("df"),
             D(pfb_clock_sync_fff, set_damping_factor))


        .def("set_alpha",
             &pfb_clock_sync_fff::set_alpha,
             py::arg("alpha"),
             D(pfb_clock_sync_fff, set_alpha))


        .def("set_beta",
             &pfb_clock_sync_fff::set_beta,
             py::arg("beta"),
             D(pfb_clock_sync_fff, set_beta))


        .def("set_max_rate_deviation",
             &pfb_clock_sync_fff::set_max_rate_deviation,
             py::arg("m"),
             D(pfb_clock_sync_fff, set_max_rate_deviation))


        .def("loop_bandwidth",
             &pfb_clock_sync_fff::loop_bandwidth,
             D(pfb_clock_sync_fff, loop_bandwidth))


        .def("damping_factor",
             &pfb_clock_sync_fff::damping_factor,
             D(pfb_clock_sync_fff, damping_factor))


        .def("alpha", &pfb_clock_sync_fff::alpha, D(pfb_clock_sync_fff, alpha))


        .def("beta", &pfb_clock_sync_fff::beta, D(pfb_clock_sync_fff, beta))


        .def("clock_rate",
             &pfb_clock_sync_fff::clock_rate,
             D(pfb_clock_sync_fff, clock_rate))

        ;
}