Convert stream of chars to a stream of float.
Converts length vectors of input char samples to floats and applies a scaling factor of
Constructor Specific Documentation:
Build a chars to float stream converter block.
Parameters: |
|
---|
declare_sample_delay(char_to_float_sptr self, unsigned int delay)
pc_input_buffers_full_avg(char_to_float_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(char_to_float_sptr self) -> pmt_vector_float
Get the scalar divider value.
Set the scalar divider value.
Convert stream of chars to a stream of short.
Converts length vectors of input char samples to shorts:
Constructor Specific Documentation:
Parameters: | vlen – |
---|
declare_sample_delay(char_to_short_sptr self, unsigned int delay)
pc_input_buffers_full_avg(char_to_short_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(char_to_short_sptr self) -> pmt_vector_float
complex in, arg (arctan) out (float)
Constructor Specific Documentation:
Build a complex to arg block.
Parameters: | vlen – vector len (default 1) |
---|
declare_sample_delay(complex_to_arg_sptr self, unsigned int delay)
pc_input_buffers_full_avg(complex_to_arg_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(complex_to_arg_sptr self) -> pmt_vector_float
Convert a stream of gr_complex to 1 or 2 streams of float.
If a single output stream is attached, this will output the real part of the input complex samples. If a second output stream is connected, output[0] is the real part and output[1] is the imaginary part.
Constructor Specific Documentation:
Build a complex to float block.
Parameters: | vlen – vector len (default 1) |
---|
declare_sample_delay(complex_to_float_sptr self, unsigned int delay)
pc_input_buffers_full_avg(complex_to_float_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(complex_to_float_sptr self) -> pmt_vector_float
Produces the imaginary part (as a float0 of a complex stream.
Constructor Specific Documentation:
Build a complex to imaginary part block.
Parameters: | vlen – vector len (default 1) |
---|
declare_sample_delay(complex_to_imag_sptr self, unsigned int delay)
pc_input_buffers_full_avg(complex_to_imag_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(complex_to_imag_sptr self) -> pmt_vector_float
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:
Constructor Specific Documentation:
Build a complex to interleaved shorts block.
declare_sample_delay(complex_to_interleaved_short_sptr self, unsigned int delay)
pc_input_buffers_full_avg(complex_to_interleaved_short_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(complex_to_interleaved_short_sptr self) -> pmt_vector_float
complex in, magnitude out (float)
Calculates the magnitude of the complex samples:
Or: The input stream can be a vector of length , and for each vector, each item is converted using the above function. So above, m is from 0 to noutput_items*vlen for each call to work.
Constructor Specific Documentation:
Build a complex to magnitude block.
Parameters: | vlen – vector len (default 1) |
---|
declare_sample_delay(complex_to_mag_sptr self, unsigned int delay)
pc_input_buffers_full_avg(complex_to_mag_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(complex_to_mag_sptr self) -> pmt_vector_float
complex in, magnitude squared out (float)
Calculates the magnitude squared of the complex samples:
Or: The input stream can be a vector of length , and for each vector, each item is converted using the above function. So above, m is from 0 to noutput_items*vlen for each call to work.
Constructor Specific Documentation:
Build a complex to magnitude squared block.
Parameters: | vlen – vector len (default 1) |
---|
declare_sample_delay(complex_to_mag_squared_sptr self, unsigned int delay)
pc_input_buffers_full_avg(complex_to_mag_squared_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(complex_to_mag_squared_sptr self) -> pmt_vector_float
Produces the real part (as a float0 of a complex stream.
Constructor Specific Documentation:
Build a complex to real part block.
Parameters: | vlen – vector len (default 1) |
---|
declare_sample_delay(complex_to_real_sptr self, unsigned int delay)
pc_input_buffers_full_avg(complex_to_real_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(complex_to_real_sptr self) -> pmt_vector_float
Convert stream of floats to a stream of char.
Constructor Specific Documentation:
Build a float to char block.
Parameters: |
|
---|
declare_sample_delay(float_to_char_sptr self, unsigned int delay)
pc_input_buffers_full_avg(float_to_char_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(float_to_char_sptr self) -> pmt_vector_float
Get the scalar multiplier value.
Set the scalar multiplier value.
one or two floats in, complex out
Constructor Specific Documentation:
Build a float to complex block.
Parameters: | vlen – vector len (default 1) |
---|
declare_sample_delay(float_to_complex_sptr self, unsigned int delay)
pc_input_buffers_full_avg(float_to_complex_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(float_to_complex_sptr self) -> pmt_vector_float
Convert stream of floats to a stream of ints.
Constructor Specific Documentation:
Build a float to int block.
Parameters: |
|
---|
declare_sample_delay(float_to_int_sptr self, unsigned int delay)
pc_input_buffers_full_avg(float_to_int_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(float_to_int_sptr self) -> pmt_vector_float
Get the scalar multiplier value.
Set the scalar multiplier value.
Convert stream of floats to a stream of shorts.
Constructor Specific Documentation:
Build a float to short block.
Parameters: |
|
---|
declare_sample_delay(float_to_short_sptr self, unsigned int delay)
pc_input_buffers_full_avg(float_to_short_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(float_to_short_sptr self) -> pmt_vector_float
Get the scalar multiplier value.
Set the scalar multiplier value.
Convert stream of floats to a stream of unsigned chars.
Constructor Specific Documentation:
Build a float to uchar block.
declare_sample_delay(float_to_uchar_sptr self, unsigned int delay)
pc_input_buffers_full_avg(float_to_uchar_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(float_to_uchar_sptr self) -> pmt_vector_float
Convert stream of ints to a stream of floats.
Constructor Specific Documentation:
Build an int to float block.
Parameters: |
|
---|
declare_sample_delay(int_to_float_sptr self, unsigned int delay)
pc_input_buffers_full_avg(int_to_float_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(int_to_float_sptr self) -> pmt_vector_float
Get the scalar divider value.
Set the scalar divider value.
Convert stream of interleaved shorts to a stream of complex.
Constructor Specific Documentation:
Build an interleaved short to complex block.
Parameters: | vector_input – |
---|
declare_sample_delay(interleaved_short_to_complex_sptr self, unsigned int delay)
pc_input_buffers_full_avg(interleaved_short_to_complex_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(interleaved_short_to_complex_sptr self) -> pmt_vector_float
Convert stream of shorts to a stream of chars.
Constructor Specific Documentation:
Build a short to char block.
Parameters: | vlen – vector length of data streams. |
---|
declare_sample_delay(short_to_char_sptr self, unsigned int delay)
pc_input_buffers_full_avg(short_to_char_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(short_to_char_sptr self) -> pmt_vector_float
Convert stream of shorts to a stream of floats.
Constructor Specific Documentation:
Build a short to float block.
Parameters: |
|
---|
declare_sample_delay(short_to_float_sptr self, unsigned int delay)
pc_input_buffers_full_avg(short_to_float_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(short_to_float_sptr self) -> pmt_vector_float
Get the scalar divider value.
Set the scalar divider value.
Convert stream of unsigned chars to a stream of floats.
Constructor Specific Documentation:
Build a uchar to float block.
declare_sample_delay(uchar_to_float_sptr self, unsigned int delay)
pc_input_buffers_full_avg(uchar_to_float_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(uchar_to_float_sptr self) -> pmt_vector_float