GNU Radio Manual and C++ API Reference  3.10.7.0
The Free & Open Software Radio Ecosystem
pdu_to_tagged_stream.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 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_PDU_PDU_TO_TAGGED_STREAM_H
12 #define INCLUDED_PDU_PDU_TO_TAGGED_STREAM_H
13 
14 #include <gnuradio/pdu.h>
15 #include <gnuradio/pdu/api.h>
17 
18 namespace gr {
19 namespace pdu {
20 
21 /*!
22  * \brief Turns received PDUs into a tagged stream of items
23  * \ingroup message_tools_blk
24  */
26 {
27 public:
28  // gr::pdu::pdu_to_tagged_stream::sptr
29  typedef std::shared_ptr<pdu_to_tagged_stream> sptr;
30 
31  /*!
32  * \brief Construct a pdu_to_tagged_stream block
33  * \param type PDU type of gr::types::vector_type
34  * \param lengthtagname The name of the tag that specifies how long the packet is.
35  * Defaults to 'packet_len'.
36  */
37  static sptr make(gr::types::vector_type type,
38  const std::string& lengthtagname = "packet_len");
39 };
40 
41 } /* namespace pdu */
42 } /* namespace gr */
43 
44 #endif /* INCLUDED_PDU_PDU_TO_TAGGED_STREAM_H */
Block that operates on PDUs in form of tagged streamsOverride work to provide the signal processing i...
Definition: tagged_stream_block.h:25
Turns received PDUs into a tagged stream of items.
Definition: pdu_to_tagged_stream.h:25
#define PDU_API
Definition: gr-pdu/include/gnuradio/pdu/api.h:18
GR_RUNTIME_API const pmt::pmt_t pdu()
std::shared_ptr< pdu_to_tagged_stream > sptr
Definition: pdu_to_tagged_stream.h:29
GNU Radio logging wrapper.
Definition: basic_block.h:29
vector_type
Definition: pdu.h:44