84 for (i = 0; i < number_bytes; i++) {
87 for (j = 0; j < 8; j++) {
89 if ((crc & 0x01u) != ((buffer[i] >> j) & 0x01u)) {
#define CRC_UPDATE
do only an updating and return the current crc value
Contains CRC calculation functions.
#define CRC_START_VALUE
used as start value for CRC and for finalizing
#define CRC_COMPLETE
perform a complete calculation of the crc value
#define CRC_FINALIZATION
do only the finalization and return the crc value
#define CRC_INITIALIZATION
do only the initialization and return the init value
#define CRC_REV_POLYNOM
reverse polynom (used also in STM32) (0b11101101101110001000001100100000)
uint32_t calculate_crc32(uint8_t *buffer, uint8_t number_bytes, uint8_t mode)