2022-08-01 15:26:22 +00:00
|
|
|
#include "lasp_config.h"
|
2022-07-20 12:58:48 +00:00
|
|
|
#include <pybind11/pybind11.h>
|
2022-08-07 19:13:45 +00:00
|
|
|
|
|
|
|
/*! \mainpage
|
|
|
|
*
|
|
|
|
* \section intro_sec Introduction
|
|
|
|
*
|
|
|
|
* Welcome to the LASP (Library for Acoustic Signal Processing) code
|
|
|
|
* documentation. The code comprises a part which is written in C++, a part
|
|
|
|
* that is written in Python, and a part that functions as glue, which is
|
2023-01-20 13:22:48 +00:00
|
|
|
* Pybind11 C++ glue code. An example of such a file is lasp_cpp.cpp.
|
|
|
|
* This is the internal documentation of LASP. It serves as background
|
|
|
|
* information for programmers.
|
2022-08-07 19:13:45 +00:00
|
|
|
*
|
|
|
|
* \section Installation
|
|
|
|
*
|
2023-01-20 13:22:48 +00:00
|
|
|
* For the installation manual, please refer to the <a
|
|
|
|
* href="https://code.ascee.nl/ASCEE/lasp/src/branch/master/README.md">README</a>
|
|
|
|
* of the Git repository.
|
2022-08-07 19:13:45 +00:00
|
|
|
*
|
|
|
|
*
|
2023-01-20 13:22:48 +00:00
|
|
|
* \section Usage
|
|
|
|
*
|
|
|
|
* Some usage examples are given in the <a href=
|
|
|
|
* "https://code.ascee.nl/ASCEE/lasp/src/branch/master/examples">examples</a>
|
|
|
|
* directory of the repository.
|
|
|
|
*
|
2022-08-07 19:13:45 +00:00
|
|
|
* */
|
|
|
|
|
2022-09-22 08:18:38 +00:00
|
|
|
/**
|
|
|
|
* \defgroup pybind Pybind11 wrapper code
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
*/
|
2022-07-20 12:58:48 +00:00
|
|
|
namespace py = pybind11;
|
|
|
|
|
2022-08-01 15:26:22 +00:00
|
|
|
void init_dsp(py::module &m);
|
|
|
|
void init_deviceinfo(py::module &m);
|
|
|
|
void init_daqconfiguration(py::module &m);
|
|
|
|
void init_daq(py::module &m);
|
|
|
|
void init_streammgr(py::module &m);
|
|
|
|
void init_datahandler(py::module &m);
|
2022-09-22 19:02:41 +00:00
|
|
|
void init_siggen(py::module &m);
|
2022-07-20 12:58:48 +00:00
|
|
|
|
|
|
|
PYBIND11_MODULE(lasp_cpp, m) {
|
|
|
|
|
2024-06-03 15:28:51 +00:00
|
|
|
#if LASP_DOUBLE_PRECISION == 1
|
|
|
|
m.attr("LASP_DOUBLE_PRECISION") = true;
|
|
|
|
#else
|
|
|
|
m.attr("LASP_DOUBLE_PRECISION") = false;
|
|
|
|
#endif
|
|
|
|
|
2022-07-20 12:58:48 +00:00
|
|
|
init_dsp(m);
|
|
|
|
init_deviceinfo(m);
|
|
|
|
init_daqconfiguration(m);
|
|
|
|
init_daq(m);
|
|
|
|
init_streammgr(m);
|
2022-07-29 07:32:26 +00:00
|
|
|
init_datahandler(m);
|
2022-09-22 19:02:41 +00:00
|
|
|
init_siggen(m);
|
2022-07-20 12:58:48 +00:00
|
|
|
}
|
2024-06-03 15:28:51 +00:00
|
|
|
/** @} */
|