資源簡介
鐵道部常用的信息編碼譯碼方式 BCH(26,16)
RDS常用的信息編碼譯碼方式
縮短循環碼.

代碼片段和文件信息
#include?“bch2616.h“
#include?
int?main()
{
ulong?data?=?0x99830000;
ulong?encode?=?BchEncode(data);
// 模擬傳輸過程中1位錯誤
ulong?error?=?encode;
RevBit(error16); // 模擬傳輸過程中第17位(低位向高位數)發生錯誤
data?=?BchDecode(error);
printf(“%x\n“data);
error?=?encode;
RevBit(error31); // 模擬傳輸過程中第32位(低位向高位數)發生錯誤
data?=?BchDecode(error);
printf(“%x\n“data);
// 模擬傳輸過程中2位錯誤
error?=?encode;
RevBit(error16); // 模擬傳輸過程中第17位(低位向高位數)發生錯誤
RevBit(error31); // 模擬傳輸過程中第32位(低位向高位數)發生錯誤
data?=?BchDecode(error);
printf(“%x\n“data);
error?=?encode;
RevBit(error15);
data?=?BchDecode(error);
printf(“%x\n“data);
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1246??2011-09-23?11:58??BCH2616\main.plg
?????文件????????533??2011-09-23?11:18??BCH2616\main.dsw
?????文件??????50176??2011-09-23?11:58??BCH2616\main.ncb
?????文件???????2710??2011-09-23?11:36??BCH2616\BCH2616.H
?????文件???????6141??2011-09-23?14:16??BCH2616\BCH2616.CPP
?????文件???????3503??2011-09-23?11:56??BCH2616\main.dsp
?????文件????????768??2011-09-23?11:58??BCH2616\main.cpp
?????文件??????48640??2011-09-23?11:58??BCH2616\main.opt
?????目錄??????????0??2011-09-23?13:28??BCH2616
-----------?---------??----------?-----??----
???????????????113717????????????????????9
評論
共有 條評論