?? tablecreat.asv
字號:
function output = tablecreat(crc)
switch(crc)
case 3,
for i=1:256
temp1 = crcbit(dectobit(i),3);
temp2 = [0 0 0 0 0 temp1(9:11)];
output(i) = bittodec(temp2);
end
case 6,
for i=1:256
temp1 = crcbit(dectobit(i),6);
temp2 = [0 0 temp1(9:14)];
output(i) = bittodec(temp2);
end
case 10,
for i=1:256
temp1 = crcbit(dectobit(i),10);
temp2 = [0 0 0 0 0 0 temp1(9:18)];
output(i) = bittohex(temp2);
end
case 40,
for
otherwise,
disp('CRC位數錯誤!請重新調用函數');
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -