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
cc_common.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2013-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_FEC_CC_COMMON_H
24
#define INCLUDED_FEC_CC_COMMON_H
25
26
typedef
enum
_cc_mode_t
{
27
CC_STREAMING
= 0,
28
CC_TERMINATED
,
29
CC_TRUNCATED
,
30
CC_TAILBITING
31
}
cc_mode_t
;
32
33
typedef
union
{
34
//decision_t is a BIT vector
35
unsigned
char
*
t
;
36
unsigned
int
*
w
;
37
unsigned
short
*
s
;
38
unsigned
char
*
c
;
39
}
decision_t
;
40
41
typedef
union
{
42
unsigned
char
*
t
;
43
}
metric_t
;
44
45
struct
v
{
46
unsigned
char
*
metrics
;
47
metric_t
old_metrics
,
new_metrics
,
metrics1
,
metrics2
;
/* Pointers to path metrics, swapped on every bit */
48
unsigned
char
*
decisions
;
49
};
50
51
#endif
/*INCLUDED_FEC_CC_COMMON_H*/
gr-fec
include
gnuradio
fec
cc_common.h
Generated on Fri Oct 3 2014 00:33:50 for GNU Radio Manual and C++ API Reference by
1.8.1.2