/* * 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(mapper.h) */ /* BINDTOOL_HEADER_FILE_HASH(71fee88c2602a7b34f8996a1ff163569) */ /***********************************************************************************/ #include #include #include namespace py = pybind11; #include // pydoc.h is automatically generated in the build directory #include void bind_mapper(py::module& m) { using mapper = ::gr::ieee802_11::mapper; py::class_>(m, "mapper", D(mapper)) .def(py::init(&mapper::make), py::arg("mcs"), py::arg("debug") = false, D(mapper,make) ) .def("set_encoding",&mapper::set_encoding, py::arg("mcs"), D(mapper,set_encoding) ) ; py::enum_<::gr::ieee802_11::Encoding>(m,"Encoding") .value("BPSK_1_2", ::gr::ieee802_11::BPSK_1_2) // 0 .value("BPSK_3_4", ::gr::ieee802_11::BPSK_3_4) // 1 .value("QPSK_1_2", ::gr::ieee802_11::QPSK_1_2) // 2 .value("QPSK_3_4", ::gr::ieee802_11::QPSK_3_4) // 3 .value("QAM16_1_2", ::gr::ieee802_11::QAM16_1_2) // 4 .value("QAM16_3_4", ::gr::ieee802_11::QAM16_3_4) // 5 .value("QAM64_2_3", ::gr::ieee802_11::QAM64_2_3) // 6 .value("QAM64_3_4", ::gr::ieee802_11::QAM64_3_4) // 7 .export_values() ; py::implicitly_convertible(); }