|
GNU Radio's SATELLITES Package
|
Fixedlen to PDU. More...
#include <fixedlen_to_pdu.h>
Public Types | |
| typedef std::shared_ptr< fixedlen_to_pdu > | sptr |
Static Public Member Functions | |
| static sptr | make (types::vector_type type, const std::string &syncword_tag, size_t packet_len, bool pack=false, const std::string &packet_len_tag_key="") |
Fixedlen to PDU.
Extracts PDUs of fixed maximum length according to syncword tags.
Given an input stream containing tags that mark the location of frames, this block extracts PDUs starting at the location of those tags. The length of the PDUs is determined by either the presence of a packet length tag, if a key for this tag has been specified and such tag is present in the first item of the frame, or by the maximum packet length otherwise. The data in the PDUs may overlap if tags are spaced less than the PDU length.
| typedef std::shared_ptr<fixedlen_to_pdu> gr::satellites::fixedlen_to_pdu::sptr |
|
static |
Make a Fixedlen to PDU block.
| type | Input stream type. |
| syncword_tag | Name of the syncword tags to use. |
| packet_len | Maximum PDU length, in items of the input stream. |
| pack | When the input type is bytes and this option is enabled, 8 bits per byte are packed in the output PDU. The packet length should correspond to the number of bits, and be a multiple of 8. |
| packet_len_tag_key | Key of the syncword tag to use for packet length. If this key is empty, the max packet length is used for all the packets. |