diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-29 21:53:38 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-29 21:53:38 -0700 |
commit | bc9c9f551a2b8c3bdab4e61c0d63f8377694da2c (patch) | |
tree | 9f0d009db24e3596e7296d7ef4bd2fba930fa334 /host/lib/usrp/b100/b100_ctrl.hpp | |
parent | ba088e27b054ddec8e5ec05f53da113f92c2be07 (diff) | |
download | uhd-bc9c9f551a2b8c3bdab4e61c0d63f8377694da2c.tar.gz uhd-bc9c9f551a2b8c3bdab4e61c0d63f8377694da2c.tar.bz2 uhd-bc9c9f551a2b8c3bdab4e61c0d63f8377694da2c.zip |
b100: removed old impl files, moved async processing to io impl
Diffstat (limited to 'host/lib/usrp/b100/b100_ctrl.hpp')
-rw-r--r-- | host/lib/usrp/b100/b100_ctrl.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/usrp/b100/b100_ctrl.hpp b/host/lib/usrp/b100/b100_ctrl.hpp index 85e7530f3..eda194ece 100644 --- a/host/lib/usrp/b100/b100_ctrl.hpp +++ b/host/lib/usrp/b100/b100_ctrl.hpp @@ -27,17 +27,20 @@ #include <boost/utility.hpp> #include "ctrl_packet.hpp" #include <boost/thread.hpp> +#include <boost/function.hpp> class b100_ctrl : boost::noncopyable, public wb_iface{ public: typedef boost::shared_ptr<b100_ctrl> sptr; + typedef boost::function<void(uhd::transport::managed_recv_buffer::sptr)> async_cb_type; /*! * Make a USRP control object from a data transport * \param ctrl_transport a USB data transport + * \param async_cb the callback for async messages * \return a new b100 control object */ - static sptr make(uhd::transport::zero_copy_if::sptr ctrl_transport); + static sptr make(uhd::transport::zero_copy_if::sptr ctrl_transport, const async_cb_type &async_cb); /*! * Write a byte vector to an FPGA register @@ -63,8 +66,6 @@ public: */ virtual bool get_ctrl_data(ctrl_data_t &pkt_data, double timeout) = 0; - virtual bool recv_async_msg(uhd::async_metadata_t &async_metadata, double timeout) = 0; - }; #endif /* INCLUDED_B100_CTRL_HPP */ |