Skip to content

Instantly share code, notes, and snippets.

@beroset
Created June 5, 2021 15:16
Show Gist options
  • Save beroset/d03e1b0e6db1437bdd33a060f02288f1 to your computer and use it in GitHub Desktop.
Save beroset/d03e1b0e6db1437bdd33a060f02288f1 to your computer and use it in GitHub Desktop.
gnuradio 3.9 tutorial Python binding
/*
* Copyright 2021 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(my_qpsk_demod_cb.h) */
/* BINDTOOL_HEADER_FILE_HASH(1c927c4038a408cc518d05010d9b0d62) */
/***********************************************************************************/
#include <pybind11/complex.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
#include <tutorial/my_qpsk_demod_cb.h>
// pydoc.h is automatically generated in the build directory
#include <my_qpsk_demod_cb_pydoc.h>
void bind_my_qpsk_demod_cb(py::module& m)
{
using my_qpsk_demod_cb = gr::tutorial::my_qpsk_demod_cb;
py::class_<my_qpsk_demod_cb, gr::block, gr::basic_block,
std::shared_ptr<my_qpsk_demod_cb>>(m, "my_qpsk_demod_cb", D(my_qpsk_demod_cb))
.def(py::init(&my_qpsk_demod_cb::make),
D(my_qpsk_demod_cb,make)
)
;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment