Page 1 of 1

CRC funcs

Posted: Thu Aug 03, 2023 4:22 am
by william.ferguson.au
\rom\crc.h lists a number of CRC funcs and provides the polys used for them.

What are the other CRC initialisation values used for each of the funcs? Ie
  • width
  • init
  • refin
  • refout
  • xorout
It would make it useful when trying to match CRCs calculated on other systems.

Also it mentions that "we had added a `~` at the beginning and the end of the functions", but I can't understand what it is talking about. What does it mean?

And finally, why is there a crc8_le() and crc8_be()?
Why would a crc8 algorithm care about byte order, since it operates over a stream of single bytes?