2022-04-24 19:20:41 +00:00
|
|
|
/*
|
2024-02-06 09:48:41 +00:00
|
|
|
* Copyright 2024 Free Software Foundation, Inc.
|
2022-04-24 19:20:41 +00:00
|
|
|
*
|
|
|
|
* 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) */
|
2024-01-10 22:18:30 +00:00
|
|
|
/* BINDTOOL_HEADER_FILE(caribouLiteSource.h) */
|
2024-04-14 14:13:56 +00:00
|
|
|
/* BINDTOOL_HEADER_FILE_HASH(2af106876738c9927aadb177d064272d) */
|
2022-04-24 19:20:41 +00:00
|
|
|
/***********************************************************************************/
|
|
|
|
|
|
|
|
#include <pybind11/complex.h>
|
|
|
|
#include <pybind11/pybind11.h>
|
|
|
|
#include <pybind11/stl.h>
|
|
|
|
|
|
|
|
namespace py = pybind11;
|
|
|
|
|
2024-01-10 22:18:30 +00:00
|
|
|
#include <gnuradio/caribouLite/caribouLiteSource.h>
|
2022-04-24 19:20:41 +00:00
|
|
|
// pydoc.h is automatically generated in the build directory
|
2024-01-10 22:18:30 +00:00
|
|
|
#include <caribouLiteSource_pydoc.h>
|
2022-04-24 19:20:41 +00:00
|
|
|
|
2024-01-10 22:18:30 +00:00
|
|
|
void bind_caribouLiteSource(py::module& m)
|
2022-04-24 19:20:41 +00:00
|
|
|
{
|
|
|
|
|
2024-02-06 09:48:41 +00:00
|
|
|
using caribouLiteSource = ::gr::caribouLite::caribouLiteSource;
|
2022-04-24 19:20:41 +00:00
|
|
|
|
|
|
|
|
2024-02-06 09:48:41 +00:00
|
|
|
py::class_<caribouLiteSource,
|
|
|
|
gr::sync_block,
|
|
|
|
gr::block,
|
|
|
|
gr::basic_block,
|
|
|
|
std::shared_ptr<caribouLiteSource>>(
|
|
|
|
m, "caribouLiteSource", D(caribouLiteSource))
|
2024-01-10 22:18:30 +00:00
|
|
|
|
|
|
|
.def(py::init(&caribouLiteSource::make),
|
2024-02-06 09:48:41 +00:00
|
|
|
py::arg("channel") = 0,
|
|
|
|
py::arg("enable_agc") = false,
|
|
|
|
py::arg("rx_gain") = 40,
|
|
|
|
py::arg("rx_bw") = 2500000,
|
|
|
|
py::arg("sample_rate") = 4000000,
|
|
|
|
py::arg("freq") = 900000000,
|
2024-02-06 12:12:11 +00:00
|
|
|
py::arg("provide_meta") = false,
|
2024-02-06 09:48:41 +00:00
|
|
|
D(caribouLiteSource, make))
|
2022-04-24 19:20:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
}
|