22 #ifndef INCLUDED_DIGITAL_HEADER_FORMAT_OFDM_H 23 #define INCLUDED_DIGITAL_HEADER_FORMAT_OFDM_H 28 #include <boost/crc.hpp> 63 const std::string& len_key_name =
"packet_len",
64 const std::string& frame_key_name =
"frame_len",
65 const std::string& num_key_name =
"packet_num",
66 int bits_per_header_sym = 1,
67 int bits_per_payload_sym = 1,
68 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);
112 const std::vector<std::vector<int>>
123 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