Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Crc32.h File Reference
#include <cstdint>
Include dependency graph for cs_Crc32.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint32_t crc32 (const uint8_t *data, uint16_t size, uint32_t *prevCrc=nullptr)
 Calculates or updates the CRC-32 based on given data. More...
 

Function Documentation

◆ crc32()

uint32_t crc32 ( const uint8_t *  data,
uint16_t  size,
uint32_t *  prevCrc = nullptr 
)

Calculates or updates the CRC-32 based on given data.

Parameters
[in]dataPointer to data.
[in]sizeSize of data.
[in]prevCrcPrevious CRC, or null pointer for first call.
Returns
Updated CRC of given data.