22 #ifndef INCLUDED_DIGITAL_HEADER_FORMAT_OFDM_H
23 #define INCLUDED_DIGITAL_HEADER_FORMAT_OFDM_H
28 #include <boost/crc.hpp>
64 const std::string &len_key_name=
"packet_len",
65 const std::string &frame_key_name=
"frame_len",
66 const std::string &num_key_name=
"packet_num",
67 int bits_per_header_sym=1,
68 int bits_per_payload_sym=1,
69 bool scramble_header=
false);
82 virtual bool format(
int nbytes_in,
83 const unsigned char *input,
87 virtual bool parse(
int nbits_in,
88 const unsigned char *input,
89 std::vector<pmt::pmt_t> &info,
90 int &nbits_processed);
95 virtual size_t header_nbits()
const;
101 static sptr make(
const std::vector<std::vector<int> > &occupied_carriers,
103 const std::string &len_key_name=
"packet_len",
104 const std::string &frame_key_name=
"frame_len",
105 const std::string &num_key_name=
"packet_num",
106 int bits_per_header_sym=1,
107 int bits_per_payload_sym=1,
108 bool scramble_header=
false);
121 virtual int header_payload();
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:30
Include this header to use the message passing features.
Definition: logger.h:131
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