📄 convdec.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: Convolutional decoder | Author: C. Britton Rorabaugh | Date: January 20, 1999 | | History: | January 20, 1999 Tommi Makelainen | Modified Rorabaugh's example code | to rate 1/3 code with constraint length | K=9 (i.e. length of memory shift register). | */#ifndef CONV_DEC_R1o3_K9_H#define CONV_DEC_R1o3_K9_Hstruct ViterbiDecoder_type{ int Info_Length; int Tail_Length; int Frame_Length; int Decoding_depth; int Numb_Encdr_States; int Numb_Inp_Symbs; MealyEncoder* Tx_Encoder; MetricTable* Decoding_Metric; };typedef struct ViterbiDecoder_type ViterbiDecoder; void wcdma_dec_R1o3_k9_init( ViterbiDecoder* this, int info_length, int decoding_depth, int tail_length, MealyEncoder* encoder, MetricTable* decoding_metric);#define wcdma_dec_R1o2_k9_init wcdma_dec_R1o3_k9_init void wcdma_dec_R1o2_k9_conv( ViterbiDecoder* this, /* decoder state information */ int rx_symbols[], /* vector of received symbols */ double soft_bits[], /* vector of soft symbols */ int rx_size, /* length of received symbols */ int tail[], /* tail bits */ int tail_size, /* length of tail */ int decoded_bits[]); /* vector of decoded bits */ void wcdma_dec_R1o3_k9_conv( ViterbiDecoder* this, /* decoder state information */ int rx_symbols[], /* vector of received symbols */ double soft_bits[], /* vector of soft symbols */ int rx_size, /* length of received symbols */ int tail[], /* tail bits */ int tail_size, /* length of tail */ int decoded_bits[]); /* vector of decoded bits */#endif /* CONV_DEC_R1o3_K9_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -