 |
USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-3build3
UHD and USRP Manual
|
|
Go to the documentation of this file.
8 #ifndef INCLUDED_UHD_DEVICE_HPP
9 #define INCLUDED_UHD_DEVICE_HPP
17 #include <boost/function.hpp>
18 #include <boost/shared_ptr.hpp>
31 typedef boost::shared_ptr<device>
sptr;
virtual bool recv_async_msg(async_metadata_t &async_metadata, double timeout=0.1)=0
boost::shared_ptr< rx_streamer > sptr
Definition: stream.hpp:173
std::vector< device_addr_t > device_addrs_t
A typedef for a vector of device addresses.
Definition: device_addr.hpp:88
boost::shared_ptr< tx_streamer > sptr
Definition: stream.hpp:251
virtual rx_streamer::sptr get_rx_stream(const stream_args_t &args)=0
Make a new receive streamer from the streamer arguments.
uhd::property_tree::sptr _tree
Definition: device.hpp:108
#define UHD_API
Definition: config.h:68
static sptr make(const device_addr_t &hint, device_filter_t filter=ANY, size_t which=0)
Create a new device from the device address hint.
Definition: device_addr.hpp:39
boost::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:217
@ USRP
Definition: device.hpp:36
Definition: build_info.hpp:13
static void register_device(const find_t &find, const make_t &make, const device_filter_t filter)
device_filter_t get_device_type() const
Get device type.
Definition: stream.hpp:60
virtual tx_streamer::sptr get_tx_stream(const stream_args_t &args)=0
Make a new transmit streamer from the streamer arguments.
boost::function< sptr(const device_addr_t &)> make_t
Definition: device.hpp:33
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
device_filter_t _type
Definition: device.hpp:109
device_filter_t
Device type, used as a filter in make.
Definition: device.hpp:36
static device_addrs_t find(const device_addr_t &hint, device_filter_t filter=ANY)
Find devices attached to the host.
uhd::property_tree::sptr get_tree(void) const
Get access to the underlying property structure.
Definition: device.hpp:29
boost::shared_ptr< device > sptr
Definition: device.hpp:31
boost::function< device_addrs_t(const device_addr_t &)> find_t
Definition: device.hpp:32