GNU Radio Manual and C++ API Reference
3.7.5
The Free & Open Software Radio Ecosystem
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
atsc_single_viterbi.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2002, 2014 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
#ifndef INCLUDED_DTV_ATSC_SINGLE_VITERBI_H
24
#define INCLUDED_DTV_ATSC_SINGLE_VITERBI_H
25
26
namespace
gr {
27
namespace
dtv {
28
29
class
atsc_single_viterbi
30
{
31
public
:
32
atsc_single_viterbi
();
33
34
static
const
unsigned
int
TB_LEN
= 32;
35
36
/*!
37
* \p INPUT ideally takes on the values +/- 1,3,5,7
38
* return is decoded dibit in the range [0, 3]
39
*/
40
char
decode
(
float
input);
41
42
void
reset
();
43
44
//! internal delay of decoder
45
static
int
delay
() {
return
TB_LEN
- 1; }
46
47
protected
:
48
static
const
int
transition_table
[4][4];
49
static
const
int
was_sent
[4][4];
50
51
float
path_metrics
[2][4];
52
unsigned
long
long
traceback
[2][4];
53
unsigned
char
phase
;
54
int
post_coder_state
;
55
};
56
57
}
/* namespace dtv */
58
}
/* namespace gr */
59
60
#endif
/* INCLUDED_DTV_ATSC_SINGLE_VITERBI_H */
gr-dtv
lib
atsc
atsc_single_viterbi.h
Generated on Fri Oct 3 2014 00:33:50 for GNU Radio Manual and C++ API Reference by
1.8.1.2