 |
USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-2+b1
UHD and USRP Manual
|
|
Go to the documentation of this file.
8 #ifndef INCLUDED_UHD_UTILS_MSG_TASK_HPP
9 #define INCLUDED_UHD_UTILS_MSG_TASK_HPP
14 #include <boost/function.hpp>
15 #include <boost/optional/optional.hpp>
16 #include <boost/shared_ptr.hpp>
24 typedef boost::shared_ptr<msg_task>
sptr;
27 typedef boost::function<boost::optional<msg_type_t>(
void)>
task_fcn_type;
34 virtual msg_payload_t get_msg_from_dump_queue(uint32_t sid) = 0;
39 std::vector<uint8_t> v(n);
40 memcpy(&v.front(), p, n);
43 return std::vector<uint8_t>();
64 static sptr make(
const task_fcn_type& task_fcn);
#define UHD_INLINE
Definition: config.h:53
#define UHD_API
Definition: config.h:68
static UHD_INLINE std::vector< uint8_t > buff_to_vector(uint8_t *p, size_t n)
Definition: msg_task.hpp:36
boost::shared_ptr< msg_task > sptr
Definition: msg_task.hpp:24
std::vector< uint8_t > msg_payload_t
Definition: msg_task.hpp:25
Definition: build_info.hpp:13
std::pair< uint32_t, msg_payload_t > msg_type_t
Definition: msg_task.hpp:26
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
Definition: msg_task.hpp:21
boost::function< boost::optional< msg_type_t >void)> task_fcn_type
Definition: msg_task.hpp:27