📄 codec_function.h
字号:
#ifndef __LDPC_CODEC_FUNCTION_H__
#define __LDPC_CODEC_FUNCTION_H__
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include "init_system.h"
void ADConvert(
double *datain, //floated data in and fixed out
int length, //number of input data
int round_en, //"1" for round ,otherwise set "0"
int sign_en, //"1" for signed,"0" for unsigned
int total_width, //output bitwidth ,including sign bit
int integ_width //output bitwidth for integer bits
);
double randn(double sigma);
void SourceGen(int i);
void LdpcEncoder();
void LdpcEncoder2();
void Modulation(int blocknum);
//void Modulation();
void PassChannel(int blocknum);
void Init_LdpcIteration();
void LdpcIteration(int block_num);
void BerCalc(long blocknum);
void Ldpc_Ber_Cal(int blocknum);
void UVLC_Ber_Cal(int blocknum);
void PrintResult(long blocknum);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -