9 lines
327 B
Matlab
9 lines
327 B
Matlab
function [rx,frmError] = RX_CRC32(dataPacketBits)
|
|
poly = [32,26,23,22,16,12,11,10,8,7,5,4,2,1,0];
|
|
crcdetector = comm.CRCDetector(...
|
|
'Polynomial', poly, ...
|
|
'InitialConditions', 1, ...
|
|
'DirectMethod', true, ...
|
|
'FinalXOR', 1);
|
|
[rx,frmError] = crcdetector(dataPacketBits);
|
|
end |