diff options
author | Josh Morman <mormjb@gmail.com> | 2020-04-23 08:05:31 -0400 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:47 -0400 |
commit | 8714e249cdfeb1da4405c35ecc8ab718e4e7dcc6 (patch) | |
tree | ba54f56c0f9951855ddade5f426ad34c9efb0ce0 /gr-blocks/python/blocks/bindings/count_bits_python.cc | |
parent | 2aaa3593989a709911a83aa4890a8f6a22c484f3 (diff) |
blocks: add pybind11 bindings
Diffstat (limited to 'gr-blocks/python/blocks/bindings/count_bits_python.cc')
-rw-r--r-- | gr-blocks/python/blocks/bindings/count_bits_python.cc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gr-blocks/python/blocks/bindings/count_bits_python.cc b/gr-blocks/python/blocks/bindings/count_bits_python.cc new file mode 100644 index 0000000000..c8a57ecd6e --- /dev/null +++ b/gr-blocks/python/blocks/bindings/count_bits_python.cc @@ -0,0 +1,36 @@ +/* + * 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 */ + +#include <pybind11/complex.h> +#include <pybind11/pybind11.h> +#include <pybind11/stl.h> + +namespace py = pybind11; + +#include <gnuradio/blocks/count_bits.h> +// pydoc.h is automatically generated in the build directory +#include <count_bits_pydoc.h> + +void bind_count_bits(py::module& m) +{ + + + m.def("count_bits8", &::gr::blocks::count_bits8, py::arg("x"), D(count_bits8)); + + + m.def("count_bits16", &::gr::blocks::count_bits16, py::arg("x"), D(count_bits16)); + + + m.def("count_bits32", &::gr::blocks::count_bits32, py::arg("x"), D(count_bits32)); + + + m.def("count_bits64", &::gr::blocks::count_bits64, py::arg("x"), D(count_bits64)); +} |