⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chdecoding.h

📁 这是一个c++编写的WCDMA链路采用RAKE接收的方针源代码
💻 H
字号:
/* | | Copyright disclaimer: |   This software was developed at the National Institute of Standards |   and Technology by employees of the Federal Government in the course |   of their official duties. Pursuant to title 17 Section 105 of the |   United States Code this software is not subject to copyright |   protection and is in the public domain. | |   We would appreciate acknowledgement if the software is used. |*//* | Project:     WCDMA simulation environment | Module:      De-interleaving and convolutional decoder. | Author:      Tommi Makelainen, Nokia/NIST | Date:        February 12, 1999 | | History: |              February 12, 1999 Tommi Makelainen |                      Initial version. | */#include <stdio.h>#include <math.h>#include "conversions.h"#include "bitroutines.h"#include "config_wcdma.h"#include "mealy.h"#include "metrics.h"#include "convenc.h"#include "convdec.h"#include "interleaver.h"/* -------------------------------------------------------------------- *//* * Function:    wcdma_chdecoding_init * Desc.:       Convolutional decoding initialization * * Note: */int wcdma_chdecoding_init(                int coder_type,         /* 1=conv., 2=turbo */                int coding_ratio,       /* 2 = 1/2 or 3 = 1/3 */      		int input_size,		/* Size of input bit estimate vector */                int metric_type, 	/* 0=hard, 1=soft */                int gen_polys[], 	/* generator polynomials */                double soft_prob_0[],   /* probabilities for 0 value */                double soft_prob_1[],   /* probabilities for 1 value */		int nSoftProbs);	/* Length of probability vectors *//* -------------------------------------------------------------------- *//* * Function:    wcdma_chdecoding_dec * Desc.:       Convolutional decoding and de-interleaving block * * Note: *              The input parameters must fulfill the equations: *                  3 * nInputs = rows * cols *		    nInputs % 3 = 0 *              Tail vector is 8 bits long. */int wcdma_chdecoding_dec(                         int coder_type,        /* 1=conv., 2=turbo */                         int coding_ratio,      /* 2 = 1/2 or 3 = 1/3 */                         int demod_inputs[],    /* input bit vector */                         int nInputs,     	/* input vector size */                         double soft_bits[],	/* output bit vector */                         int decoded_bits[],	/* output bit vector */                         int tail[],      	/* tail bits */                         int instance);         /* tail bits *//* -------------------------------------------------------------------- *//* * Function:    wcdma_chdecoding_free * Desc.:       Convolutional decoding and de-interleaving clean up. * * Note: */void wcdma_chdecoding_free(int instance);/* -------------------------------------------------------------------- */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -