From 2a575bf9b5a4942f60e979161764b9e942699e1e Mon Sep 17 00:00:00 2001 From: Lars Amsel Date: Fri, 4 Jun 2021 08:27:50 +0200 Subject: uhd: Add support for the USRP X410 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lars Amsel Co-authored-by: Michael Auchter Co-authored-by: Martin Braun Co-authored-by: Paul Butler Co-authored-by: Cristina Fuentes Co-authored-by: Humberto Jimenez Co-authored-by: Virendra Kakade Co-authored-by: Lane Kolbly Co-authored-by: Max Köhler Co-authored-by: Andrew Lynch Co-authored-by: Grant Meyerhoff Co-authored-by: Ciro Nishiguchi Co-authored-by: Thomas Vogel --- mpm/python/pyusrp_periphs/x4xx/pyusrp_periphs.cpp | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 mpm/python/pyusrp_periphs/x4xx/pyusrp_periphs.cpp (limited to 'mpm/python/pyusrp_periphs') diff --git a/mpm/python/pyusrp_periphs/x4xx/pyusrp_periphs.cpp b/mpm/python/pyusrp_periphs/x4xx/pyusrp_periphs.cpp new file mode 100644 index 000000000..31b1ed6c4 --- /dev/null +++ b/mpm/python/pyusrp_periphs/x4xx/pyusrp_periphs.cpp @@ -0,0 +1,27 @@ +// +// Copyright 2019 Ettus Research, a National Instruments Brand +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#include +namespace py = pybind11; +#define LIBMPM_PYTHON + +// Allow boost::shared_ptr to be a holder class of an object (PyBind11 +// supports std::shared_ptr and std::unique_ptr out of the box) +#include +PYBIND11_DECLARE_HOLDER_TYPE(T, boost::shared_ptr); + +#include +#include +#include +#include + +PYBIND11_MODULE(libpyusrp_periphs, m) +{ + export_types(m); + export_spi(m); + export_i2c(m); + export_rfdc(m); +} -- cgit v1.2.3