10 #ifndef INCLUDED_DIGITAL_HEADER_FORMAT_DEFAULT_H
11 #define INCLUDED_DIGITAL_HEADER_FORMAT_DEFAULT_H
71 typedef std::shared_ptr<header_format_default>
sptr;
92 bool format(
int nbytes_in,
93 const unsigned char* input,
127 bool parse(
int nbits_in,
128 const unsigned char* input,
129 std::vector<pmt::pmt_t>& info,
130 int& nbits_processed)
override;
135 size_t header_nbits()
const override;
141 bool set_access_code(
const std::string& access_code);
146 unsigned long long access_code()
const;
152 void set_threshold(
unsigned int thresh = 0);
157 unsigned int threshold()
const;
172 static sptr make(
const std::string& access_code,
int threshold,
int bps = 1);
191 void enter_have_sync()
override;
194 void enter_have_header(
int payload_len)
override;
197 bool header_ok()
override;
202 int header_payload()
override;
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83