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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
/*
* Copyright 2023 Lime Microsystems info@limemicro.com
* 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(rfe.h) */
/* BINDTOOL_HEADER_FILE_HASH(e44571cf2ac51d96732cef32ca605224) */
/***********************************************************************************/
#include <pybind11/complex.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
#include <limesdr/rfe.h>
// pydoc.h is automatically generated in the build directory
#include <rfe_pydoc.h>
void bind_rfe(py::module& m)
{
using rfe = ::gr::limesdr::rfe;
py::class_<rfe,
std::shared_ptr<rfe>>(m, "rfe", D(rfe))
.def(py::init([](int comm_type, const std::string &device, const std::string &config_file, int IDRX, int IDTX, int PortRX, int PortTX, int Mode, int Notch, int Atten)
{
return rfe(comm_type, device, config_file, char(IDRX), char(IDTX), char(PortRX), char(PortTX), char(Mode), char(Notch), char(Atten));
}),
py::arg("comm_type"),
py::arg("device"),
py::arg("config_file"),
py::arg("IDRX"),
py::arg("IDTX"),
py::arg("PortRX"),
py::arg("PortTX"),
py::arg("Mode"),
py::arg("Notch"),
py::arg("Atten"),
D(rfe,rfe,0)
)
.def(py::init<gr::limesdr::rfe const &>(),
py::arg("arg0"),
D(rfe,rfe,1)
)
.def("change_mode",&rfe::change_mode,
py::arg("mode"),
D(rfe,change_mode)
)
.def("set_fan",&rfe::set_fan,
py::arg("enable"),
D(rfe,set_fan)
)
.def("set_attenuation",&rfe::set_attenuation,
py::arg("attenuation"),
D(rfe,set_attenuation)
)
.def("set_notch",&rfe::set_notch,
py::arg("enable"),
D(rfe,set_notch)
)
;
}
|