GNU Radio's SATELLITES Package
|
insert a packet length field into a tagged stream More...
#include <varlen_packet_framer.h>
Public Types | |
typedef std::shared_ptr< varlen_packet_framer > | sptr |
Static Public Member Functions | |
static sptr | make (const std::string &packet_key, int length_field_size, endianness_t endianness, bool use_golay, const std::vector< uint8_t > sync_word) |
insert a packet length field into a tagged stream
input: stream of bits (unpacked bytes) with packet_len tags output: a tagged stream of bits containing field length + packet bits
This block prepends a packet length field into a tagged stream.
typedef std::shared_ptr<varlen_packet_framer> gr::satellites::varlen_packet_framer::sptr |
|
static |
packet_key | tag key used to mark packets |
length_field_size | size of the packet length header |
endianness | header inserted msb or lsb |
use_golay | compute 24-bit golay header from 12-bit length |
sync_word | optional pre-header sync pattern |