diff options
author | Josh Blum <josh@joshknows.com> | 2010-01-16 16:29:31 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-01-16 16:29:31 -0800 |
commit | 5b42b774d9ac1e74fb2916bf58085fe19ecb6720 (patch) | |
tree | b19c441ac2f5d2ff6be09142916775b78a646d9b /include/usrp_uhd.hpp | |
parent | 379d486ed21aace7f8b37d61f713bdc6088b39e5 (diff) | |
download | uhd-5b42b774d9ac1e74fb2916bf58085fe19ecb6720.tar.gz uhd-5b42b774d9ac1e74fb2916bf58085fe19ecb6720.tar.bz2 uhd-5b42b774d9ac1e74fb2916bf58085fe19ecb6720.zip |
Created device interface for discovery, access, configuration...
Diffstat (limited to 'include/usrp_uhd.hpp')
-rw-r--r-- | include/usrp_uhd.hpp | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/include/usrp_uhd.hpp b/include/usrp_uhd.hpp index 1cbd064b7..deaf6e0c6 100644 --- a/include/usrp_uhd.hpp +++ b/include/usrp_uhd.hpp @@ -5,39 +5,7 @@ #ifndef INCLUDED_USRP_UHD_HPP #define INCLUDED_USRP_UHD_HPP -#include <usrp_uhd/device_addr.hpp> -#include <usrp_uhd/wax.hpp> -#include <boost/shared_ptr.hpp> -#include <boost/function.hpp> -#include <vector> -#include <sys/uio.h> - -namespace usrp_uhd{ - - class usrp_uhd{ - - public: - typedef boost::shared_ptr<usrp_uhd> sptr; - typedef boost::function<bool(void *data, size_t len)> recv_hdlr_t; - usrp_uhd(device_addr_t device_addr); - ~usrp_uhd(void); - - //the io interface - void send(const std::vector<iovec> &iovs); - void send(void* data, size_t len); //wrapper - void recv(const recv_hdlr_t &recv_hdlr); - void recv(void* &data, size_t &len); //wrapper - - //connect dsps and subdevs - void connect(const wax::type &src, const wax::type &sink); - - //the properties interface - wax::proxy props(void); - - private: - wax::type d_mboard; - }; - -} //namespace usrp_uhd +//include convenience headers +#include <usrp_uhd/device.hpp> #endif /* INCLUDED_USRP_UHD_HPP */ |