22#ifndef INCLUDED_DIGITAL_PACKET_HEADER_DEFAULT_H
23#define INCLUDED_DIGITAL_PACKET_HEADER_DEFAULT_H
27#include <boost/crc.hpp>
28#include <boost/enable_shared_from_this.hpp>
50 :
public boost::enable_shared_from_this<gr::digital::packet_header_default>
53 typedef boost::shared_ptr<packet_header_default>
sptr;
56 const std::string& len_tag_key =
"packet_len",
57 const std::string& num_tag_key =
"packet_num",
58 int bits_per_byte = 1);
86 const std::vector<tag_t>& tags = std::vector<tag_t>());
93 virtual bool header_parser(
const unsigned char* header, std::vector<tag_t>& tags);
96 const std::string& len_tag_key =
"packet_len",
97 const std::string& num_tag_key =
"packet_num",
98 int bits_per_byte = 1);
107 boost::crc_optimal<8, 0x07, 0xFF, 0x00, false, false>
d_crc_impl;
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:30
Include this header to use the message passing features.
Definition: basic_block.h:45
boost::intrusive_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting). See http://www.boost....
Definition: pmt.h:56