Tagged Stream to PDU: Difference between revisions
Jump to navigation
Jump to search
(add note for 3.10) |
(Add links to source files) |
||
Line 20: | Line 20: | ||
; C++ files | ; C++ files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-pdu/lib/tagged_stream_to_pdu_impl.cc tagged_stream_to_pdu_impl.cc] | ||
; Header files | ; Header files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-pdu/include/gnuradio/pdu/tagged_stream_to_pdu.h tagged_stream_to_pdu.h] | ||
; Public header files | ; Public header files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-pdu/lib/tagged_stream_to_pdu_impl.h tagged_stream_to_pdu_impl.h] | ||
; Block definition | ; Block definition | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-pdu/grc/pdu_tagged_stream_to_pdu.block.yml pdu_tagged_stream_to_pdu.block.yml] |
Revision as of 12:51, 10 May 2025
Turns received stream data and tags into PDUs and sends them through a message port.
The sent message is a PMT-pair (created by pmt::cons()). The first element is a dictionary containing all the tags. The second is a vector containing the actual data.
Note for 3.10 This block has been moved from gr-blocks to gr-pdu, which causes a name change of the id. See Porting_Existing_Flowgraphs_to_a_Newer_Version#PDU_blocks_moved_from_gr-blocks_to_gr-pdu for details.
Parameters
- Length tag name
- The name of the tag that specifies how long the packet is.
Example Flowgraph
This flowgraph can be found at [1]
Source Files
- C++ files
- tagged_stream_to_pdu_impl.cc
- Header files
- tagged_stream_to_pdu.h
- Public header files
- tagged_stream_to_pdu_impl.h
- Block definition
- pdu_tagged_stream_to_pdu.block.yml