11 #ifndef INCLUDED_GR_BLOCKS_PACK_K_BITS_H
12 #define INCLUDED_GR_BLOCKS_PACK_K_BITS_H
56 void pack(
unsigned char* bytes,
const unsigned char* bits,
int nbytes)
const;
61 void pack_rev(
unsigned char* bytes,
const unsigned char* bits,
int nbytes)
const;
Converts a vector of bytes with 1 bit in the LSB to a byte with k relevant bits.
Definition: pack_k_bits.h:36
pack_k_bits(unsigned k)
Make a pack_k_bits object.
void pack_rev(unsigned char *bytes, const unsigned char *bits, int nbytes) const
void pack(unsigned char *bytes, const unsigned char *bits, int nbytes) const
Perform the packing.
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29