TinyFrame icon indicating copy to clipboard operation
TinyFrame copied to clipboard

Replace the look-up table CRC's with an algorithm

Open MightyPork opened this issue 7 years ago • 3 comments
trafficstars

MightyPork avatar Dec 12 '17 19:12 MightyPork

Hmm, would be very neat if you could supply your own CRC function, in case of STM MCU's with builtin CRC calc unit.

FrozenDroid avatar Dec 19 '17 08:12 FrozenDroid

hmmm i think that could be done via extern functions that are used for a certain CKSUM type

MightyPork avatar Dec 19 '17 08:12 MightyPork

As for the CRC8, the number 1 implementation from this has worked well for me. It's a Maxim/Dallas implementation with 0x31 as the polynomial, 0x0 as init and final Xor value, with the input and result reflected.

FrozenDroid avatar Dec 19 '17 10:12 FrozenDroid