summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/bindings/endianness_python.cc
blob: fb07bf5851a555bcaa43bee7a72a4923125fba2b (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
/*
 * 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();
}