16 static inline uint32_t compute(
19 uint32_t previousCrc32 = 0
23 uint32_t crc = ~previousCrc32;
24 uint8_t * current = (uint8_t*)
data;
30 crc = (crc >> 1) ^ 0xEDB88320;
40 static inline bool compare(
41 const uint32_t computed,
42 const uint8_t *received
45 for(uint8_t i = 4; i > 0; i--)
47 (uint8_t)(computed >> (8 * (i - 1))) !=
48 (uint8_t)(received[3 - (i - 1)])