22 #ifndef INCLUDED_DIGITAL_HEADER_BUFFER_H
23 #define INCLUDED_DIGITAL_HEADER_BUFFER_H
173 std::vector<bool> d_input;
217 const uint8_t* header()
const;
226 void add_field8(uint8_t data,
int len=8,
bool bs=
false);
235 void add_field16(uint16_t data,
int len=16,
bool bs=
false);
244 void add_field32(uint32_t data,
int len=32,
bool bs=
false);
253 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:55
Include this header to use the message passing features.
Definition: logger.h:131
PMT_API size_t length(const pmt_t &v)
Return the number of elements in v.