diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2017-03-21 19:46:50 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:44 -0800 |
commit | ef6326a174e6880be5e2eaeac26a2c5de0768807 (patch) | |
tree | c949545e02390745c3a373e657bcf2404e62e191 /mpm/python/n310_periphs.cpp | |
parent | b29246a9e2d7ed1e03e44cfc6804615fcfa5a5d8 (diff) | |
download | uhd-ef6326a174e6880be5e2eaeac26a2c5de0768807.tar.gz uhd-ef6326a174e6880be5e2eaeac26a2c5de0768807.tar.bz2 uhd-ef6326a174e6880be5e2eaeac26a2c5de0768807.zip |
mpm: python refactoring
Diffstat (limited to 'mpm/python/n310_periphs.cpp')
-rw-r--r-- | mpm/python/n310_periphs.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/mpm/python/n310_periphs.cpp b/mpm/python/n310_periphs.cpp deleted file mode 100644 index 42fea61b1..000000000 --- a/mpm/python/n310_periphs.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "n310_periphs.hpp" -#include "../n310/periph_manager.hpp" -#include <boost/python.hpp> -#include <memory> - -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_<mpm::n3xx::n3xx_dboard_periph_manager, boost::noncopyable>("dboard_periph_manager", bp::no_init) - .def("get_clock_gen()", &mpm::n3xx::n3xx_dboard_periph_manager::get_clock_gen) - ; - bp::class_<mpm::n3xx::periph_manager, boost::noncopyable, std::shared_ptr<mpm::n3xx::periph_manager> >("periph_manager", bp::init<std::string>()) - .def("get_dboard_A", &mpm::n3xx::periph_manager::get_dboard_A) - ; -} - |