This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV3245Q-Q1: CRC 例程是否有问题

Part Number: DRV3245Q-Q1

CRC Implementation with DRV32xxSeries" 这个文档里面CRC的表格这个函数是不是有点问题,这个函数的效果等同于while(1)

是否应该为以上函数

void generate_crctable(){
byte crctable[256];
for(int I = 0; I < 256; I++){
crc = I;
for(int j = 8; j > 0; j--){
if((crc & 0x80) != 0){
crc <<= 1;
crc ^= 0x2F;
}
else{
crc <<= 1;
}
}
crctable[i] = crc;
}
return crctable;
}