GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
chunks_to_symbols_bf.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_BF_H
26 #define INCLUDED_DIGITAL_CHUNKS_TO_SYMBOLS_BF_H
27 
28 #include <gnuradio/digital/api.h>
30 
31 namespace gr {
32  namespace digital {
33 
34  /*!
35  * \brief Map a stream of unpacked symbol indexes to stream of
36  * float or complex constellation points in D dimensions (D = 1 by
37  * default) \ingroup converter_blk
38  *
39  * \details
40  * \li input: stream of unsigned char
41  * \li output: stream of float
42  *
43  * \li out[n D + k] = symbol_table[in[n] D + k], k=0,1,...,D-1
44  *
45  * The combination of gr::blocks::packed_to_unpacked_XX followed
46  * by gr::digital::chunks_to_symbols_XY handles the general case
47  * of mapping from a stream of bytes or shorts into arbitrary
48  * float or complex symbols.
49  *
50  * \sa gr::blocks::packed_to_unpacked_bb, gr::blocks::unpacked_to_packed_bb,
51  * \sa gr::blocks::packed_to_unpacked_ss, gr::blocks::unpacked_to_packed_ss,
52  * \sa gr::digital::chunks_to_symbols_bf, gr::digital::chunks_to_symbols_bc.
53  * \sa gr::digital::chunks_to_symbols_sf, gr::digital::chunks_to_symbols_sc.
54  */
56  {
57  public:
58  // gr::digital::chunks_to_symbols_bf::sptr
59  typedef boost::shared_ptr<chunks_to_symbols_bf> sptr;
60 
61  /*!
62  * Make a chunks-to-symbols block.
63  *
64  * \param symbol_table: list that maps chunks to symbols.
65  * \param D: dimension of table.
66  */
67  static sptr make(const std::vector<float> &symbol_table, const int D = 1);
68 
69  virtual int D() const = 0;
70  virtual std::vector<float> symbol_table() const = 0;
71  virtual void set_symbol_table(const std::vector<float> &symbol_table) =0;
72  };
73 
74  } /* namespace digital */
75 } /* namespace gr */
76 
77 #endif /* INCLUDED_DIGITAL_CHUNKS_TO_SYMBOLS_BF_H */
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:30
synchronous 1:N input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_interpolator.h:37
Include this header to use the message passing features.
Definition: logger.h:131
Map a stream of unpacked symbol indexes to stream of float or complex constellation points in D dimen...
Definition: chunks_to_symbols_bf.h:55
boost::shared_ptr< chunks_to_symbols_bf > sptr
Definition: chunks_to_symbols_bf.h:59