To use this service, the user must supply a container variable for the CRC and call crc32_calculate() with the parameters for the first block in the dataset.
For subsequent blocks, crc32_recalculate() must be used.
- Note
- The user may also initialize the container with a known CRC value and use that as the "seed" for crc32_recalculate().
Example Code
uint8_t block1[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
uint8_t block2[6] = {0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};