GNU Radio 3.7.1-34 C++ API
chunks_to_symbols_if.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_IF_H
26
#define INCLUDED_DIGITAL_CHUNKS_TO_SYMBOLS_IF_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 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 int; output: stream of float
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
*/
54
class
DIGITAL_API
chunks_to_symbols_if
:
virtual
public
sync_interpolator
55
{
56
public
:
57
// gr::digital::chunks_to_symbols_if::sptr
58
typedef
boost::shared_ptr<chunks_to_symbols_if>
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<float> &symbol_table,
const
int
D = 1);
67
68
virtual
int
D()
const
= 0;
69
virtual
std::vector<float> symbol_table()
const
= 0;
70
};
71
72
}
/* namespace digital */
73
}
/* namespace gr */
74
75
#endif
/* INCLUDED_DIGITAL_CHUNKS_TO_SYMBOLS_IF_H */
gr-digital
include
gnuradio
digital
chunks_to_symbols_if.h
Generated by
1.8.1.2