22 #ifndef INCLUDED_DIGITAL_HEADER_FORMAT_CRC_H 23 #define INCLUDED_DIGITAL_HEADER_FORMAT_CRC_H 28 #include <boost/crc.hpp> 62 const std::string& num_key_name =
"packet_num");
78 virtual bool format(
int nbytes_in,
79 const unsigned char* input,
83 virtual bool parse(
int nbits_in,
84 const unsigned char* input,
85 std::vector<pmt::pmt_t>& info,
86 int& nbits_processed);
91 virtual size_t header_nbits()
const;
97 static sptr make(
const std::string& len_key_name =
"packet_len",
98 const std::string& num_key_name =
"packet_num");
104 boost::crc_optimal<8, 0x07, 0xFF, 0x00, false, false>
d_crc_impl;
107 virtual bool header_ok();
112 virtual int header_payload();
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