diff options
Diffstat (limited to 'mpm/dboards')
-rw-r--r-- | mpm/dboards/magnesium_manager.hpp | 10 |
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 |