From f2f1204ea47865cf16e2a27fb3e004baedbb82f8 Mon Sep 17 00:00:00 2001 From: Derek Kozel Date: Tue, 18 Apr 2017 16:04:27 +0100 Subject: lmk: Update LMK04828 driver with values for Magnesium --- mpm/python/lmk02848_py.hpp | 13 +++++++++++++ mpm/python/pyusrp_periphs.cpp | 1 + 2 files changed, 14 insertions(+) create mode 100644 mpm/python/lmk02848_py.hpp (limited to 'mpm/python') 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", bp::init()) + .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 -- cgit v1.2.3