aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python')
-rw-r--r--mpm/python/lmk02848_py.hpp13
-rw-r--r--mpm/python/pyusrp_periphs.cpp1
2 files changed, 14 insertions, 0 deletions
diff --git a/mpm/python/lmk02848_py.hpp b/mpm/python/lmk02848_py.hpp
new file mode 100644
index 000000000..5b0b89a1c
--- /dev/null
+++ b/mpm/python/lmk02848_py.hpp
@@ -0,0 +1,13 @@
+#include "../../host/lib/usrp/common/lmk04828.hpp"
+
+#ifdef LIBMPM_PYTHON
+void export_(){
+ LIBMPM_BOOST_PREAMBLE("lmk04828")
+ bp::class_<lmk04828_iface>("lmk04828", bp::init<lmk04828_iface::write_fn_t, lmk04828_iface::read_fn_t>())
+ .def("verify_chip_id", &lmk04828_iface::verify_chip_id)
+ .def("get_chip_id", &lmk04828_iface::get_chip_id)
+ .def("init", &lmk04828_iface::init)
+ .def("send_sysref_pulse", &lmk04828_iface::send_sysref_pulse)
+ ;
+}
+#endif
diff --git a/mpm/python/pyusrp_periphs.cpp b/mpm/python/pyusrp_periphs.cpp
index 9f6378763..77d358eca 100644
--- a/mpm/python/pyusrp_periphs.cpp
+++ b/mpm/python/pyusrp_periphs.cpp
@@ -31,6 +31,7 @@
#include "mpm/ad937x/ad937x_ctrl.hpp"
#include "mpm/lmk04828//lmk04828_spi_iface.hpp"
#include "mpm/dboards/magnesium_manager.hpp"
+#include "lmk02848_py.hpp"
//#include "lib_periphs.hpp"
//#include "dboards.hpp"
#include <boost/noncopyable.hpp>