GNU Radio Manual and C++ API Reference 3.7.14.0
The Free & Open Software Radio Ecosystem
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
26typedef enum _cc_mode_t {
32
33typedef union {
34 // decision_t is a BIT vector
35 unsigned char* t;
36 unsigned int* w;
37 unsigned short* s;
38 unsigned char* c;
40
41typedef union {
42 unsigned char* t;
43} metric_t;
44
45struct v {
46 unsigned char* metrics;
48 metrics2; /* Pointers to path metrics, swapped on every bit */
49 unsigned char* decisions;
50};
51
52#endif /*INCLUDED_FEC_CC_COMMON_H*/
enum _cc_mode_t cc_mode_t
_cc_mode_t
Definition: cc_common.h:26
@ CC_STREAMING
Definition: cc_common.h:27
@ CC_TAILBITING
Definition: cc_common.h:30
@ CC_TERMINATED
Definition: cc_common.h:28
@ CC_TRUNCATED
Definition: cc_common.h:29
Definition: cc_common.h:45
unsigned char * decisions
Definition: cc_common.h:49
metric_t metrics1
Definition: cc_common.h:47
metric_t metrics2
Definition: cc_common.h:48
metric_t new_metrics
Definition: cc_common.h:47
metric_t old_metrics
Definition: cc_common.h:47
unsigned char * metrics
Definition: cc_common.h:46
Definition: cc_common.h:33
unsigned short * s
Definition: cc_common.h:37
unsigned char * c
Definition: cc_common.h:38
unsigned int * w
Definition: cc_common.h:36
unsigned char * t
Definition: cc_common.h:35
Definition: cc_common.h:41
unsigned char * t
Definition: cc_common.h:42