18 #ifndef INCLUDED_UHD_DEVICE_HPP 19 #define INCLUDED_UHD_DEVICE_HPP 27 #include <boost/utility.hpp> 28 #include <boost/shared_ptr.hpp> 29 #include <boost/function.hpp> 40 typedef boost::shared_ptr<device>
sptr;
41 typedef boost::function<device_addrs_t(const device_addr_t &)>
find_t;
42 typedef boost::function<sptr(const device_addr_t &)>
make_t;
50 static void register_device(
77 static sptr make(
const device_addr_t &hint,
size_t which = 0);
84 SEND_MODE_FULL_BUFF = 0,
86 SEND_MODE_ONE_PACKET = 1
94 RECV_MODE_FULL_BUFF = 0,
96 RECV_MODE_ONE_PACKET = 1
130 const send_buffs_type &buffs,
131 size_t nsamps_per_buff,
170 const recv_buffs_type &buffs,
171 size_t nsamps_per_buff,
182 virtual size_t get_max_send_samps_per_packet(
void)
const = 0;
188 virtual size_t get_max_recv_samps_per_packet(
void)
const = 0;
196 virtual bool recv_async_msg(
send_mode_t
Definition: device.hpp:82
recv_mode_t
Definition: device.hpp:92
boost::shared_ptr< device > sptr
Definition: device.hpp:40
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
Definition: ref_vector.hpp:30
ref_vector< void * > recv_buffs_type
Typedef for a pointer to a single, or a collection of recv buffers.
Definition: device.hpp:103
std::vector< device_addr_t > device_addrs_t
A typedef for a vector of device addresses.
Definition: device_addr.hpp:88
boost::function< sptr(const device_addr_t &)> make_t
Definition: device.hpp:42
ref_vector< const void * > send_buffs_type
Typedef for a pointer to a single, or a collection of send buffers.
Definition: device.hpp:100
Definition: io_type.hpp:29
Definition: device.hpp:37
boost::function< device_addrs_t(const device_addr_t &)> find_t
Definition: device.hpp:41
Definition: device_addr.hpp:47