
如上图所示,bissc_data_struct.scd_crc为从传感器数据中提取的CRC校验码
crcResult为28379利用PM_bissc_getCRC函数计算的CRC校验码
请问二者在数据比对时 bissc_data_struct.scd_crc为什么要按位取反呢

和头文件中提到的inverted output有关吗
对CRC不太了解
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.

如上图所示,bissc_data_struct.scd_crc为从传感器数据中提取的CRC校验码
crcResult为28379利用PM_bissc_getCRC函数计算的CRC校验码
请问二者在数据比对时 bissc_data_struct.scd_crc为什么要按位取反呢

和头文件中提到的inverted output有关吗
对CRC不太了解
收到回复:
Are you encountering an issue with the CRC calculation?
CRC calculations can be performed a number of different ways (polynomial, lookup table, etc) . I don't recall the exact details of the last XOR performed in this particular implementation.
There is, however, an application note on the CRC algorithm on the BiSS-C Interface webpage (https://biss-interface.com/c/downloads/biss-application-notes/) that may help resolve your question. Refer to BiSS AN 3 and BiSS AN 21. Note the CRC value is transmitted inverted by the primary controller so this is probably why.
也就是说,可能的原因就是因为CRC值由主控制器反向传输得到的。