aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/dboards
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-03-21 19:46:50 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:44 -0800
commitef6326a174e6880be5e2eaeac26a2c5de0768807 (patch)
treec949545e02390745c3a373e657bcf2404e62e191 /mpm/dboards
parentb29246a9e2d7ed1e03e44cfc6804615fcfa5a5d8 (diff)
downloaduhd-ef6326a174e6880be5e2eaeac26a2c5de0768807.tar.gz
uhd-ef6326a174e6880be5e2eaeac26a2c5de0768807.tar.bz2
uhd-ef6326a174e6880be5e2eaeac26a2c5de0768807.zip
mpm: python refactoring
Diffstat (limited to 'mpm/dboards')
-rw-r--r--mpm/dboards/magnesium_manager.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/mpm/dboards/magnesium_manager.hpp b/mpm/dboards/magnesium_manager.hpp
index ca8a7e123..3c8f038ed 100644
--- a/mpm/dboards/magnesium_manager.hpp
+++ b/mpm/dboards/magnesium_manager.hpp
@@ -48,3 +48,13 @@ namespace mpm { namespace dboards {
}};
+
+#ifdef LIBMPM_PYTHON
+void export_dboards(){
+ LIBMPM_BOOST_PREAMBLE("dboards")
+ bp::class_<mpm::dboards::magnesium_periph_manager>("magnesium_periph_manager", bp::init<std::string, std::string>())
+ .def("get_clock_ctrl", &mpm::dboards::magnesium_periph_manager::get_clock_ctrl)
+ .def("get_radio_ctrl", &mpm::dboards::magnesium_periph_manager::get_radio_ctrl)
+ ;
+}
+#endif