summaryrefslogtreecommitdiffstats
path: root/include/usrp_uhd/device.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-01-21 19:05:30 -0800
committerJosh Blum <josh@joshknows.com>2010-01-21 19:05:30 -0800
commit069a7ce0570001ea3d9512a11d238ea4d6773f1d (patch)
treecf38f9c1745d0054d8775551b1caedf5522f55b2 /include/usrp_uhd/device.hpp
parente3483c7451d20b7ed1d8d4865e15751f18cdef78 (diff)
downloaduhd-069a7ce0570001ea3d9512a11d238ea4d6773f1d.tar.gz
uhd-069a7ce0570001ea3d9512a11d238ea4d6773f1d.tar.bz2
uhd-069a7ce0570001ea3d9512a11d238ea4d6773f1d.zip
Added more to the mboard test and the usrp device.
Diffstat (limited to 'include/usrp_uhd/device.hpp')
-rw-r--r--include/usrp_uhd/device.hpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/include/usrp_uhd/device.hpp b/include/usrp_uhd/device.hpp
index ad2d3b368..32d58b21f 100644
--- a/include/usrp_uhd/device.hpp
+++ b/include/usrp_uhd/device.hpp
@@ -26,9 +26,15 @@ public:
typedef boost::shared_ptr<device> sptr;
//argument types for send and recv raw methods
- typedef std::vector<boost::asio::const_buffer> send_args_t;
+ //the send args is an array of buffers
+ //the recv args is a callback that takes a buffer
+ typedef std::vector<boost::asio::const_buffer> send_args_t;
typedef boost::function<bool(const boost::asio::const_buffer &)> recv_args_t;
+ //structors
+ device(void);
+ virtual ~device(void);
+
/*!
* \brief Discover usrp devices attached to the host.
*
@@ -54,16 +60,6 @@ public:
static sptr make(const device_addr_t & hint, size_t which = 0);
/*!
- * Constructor: Called in derived classes.
- */
- device(void);
-
- /*!
- * Deconstructor: called automatically by the shared pointer.
- */
- virtual ~device(void);
-
- /*!
* Get the device address for this board.
*/
device_addr_t get_device_addr(void);
@@ -74,8 +70,6 @@ public:
//connect dsps and subdevs
void connect(const wax::type &src, const wax::type &sink);
-
-private:
};
} //namespace usrp_uhd