GNU Radio 3.7.1 C++ API
|
Map a stream of symbol indexes (unpacked bytes or shorts) to stream of float or complex constellation points in D dimensions (D = 1 by default)input: stream of short; output: stream of gr_complex. More...
#include <chunks_to_symbols_sc.h>
Public Types | |
typedef boost::shared_ptr < chunks_to_symbols_sc > | sptr |
Public Member Functions | |
virtual int | D () const =0 |
virtual std::vector< gr_complex > | symbol_table () const =0 |
Static Public Member Functions | |
static sptr | make (const std::vector< gr_complex > &symbol_table, const int D=1) |
Map a stream of symbol indexes (unpacked bytes or shorts) to stream of float or complex constellation points in D dimensions (D = 1 by default)
input: stream of short; output: stream of gr_complex.
out[n D + k] = symbol_table[in[n] D + k], k=0,1,...,D-1
The combination of gr::blocks::packed_to_unpacked_XX followed by digital_chunks_to_symbols_XY handles the general case of mapping from a stream of bytes or shorts into arbitrary float or complex symbols.
virtual int gr::digital::chunks_to_symbols_sc::D | ( | ) | const [pure virtual] |
static sptr gr::digital::chunks_to_symbols_sc::make | ( | const std::vector< gr_complex > & | symbol_table, |
const int | D = 1 |
||
) | [static] |
Make a chunks-to-symbols block.
symbol_table,: | list that maps chunks to symbols. |
D,: | dimension of table. |
virtual std::vector<gr_complex> gr::digital::chunks_to_symbols_sc::symbol_table | ( | ) | const [pure virtual] |