From b29246a9e2d7ed1e03e44cfc6804615fcfa5a5d8 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Tue, 21 Mar 2017 19:43:22 -0700 Subject: mpm: add make factory to lmk04828 spi iface --- mpm/include/lmk/lmk04828_spi_iface.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mpm/include') diff --git a/mpm/include/lmk/lmk04828_spi_iface.hpp b/mpm/include/lmk/lmk04828_spi_iface.hpp index 3338bd6d1..013271af1 100644 --- a/mpm/include/lmk/lmk04828_spi_iface.hpp +++ b/mpm/include/lmk/lmk04828_spi_iface.hpp @@ -1,12 +1,15 @@ #include "lmk04828.hpp" #include "uhd/types/serial.hpp" +#include class lmk04828_spi_iface { public: + using sptr = boost::shared_ptr; lmk04828_spi_iface(uhd::spi_iface::sptr iface); lmk04828_iface::write_fn_t get_write_fn(); lmk04828_iface::read_fn_t get_read_fn(); + static sptr make(uhd::spi_iface::sptr iface); private: const int LMK_SPI_NUM_BITS = 24; -- cgit v1.2.3