22 #ifndef INCLUDED_DIGITAL_HEADER_FORMAT_DEFAULT_H 23 #define INCLUDED_DIGITAL_HEADER_FORMAT_DEFAULT_H 30 #include <boost/enable_shared_from_this.hpp> 104 virtual bool format(
int nbytes_in,
105 const unsigned char* input,
139 virtual bool parse(
int nbits_in,
140 const unsigned char* input,
141 std::vector<pmt::pmt_t>& info,
142 int& nbits_processed);
147 virtual size_t header_nbits()
const;
153 bool set_access_code(
const std::string& access_code);
158 unsigned long long access_code()
const;
164 void set_threshold(
unsigned int thresh = 0);
169 unsigned int threshold()
const;
184 static sptr make(
const std::string& access_code,
int threshold,
int bps = 1);
203 virtual void enter_have_sync();
206 virtual void enter_have_header(
int payload_len);
209 virtual bool header_ok();
214 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