22 #ifndef INCLUDED_DIGITAL_HEADER_FORMAT_DEFAULT_H
23 #define INCLUDED_DIGITAL_HEADER_FORMAT_DEFAULT_H
30 #include <boost/enable_shared_from_this.hpp>
105 virtual bool format(
int nbytes_in,
106 const unsigned char *input,
140 virtual bool parse(
int nbits_in,
141 const unsigned char *input,
142 std::vector<pmt::pmt_t> &info,
143 int &nbits_processed);
148 virtual size_t header_nbits()
const;
154 bool set_access_code(
const std::string &access_code);
159 unsigned long long access_code()
const;
165 void set_threshold(
unsigned int thresh=0);
170 unsigned int threshold()
const;
183 static sptr make(
const std::string &access_code,
int threshold);
200 virtual void enter_have_sync();
203 virtual void enter_have_header(
int payload_len);
206 virtual bool header_ok();
211 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