diff options
author | Josh Morman <mormjb@gmail.com> | 2020-04-23 07:51:39 -0400 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:47 -0400 |
commit | ba16fdf0a0e9052163a5dd00b5927b2eccc0683f (patch) | |
tree | 59c7f11883e221287bb05802bb37c155549b605d /gnuradio-runtime/python/gnuradio/gr/bindings/endianness_python.cc | |
parent | 42fe41b9f2224e09fde9f00426cc6b10ba7b6416 (diff) |
runtime: add pybind11 bindings
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/bindings/endianness_python.cc')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/bindings/endianness_python.cc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/endianness_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/endianness_python.cc new file mode 100644 index 0000000000..fb07bf5851 --- /dev/null +++ b/gnuradio-runtime/python/gnuradio/gr/bindings/endianness_python.cc @@ -0,0 +1,27 @@ +/* + * 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/endianness.h> + +void bind_endianness(py::module& m) +{ + + py::enum_<gr::endianness_t>(m, "endianness_t") + .value("GR_MSB_FIRST", gr::GR_MSB_FIRST) // 0 + .value("GR_LSB_FIRST", gr::GR_LSB_FIRST) // 1 + .export_values(); +} |