GNU Radio C++ API
trellis_sccc_encoder_bs.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2004 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 over written
24
25
#ifndef INCLUDED_TRELLIS_SCCC_ENCODER_BS_H
26
#define INCLUDED_TRELLIS_SCCC_ENCODER_BS_H
27
28
#include <
trellis_api.h
>
29
#include <vector>
30
#include "
fsm.h
"
31
#include "
interleaver.h
"
32
#include <
gr_sync_block.h
>
33
34
class
trellis_sccc_encoder_bs
;
35
typedef
boost::shared_ptr<trellis_sccc_encoder_bs>
trellis_sccc_encoder_bs_sptr
;
36
37
TRELLIS_API
trellis_sccc_encoder_bs_sptr
trellis_make_sccc_encoder_bs
(
38
const
fsm
&
FSMo
,
int
STo
,
39
const
fsm
&
FSMi
,
int
STi
,
40
const
interleaver
&
INTERLEAVER
,
41
int
blocklength
42
);
43
44
/*!
45
* \brief SCCC encoder.
46
* \ingroup coding_blk
47
*/
48
class
TRELLIS_API
trellis_sccc_encoder_bs
:
public
gr_sync_block
49
{
50
private
:
51
friend
TRELLIS_API
trellis_sccc_encoder_bs_sptr
trellis_make_sccc_encoder_bs
(
52
const
fsm
&FSMo,
int
STo,
53
const
fsm
&FSMi,
int
STi,
54
const
interleaver
&INTERLEAVER,
55
int
blocklength
56
);
57
fsm
d_FSMo;
58
int
d_STo;
59
fsm
d_FSMi;
60
int
d_STi;
61
interleaver
d_INTERLEAVER;
62
int
d_blocklength;
63
std::vector<int> d_buffer;
64
trellis_sccc_encoder_bs
(
65
const
fsm
&FSMo,
int
STo,
66
const
fsm
&FSMi,
int
STi,
67
const
interleaver
&INTERLEAVER,
68
int
blocklength
69
);
70
71
public
:
72
fsm
FSMo
()
const
{
return
d_FSMo; }
73
int
STo
()
const
{
return
d_STo; }
74
fsm
FSMi
()
const
{
return
d_FSMi; }
75
int
STi
()
const
{
return
d_STi; }
76
interleaver
INTERLEAVER
()
const
{
return
d_INTERLEAVER; }
77
int
blocklength
()
const
{
return
d_blocklength; }
78
79
int
work
(
int
noutput_items,
80
gr_vector_const_void_star
&input_items,
81
gr_vector_void_star
&output_items);
82
};
83
84
#endif
gr-trellis
src
lib
trellis_sccc_encoder_bs.h
Generated on Thu Jul 12 2012 00:06:24 for GNU Radio C++ API by
1.8.1.1