From 1a4348038d0eb57d53475074dca49e8192aeb2d7 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 8 Mar 2017 09:28:55 -0800 Subject: Initial commit for N3xx development. - Creates mpm/ subdirectory - First pass at hardware daemon/MPM - New code for LMK04828, AD9371 - spidev integration Contributions by: Martin Braun Derek Kozel Mark Meserve Andrej Rode --- mpm/python/n310_periphs.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 mpm/python/n310_periphs.cpp (limited to 'mpm/python/n310_periphs.cpp') diff --git a/mpm/python/n310_periphs.cpp b/mpm/python/n310_periphs.cpp new file mode 100644 index 000000000..42fea61b1 --- /dev/null +++ b/mpm/python/n310_periphs.cpp @@ -0,0 +1,21 @@ +#include "n310_periphs.hpp" +#include "../n310/periph_manager.hpp" +#include +#include + +namespace bp = boost::python; + +void export_n3xx(){ + //Register submodule types + bp::object n3xx_module(bp::handle<>(bp::borrowed(PyImport_AddModule("libpyusrp_periphs.n3xx")))); + bp::scope().attr("n3xx") = n3xx_module; + bp::scope io_scope = n3xx_module; + + bp::class_("dboard_periph_manager", bp::no_init) + .def("get_clock_gen()", &mpm::n3xx::n3xx_dboard_periph_manager::get_clock_gen) + ; + bp::class_ >("periph_manager", bp::init()) + .def("get_dboard_A", &mpm::n3xx::periph_manager::get_dboard_A) + ; +} + -- cgit v1.2.3