22 #ifndef INCLUDED_DIGITAL_PACKET_HEADER_DEFAULT_H 23 #define INCLUDED_DIGITAL_PACKET_HEADER_DEFAULT_H 27 #include <boost/enable_shared_from_this.hpp> 28 #include <boost/crc.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",
61 sptr
base() {
return shared_from_this(); };
83 virtual bool header_formatter(
long packet_len,
85 const std::vector<tag_t> &tags=std::vector<tag_t>());
92 virtual bool header_parser(
93 const unsigned char *header,
94 std::vector<tag_t> &tags);
96 static sptr make(
long header_len,
97 const std::string &len_tag_key=
"packet_len",
98 const std::string &num_tag_key=
"packet_num",
108 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: logger.h:695
boost::intrusive_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:56