GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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 {
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*/
unsigned short * s
Definition: cc_common.h:37
unsigned char * t
Definition: cc_common.h:35
unsigned int * w
Definition: cc_common.h:36
Definition: cc_common.h:41
unsigned char * metrics
Definition: cc_common.h:46
Definition: cc_common.h:45
metric_t old_metrics
Definition: cc_common.h:47
enum _cc_mode_t cc_mode_t
unsigned char * decisions
Definition: cc_common.h:48
metric_t new_metrics
Definition: cc_common.h:47
unsigned char * t
Definition: cc_common.h:42
Definition: cc_common.h:29
Definition: cc_common.h:30
Definition: cc_common.h:33
metric_t metrics1
Definition: cc_common.h:47
_cc_mode_t
Definition: cc_common.h:26
Definition: cc_common.h:27
Definition: cc_common.h:28
unsigned char * c
Definition: cc_common.h:38
metric_t metrics2
Definition: cc_common.h:47