GNU Radio C++ API Reference: amsg_source.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
amsg_source.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2011,2013 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef INCLUDED_GR_UHD_AMSG_SOURCE_H
12#define INCLUDED_GR_UHD_AMSG_SOURCE_H
13
14#include <gnuradio/msg_queue.h>
15#include <gnuradio/uhd/api.h>
16#include <uhd/usrp/multi_usrp.hpp>
17
18namespace gr {
19 namespace uhd {
20
21class uhd_amsg_source;
22
23 class GR_UHD_API amsg_source
24{
25public:
26 // gr::uhd::amsg_source::sptr
27 typedef std::shared_ptr<amsg_source> sptr;
28
29 /*!
30 * \brief Destructor
31 *
32 * This must be explicitly defined because there is no block inheritance
33 * for this class, and thus no virtual destructor pulled into the class
34 * hierarchy for sub-classes.
35 */
36 virtual ~amsg_source() {}
37
38 /*!
39 * \brief Make a new USRP asynchronous message-based source block.
40 * \ingroup uhd_blk
41 */
42 static sptr make(const ::uhd::device_addr_t& device_addr, msg_queue::sptr msgq);
43
44 /*!
45 * Convert a raw asynchronous message to an asynchronous metadata object.
46 * \return The asynchronous metadata object.
47 */
48 static ::uhd::async_metadata_t msg_to_async_metadata_t(const message::sptr msg);
49};
50
51} /* namespace uhd */
52} /* namespace gr */
53
54#endif /* INCLUDED_GR_UHD_AMSG_SOURCE_H */
gr::message::sptr
std::shared_ptr< message > sptr
Definition message.h:30
gr::msg_queue::sptr
std::shared_ptr< msg_queue > sptr
Definition msg_queue.h:35
gr::uhd::amsg_source
Definition amsg_source.h:24
gr::uhd::amsg_source::msg_to_async_metadata_t
::uhd::async_metadata_t msg_to_async_metadata_t(const message::sptr msg)
gr::uhd::amsg_source::~amsg_source
virtual ~amsg_source()
Destructor.
Definition amsg_source.h:36
gr::uhd::amsg_source::sptr
std::shared_ptr< amsg_source > sptr
Definition amsg_source.h:27
api.h
GR_UHD_API
#define GR_UHD_API
Definition gr-uhd/include/gnuradio/uhd/api.h:18
gr::uhd::amsg_source::make
static sptr make(const ::uhd::device_addr_t &device_addr, msg_queue::sptr msgq)
Make a new USRP asynchronous message-based source block.
msg_queue.h
gr::uhd
Definition amsg_source.h:19
gr
GNU Radio logging wrapper.
Definition basic_block.h:29