GNU Radio 3.6.4 C++ API
gr::blocks Namespace Reference

Classes

class  add_ff
class  char_to_float
 Convert stream of chars to a stream of float. More...
class  char_to_short
 Convert stream of chars to a stream of short. More...
class  complex_to_arg
 complex in, arg out (float) More...
class  complex_to_float
 convert a stream of gr_complex to 1 or 2 streams of float More...
class  complex_to_imag
 complex in, imag out (float) More...
class  complex_to_interleaved_short
 Convert stream of complex to a stream of interleaved shorts. More...
class  complex_to_mag
 complex in, magnitude out (float) More...
class  complex_to_mag_squared
 complex in, magnitude squared out (float) More...
class  complex_to_real
 complex in, real out (float) More...
class  conjugate_cc
 output = complex conjugate of input More...
class  deinterleave
 deinterleave a single input into N outputs More...
class  delay
 delay the input by a certain number of samples More...
class  file_meta_sink
 Write stream to file with meta-data headers.These files represent data as binary information in between meta-data headers. The headers contain information about the type of data and properties of the data in the next segment of samples. The information includes: More...
class  file_meta_source
 Reads stream from file with meta-data headers. Headers are parsed into tags.The information in the metadata headers includes: More...
class  file_source
 Read stream from file. More...
class  float_to_char
 Convert stream of floats to a stream of char. More...
class  float_to_complex
 one or two floats in, complex out More...
class  float_to_int
 Convert stream of floats to a stream of char. More...
class  float_to_short
 Convert stream of floats to a stream of shorts. More...
class  float_to_uchar
 Convert stream of floats to a stream of unsigned chars. More...
class  int_to_float
 Convert stream of ints to a stream of floats. More...
class  interleave
 interleave N inputs into a single output More...
class  interleaved_short_to_complex
 Convert stream of interleaved shorts to a stream of complex. More...
class  keep_m_in_n
 decimate a stream, keeping one item out of every n. More...
class  keep_one_in_n
 decimate a stream, keeping one item out of every n. More...
class  multiply_cc
class  multiply_conjugate_cc
class  multiply_const_cc
 output = input * complex constant More...
class  multiply_const_ff
 output = input * real constant More...
class  multiply_ff
class  nlog10_ff
 output = n*log10(input) + k More...
class  patterned_interleaver
class  peak_detector2_fb
 Detect the peak of a signalIf a peak is detected, this block outputs a 1, or it outputs 0's. A separate debug output may be connected, to view the internal EWMA described below. More...
class  regenerate_bb
 Detect the peak of a signal and repeat every period samplesIf a peak is detected, this block outputs a 1 repeated every period samples until reset by detection of another 1 on the input or stopped after max_regen regenerations have occurred. More...
class  repeat
 repeat each input 'interp' times More...
class  rms_cf
 RMS average power. More...
class  rms_ff
 RMS average power. More...
class  short_to_char
 Convert stream of shorts to a stream of chars. More...
class  short_to_float
 Convert stream of shorts to a stream of floats. More...
class  stream_mux
 Stream muxing block to multiplex many streams into one with a specified format. More...
class  stream_to_streams
 convert a stream of items into a N streams of itemsConverts a stream of N items into N streams of 1 item. Repeat ad infinitum. More...
class  stream_to_vector
 convert a stream of items into a stream of blocks containing nitems_per_block More...
class  streams_to_stream
 Convert N streams of 1 item into a 1 stream of N itemsConvert N streams of 1 item into 1 stream of N items. Repeat ad infinitum. More...
class  streams_to_vector
 convert N streams of items to 1 stream of vector length N More...
class  stretch_ff
 adjust y-range of an input vector by mapping to range (max-of-input, stipulated-min). Primarily for spectral signature matching by normalizing spectrum dynamic ranges. More...
class  threshold_ff
 Output a 1 or zero based on a threshold value.Test the incoming signal against a threshold. If the signal excedes the hi value, it will output a 1 until the signal falls below the lo value. More...
class  throttle
 throttle flow of samples such that the average rate does not exceed samples_per_sec.input: one stream of itemsize; output: one stream of itemsize More...
class  transcendental
 A block that performs various transcendental math operations. More...
class  uchar_to_float
 Convert stream of unsigned chars to a stream of floats. More...
class  vector_to_stream
 convert a stream of blocks of nitems_per_block items into a stream of items More...
class  vector_to_streams
 Convert 1 stream of vectors of length N to N streams of items. More...
