HE/RX_CRC32.m
2024-03-30 16:35:40 +08:00

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