Open MightyPork opened 6 years ago
hmmm i think that could be done via extern functions that are used for a certain CKSUM type
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.
Hmm, would be very neat if you could supply your own CRC function, in case of STM MCU's with builtin CRC calc unit.