GNU Radio 3.7.2.1-77 C++ API
gr::blocks::complex_to_interleaved_short Class Reference

Convert stream of complex to a stream of interleaved shorts. More...

#include <gnuradio/blocks/complex_to_interleaved_short.h>

Inheritance diagram for gr::blocks::complex_to_interleaved_short:
gr::sync_interpolator gr::sync_block gr::block gr::basic_block gr::msg_accepter gr::messages::msg_accepter

Public Types

typedef boost::shared_ptr
< complex_to_interleaved_short
sptr
 

Static Public Member Functions

static sptr make ()
 

Additional Inherited Members

- Public Member Functions inherited from gr::sync_interpolator
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. More...
 
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 More...
 
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. More...
 
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. More...
 
- Protected Types inherited from gr::basic_block
enum  vcolor { WHITE, GREY, BLACK }
 
- Protected Member Functions inherited from gr::sync_interpolator
 sync_interpolator (void)
 
 sync_interpolator (const std::string &name, gr::io_signature::sptr input_signature, gr::io_signature::sptr output_signature, unsigned interpolation)
 
- Protected Attributes inherited from gr::block
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
 

Detailed Description

Convert stream of complex to a stream of interleaved shorts.

The output stream contains shorts with twice as many output items as input items. For every complex input item, we produce two output shorts that contain the real part and imaginary part converted to shorts:

  • output[0][n] = static_cast<short>(input[0][m].real());
  • output[0][n+1] = static_cast<short>(input[0][m].imag());

Member Typedef Documentation

Member Function Documentation

static sptr gr::blocks::complex_to_interleaved_short::make ( )
static

Build a complex to interleaved shorts block.


The documentation for this class was generated from the following file: