GNU Radio 3.7.2 C++ API
chunks_to_symbols_bc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,2012 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 /* WARNING: this file is machine generated. Edits will be overwritten */
24 
25 #ifndef INCLUDED_DIGITAL_CHUNKS_TO_SYMBOLS_BC_H
26 #define INCLUDED_DIGITAL_CHUNKS_TO_SYMBOLS_BC_H
27 
28 #include <gnuradio/digital/api.h>
30 
31 namespace gr {
32  namespace digital {
33 
34  /*!
35  * \brief Map a stream of symbol indexes (unpacked bytes or
36  * shorts) to stream of float or complex constellation points in D
37  * dimensions (D = 1 by default)
38  * \ingroup converter_blk
39  *
40  * input: stream of unsigned char; output: stream of gr_complex
41  *
42  * out[n D + k] = symbol_table[in[n] D + k], k=0,1,...,D-1
43  *
44  * The combination of gr::blocks::packed_to_unpacked_XX followed by
45  * digital_chunks_to_symbols_XY handles the general case of mapping
46  * from a stream of bytes or shorts into arbitrary float
47  * or complex symbols.
48  *
49  * \sa gr::blocks::packed_to_unpacked_bb, gr::blocks::unpacked_to_packed_bb,
50  * \sa gr::blocks::packed_to_unpacked_ss, gr::blocks::unpacked_to_packed_ss,
51  * \sa gr::digital::chunks_to_symbols_bf, gr::digital::chunks_to_symbols_bc.
52  * \sa gr::digital::chunks_to_symbols_sf, gr::digital::chunks_to_symbols_sc.
53  */
55  {
56  public:
57  // gr::digital::chunks_to_symbols_bc::sptr
59 
60  /*!
61  * Make a chunks-to-symbols block.
62  *
63  * \param symbol_table: list that maps chunks to symbols.
64  * \param D: dimension of table.
65  */
66  static sptr make(const std::vector<gr_complex> &symbol_table, const int D = 1);
67 
68  virtual int D() const = 0;
69  virtual std::vector<gr_complex> symbol_table() const = 0;
70  };
71 
72  } /* namespace digital */
73 } /* namespace gr */
74 
75 #endif /* INCLUDED_DIGITAL_CHUNKS_TO_SYMBOLS_BC_H */
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:30
Map a stream of symbol indexes (unpacked bytes or shorts) to stream of float or complex constellation...
Definition: chunks_to_symbols_bc.h:54
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
synchronous 1:N input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_interpolator.h:37
boost::shared_ptr< chunks_to_symbols_bc > sptr
Definition: chunks_to_symbols_bc.h:58