22 #ifndef INCLUDED_DIGITAL_HEADER_FORMAT_DEFAULT_H 23 #define INCLUDED_DIGITAL_HEADER_FORMAT_DEFAULT_H 30 #include <boost/enable_shared_from_this.hpp> 106 virtual bool format(
int nbytes_in,
107 const unsigned char *input,
141 virtual bool parse(
int nbits_in,
142 const unsigned char *input,
143 std::vector<pmt::pmt_t> &info,
144 int &nbits_processed);
149 virtual size_t header_nbits()
const;
155 bool set_access_code(
const std::string &access_code);
160 unsigned long long access_code()
const;
166 void set_threshold(
unsigned int thresh=0);
171 unsigned int threshold()
const;
186 static sptr make(
const std::string &access_code,
int threshold,
206 virtual void enter_have_sync();
209 virtual void enter_have_header(
int payload_len);
212 virtual bool header_ok();
217 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:695
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