GNU Radio 3.7.2.1-77 C++ API
chunks_to_symbols_ic.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_IC_H
26
#define INCLUDED_DIGITAL_CHUNKS_TO_SYMBOLS_IC_H
27
28
#include <
gnuradio/digital/api.h
>
29
#include <
gnuradio/sync_interpolator.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 int
41
* \li output: stream of gr_complex
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
*/
55
class
DIGITAL_API
chunks_to_symbols_ic
:
virtual
public
sync_interpolator
56
{
57
public
:
58
// gr::digital::chunks_to_symbols_ic::sptr
59
typedef
boost::shared_ptr<chunks_to_symbols_ic>
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<gr_complex> &symbol_table,
const
int
D = 1);
68
69
virtual
int
D()
const
= 0;
70
virtual
std::vector<gr_complex> symbol_table()
const
= 0;
71
};
72
73
}
/* namespace digital */
74
}
/* namespace gr */
75
76
#endif
/* INCLUDED_DIGITAL_CHUNKS_TO_SYMBOLS_IC_H */
gr-digital
include
gnuradio
digital
chunks_to_symbols_ic.h
Generated by
1.8.3.1