22 #ifndef INCLUDED_DIGITAL_HEADER_BUFFER_H 23 #define INCLUDED_DIGITAL_HEADER_BUFFER_H 174 std::vector<bool> d_input;
218 const uint8_t* header()
const;
227 void add_field8(uint8_t data,
int len = 8,
bool bs =
false);
236 void add_field16(uint16_t data,
int len = 16,
bool bs =
false);
245 void add_field32(uint32_t data,
int len = 32,
bool bs =
false);
254 void add_field64(uint64_t data,
int len = 64,
bool bs =
false);
268 void insert_bit(
int bit);
277 uint8_t extract_field8(
int pos,
int len = 8,
bool bs =
false);
286 uint16_t extract_field16(
int pos,
int len = 16,
bool bs =
false);
295 uint32_t extract_field32(
int pos,
int len = 32,
bool bs =
false);
304 uint64_t extract_field64(
int pos,
int len = 64,
bool bs =
false);
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:30
Single writer, multiple reader fifo.
Definition: buffer.h:56
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
PMT_API size_t length(const pmt_t &v)
Return the number of elements in v.