📄 sratematch.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: Static rate matching algorithm. | Author: Tommi Makelainen | Date: January 27, 1999 | | History: | January 27, 1999 Tommi Makelainen | Initial version. | */#ifndef WCDMA_SRATE_MATCH_H#define WCDMA_SRATE_MATCH_H#define NO_UPPER_BLOCK_SIZE -1#define MAX_BLOCK_SIZE 10000 /* max. Transfer block size */ /* ----------------------------------------------------------- */int wcdma_rate_match( int Inputs[], /* IN: input data symbol vector */ int nInputs, /* IN: length of input data vector */ double max_punct_ratio, /* IN: Max. ratio to puncture/repetite */ int target_block_size, /* IN: block size to match */ int outData[]); /* OUT: matched output */int wcdma_rate_dematch( double Inputs[], /* IN: input data symbol vector */ int nInputs, /* IN: length of input data vector */ double max_punct_ratio, /* IN: Max. ratio to puncture/repetite */ int target_block_size, /* IN: block size to match */ double outData[]); /* OUT: Dematched output *//* * Static rate matching algorithm for a Transport Channel (TC). * The algorithm gets a vector of allowable bits per block, * size of input bit block, maximum puncturing ratio (1=all, 0.0=none). * Depending on the given pucturing ratio, it either punctures * or repeats bits. */int wcdma_srate_match4TC( int no_of_allowed_sizes,/* size of allowed_bit_sizes -vector */ int allowed_block_sizes[],/* vector of allowed block sizes */ float max_punct_ratio, /* max puncturing ratio (0.0 .. 1.0) */ int input_size, /* size of input block */ int input_data[], /* vector of input data bits */ int *output_size, /* size of output block */ int output_data[]); /* vector of output data bits *//* ----------------------------------------------------------- */#endif /* WCDMA_SRATE_MATCH_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -