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);
61 sptr
base() {
return shared_from_this(); };
84 virtual bool header_formatter(
long packet_len,
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);
95 static sptr make(
long header_len,
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;
boost::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting). See http://www.boost.org/libs/smart_ptr/smart_ptr.htm
Definition: pmt.h:96
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:30
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43