<?xml version="1.0"?>
<!--
###################################################
## PDU Message to Tagged Stream
###################################################
 -->
<block>
  <name>PDU to Tagged Stream</name>
  <key>blocks_pdu_to_tagged_stream</key>
  <import>from gnuradio import blocks</import>
  <make>blocks.pdu_to_tagged_stream($type.tv, $tag)</make>
  <param>
    <name>Item Type</name>
    <key>type</key>
    <type>enum</type>
    <option>
      <name>Byte</name>
      <key>byte</key>
      <opt>tv:blocks.byte_t</opt>
    </option>
    <option>
      <name>Complex</name>
      <key>complex</key>
      <opt>tv:blocks.complex_t</opt>
    </option>
    <option>
      <name>Float</name>
      <key>float</key>
      <opt>tv:blocks.float_t</opt>
    </option>
  </param>
  <param>
    <name>Length tag name</name>
    <key>tag</key>
    <value>packet_len</value>
    <type>string</type>
  </param>
  <sink>
    <name>pdus</name>
    <type>message</type>
  </sink>
  <source>
    <name>out</name>
    <type>$type</type>
  </source>
</block>
