Converts a byte with k relevent bits to k output bytes with 1 bit in the LSB. More...
#include <gnuradio/blocks/unpack_k_bits_bb.h>
Public Types | |
typedef boost::shared_ptr < unpack_k_bits_bb > | sptr |
Static Public Member Functions | |
static sptr | make (unsigned k) |
Make an unpack_k_bits block. |
Additional Inherited Members | |
![]() | |
unsigned | interpolation () const |
void | set_interpolation (unsigned interpolation) |
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_interpolator (void) | |
sync_interpolator (const std::string &name, gr::io_signature::sptr input_signature, gr::io_signature::sptr output_signature, unsigned interpolation) | |
![]() | |
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 byte with k relevent bits to k output bytes with 1 bit in the LSB.
This block picks the K least significant bits from a byte, and expands them into K bytes of 0 or 1.
Example: k = 4 in = [0xf5, 0x08] out = [0,1,0,1, 1,0,0,0]
|
static |
Make an unpack_k_bits block.
k | number of bits to unpack. |