GNU Radio's SATELLITES Package
gr::satellites::fixedlen_to_pdu Class Reference

Fixedlen to PDU. More...

#include <fixedlen_to_pdu.h>

Inheritance diagram for gr::satellites::fixedlen_to_pdu:
gr::satellites::fixedlen_to_pdu_impl

Public Types

typedef std::shared_ptr< fixedlen_to_pdusptr
 

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="")
 

Detailed Description

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.

Member Typedef Documentation

◆ sptr

Member Function Documentation

◆ make()

static sptr gr::satellites::fixedlen_to_pdu::make ( types::vector_type  type,
const std::string &  syncword_tag,
size_t  packet_len,
bool  pack = false,
const std::string &  packet_len_tag_key = "" 
)
static

Make a Fixedlen to PDU block.

Parameters
typeInput stream type.
syncword_tagName of the syncword tags to use.
packet_lenMaximum PDU length, in items of the input stream.
packWhen 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_keyKey of the syncword tag to use for packet length. If this key is empty, the max packet length is used for all the packets.

The documentation for this class was generated from the following file: