mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-16 21:10:10 +00:00
- Turns the E310 into an MPM device (like N3xx, E320) - Factor out common code between E320 and E310, maximize sharing between the two devices - Remove all pre-MPM E310 code that is no longer needed - Modify MPM to remove all existing overlays before applying new ones (this is necessary to enable idle image mode for E310) Co-authored-by: Virendra Kakade <virendra.kakade@ni.com> Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
30 lines
821 B
C++
30 lines
821 B
C++
//
|
|
// Copyright 2018 Ettus Research, a National Instruments Company
|
|
// Copyright 2019 Ettus Research, a National Instruments Brand
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
//
|
|
|
|
#include <pybind11/pybind11.h>
|
|
namespace py = pybind11;
|
|
#define LIBMPM_PYTHON
|
|
|
|
// Allow boost::shared_ptr<T> to be a holder class of an object (PyBind11
|
|
// supports std::shared_ptr and std::unique_ptr out of the box)
|
|
#include <boost/shared_ptr.hpp>
|
|
PYBIND11_DECLARE_HOLDER_TYPE(T, boost::shared_ptr<T>);
|
|
|
|
#include <mpm/ad9361/ad9361_ctrl.hpp>
|
|
#include <mpm/dboards/e31x_db_manager.hpp>
|
|
#include <mpm/spi/spi_python.hpp>
|
|
#include <mpm/types/types_python.hpp>
|
|
#include <mpm/xbar_iface.hpp>
|
|
|
|
PYBIND11_MODULE(libpyusrp_periphs, m)
|
|
{
|
|
export_types(m);
|
|
export_spi(m);
|
|
export_xbar(m);
|
|
export_catalina(m);
|
|
export_e31x_db(m);
|
|
}
|