Complex To IShort: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Category:Block Docs Category:Stub Docs This is the template for the "Page-per-block Docs". This first section should describe what the block...") |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Block Docs]] | [[Category:Block Docs]] | ||
[[Category: | [[Category:Pages with no Example Flowgraph]] | ||
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. | |||
Opposite of [[IShort To Complex]] | |||
== Parameters == | == Parameters == | ||
; Vector Output | |||
: Instead of producing twice as many output items as input items, setting this to true will use vectors of length 2 as the output. | |||
; | |||
: | |||
== Example Flowgraph == | == Example Flowgraph == | ||
== Source Files == | == Source Files == | ||
; C++ | ; C++ files | ||
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/complex_to_interleaved_char_impl.cc complex_to_interleaved_char_impl.cc] | |||
: [https://github.com/gnuradio/gnuradio | |||
; Header files | ; Header files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/complex_to_interleaved_char_impl.h complex_to_interleaved_char_impl.h] | ||
; Public header files | ; Public header files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/complex_to_interleaved_char.h complex_to_interleaved_char.h] | ||
; Block definition | ; Block definition | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/grc/blocks_complex_to_interleaved_char.block.yml blocks_complex_to_interleaved_char.block.yml] |
Revision as of 21:50, 31 March 2025
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.
Opposite of IShort To Complex
Parameters
- Vector Output
- Instead of producing twice as many output items as input items, setting this to true will use vectors of length 2 as the output.
Example Flowgraph
Source Files
- C++ files
- complex_to_interleaved_char_impl.cc
- Header files
- complex_to_interleaved_char_impl.h
- Public header files
- complex_to_interleaved_char.h
- Block definition
- blocks_complex_to_interleaved_char.block.yml