Converts a stream of bytes with 1 bit in the LSB to a byte with k relevent bits. More...
#include <gnuradio/blocks/pack_k_bits_bb.h>
Public Types | |
typedef boost::shared_ptr < pack_k_bits_bb > | sptr |
Static Public Member Functions | |
static sptr | make (unsigned k) |
Make a pack_k_bits block. |
Additional Inherited Members | |
![]() | |
unsigned | decimation () const |
void | set_decimation (unsigned decimation) |
void | forecast (int noutput_items, gr_vector_int &ninput_items_required) |
Estimate input requirements given output request. | |
int | general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
compute output items from input items | |
int | fixed_rate_ninput_to_noutput (int ninput) |
Given ninput samples, return number of output samples that will be produced. N.B. this is only defined if fixed_rate returns true. Generally speaking, you don't need to override this. | |
int | fixed_rate_noutput_to_ninput (int noutput) |
Given noutput samples, return number of input samples required to produce noutput. N.B. this is only defined if fixed_rate returns true. Generally speaking, you don't need to override this. | |
![]() | |
enum | vcolor { WHITE, GREY, BLACK } |
![]() | |
sync_decimator (void) | |
sync_decimator (const std::string &name, gr::io_signature::sptr input_signature, gr::io_signature::sptr output_signature, unsigned decimation) | |
![]() | |
std::vector< long > | d_max_output_buffer |
std::vector< long > | d_min_output_buffer |
gr::thread::mutex | d_setlock |
gr::logger_ptr | d_logger |
gr::logger_ptr | d_debug_logger |
Converts a stream of bytes with 1 bit in the LSB to a byte with k relevent bits.
This block takes in K bytes at a time, and uses the least significant bit to form a new byte.
Example: k = 4 in = [0,1,0,1, 0x81,0x00,0x00,0x00] out = [0x05, 0x08]
|
static |
Make a pack_k_bits block.
k | number of bits to be packed. |