// // Copyright 2010 Ettus Research LLC // #ifndef INCLUDED_USRP_UHD_HPP #define INCLUDED_USRP_UHD_HPP #include #include #include #include #include #include namespace usrp{ class uhd{ public: typedef boost::shared_ptr sptr; typedef boost::function recv_hdlr_t; uhd(usrp_addr_t usrp_addr); ~uhd(void); //the io interface void send(const std::vector &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 #endif /* INCLUDED_USRP_UHD_HPP */