class  add_ff_impl
class  char_to_float_impl
class  char_to_short_impl
class  complex_to_arg_impl
class  complex_to_float_impl
class  complex_to_imag_impl
class  complex_to_interleaved_short_impl
class  complex_to_mag_impl
class  complex_to_mag_squared_impl
class  complex_to_real_impl
class  conjugate_cc_impl
class  deinterleave_impl
class  delay_impl
class  file_meta_sink_impl
class  file_meta_source_impl
class  file_source_impl
class  float_to_char_impl
class  float_to_complex_impl
class  float_to_int_impl
class  float_to_short_impl
class  float_to_uchar_impl
class  int_to_float_impl
class  interleave_impl
class  interleaved_short_to_complex_impl
class  keep_m_in_n_impl
class  keep_one_in_n_impl
class  multiply_cc_impl
class  multiply_conjugate_cc_impl
class  multiply_const_cc_impl
class  multiply_const_ff_impl
class  multiply_ff_impl
class  nlog10_ff_impl
class  patterned_interleaver_impl
class  peak_detector2_fb_impl
class  regenerate_bb_impl
class  repeat_impl
class  rms_cf_impl
 RMS average power. More...
class  rms_ff_impl
 RMS average power. More...
class  short_to_char_impl
class  short_to_float_impl
class  stream_mux_impl
class  stream_to_streams_impl
class  stream_to_vector_impl
class  streams_to_stream_impl
class  streams_to_vector_impl
class  stretch_ff_impl
class  threshold_ff_impl
class  throttle_impl
class  transcendental_impl
class  uchar_to_float_impl
class  vector_to_stream_impl
class  vector_to_streams_impl

Typedefs

typedef int(* work_fcn_type )(int, gr_vector_const_void_star &, gr_vector_void_star &)

Enumerations

enum  gr_file_types {
  GR_FILE_BYTE = 0, GR_FILE_CHAR = 0, GR_FILE_SHORT = 1, GR_FILE_INT,
  GR_FILE_LONG, GR_FILE_LONG_LONG, GR_FILE_FLOAT, GR_FILE_DOUBLE
}

Functions

BLOCKS_API unsigned int count_bits8 (unsigned int x)
 return number of set bits in the low 8 bits of x
BLOCKS_API unsigned int count_bits16 (unsigned int x)
 return number of set bits in the low 16 bits of x
BLOCKS_API unsigned int count_bits32 (unsigned int x)
 return number of set bits in the low 32 bits of x
BLOCKS_API unsigned int count_bits64 (unsigned long long int x)
 return number of set bits in a 64-bit word
template<unsigned int k>
static int log2_const ()
template<>
int log2_const< 1 > ()
template<>
int log2_const< 2 > ()
template<>
int log2_const< 4 > ()
template<>
int log2_const< 8 > ()
template<>
int log2_const< 16 > ()
template<>
int log2_const< 32 > ()
template<>
int log2_const< 64 > ()
template<>
int log2_const< 128 > ()
template<>
int log2_const< 256 > ()
template<>
int log2_const< 512 > ()
template<>
int log2_const< 1024 > ()

Variables

const char METADATA_VERSION = 0
const size_t METADATA_HEADER_SIZE = 149

Typedef Documentation

typedef int(* gr::blocks::work_fcn_type)(int, gr_vector_const_void_star &, gr_vector_void_star &)

Enumeration Type Documentation

Enumerator:
GR_FILE_BYTE 
GR_FILE_CHAR 
GR_FILE_SHORT 
GR_FILE_INT 
GR_FILE_LONG 
GR_FILE_LONG_LONG 
GR_FILE_FLOAT 
GR_FILE_DOUBLE 

Function Documentation

BLOCKS_API unsigned int gr::blocks::count_bits16 ( unsigned int  x)

return number of set bits in the low 16 bits of x

BLOCKS_API unsigned int gr::blocks::count_bits32 ( unsigned int  x)

return number of set bits in the low 32 bits of x

BLOCKS_API unsigned int gr::blocks::count_bits64 ( unsigned long long int  x)

return number of set bits in a 64-bit word

BLOCKS_API unsigned int gr::blocks::count_bits8 ( unsigned int  x)

return number of set bits in the low 8 bits of x

template<unsigned int k>
static int gr::blocks::log2_const ( )
inlinestatic
template<>
int gr::blocks::log2_const< 1 > ( )
inline
template<>
int gr::blocks::log2_const< 1024 > ( )
inline
template<>
int gr::blocks::log2_const< 128 > ( )
inline
template<>
int gr::blocks::log2_const< 16 > ( )
inline
template<>
int gr::blocks::log2_const< 2 > ( )
inline
template<>
int gr::blocks::log2_const< 256 > ( )
inline
template<>
int gr::blocks::log2_const< 32 > ( )
inline
template<>
int gr::blocks::log2_const< 4 > ( )
inline
template<>
int gr::blocks::log2_const< 512 > ( )
inline
template<>
int gr::blocks::log2_const< 64 > ( )
inline
template<>
int gr::blocks::log2_const< 8 > ( )
inline

Variable Documentation

const size_t gr::blocks::METADATA_HEADER_SIZE = 149
const char gr::blocks::METADATA_VERSION = 0