Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Crc32.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: May 14, 2021
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
10#include <cstdint>
11
20uint32_t crc32(const uint8_t* data, uint16_t size, uint32_t* prevCrc = nullptr);
uint32_t crc32(const uint8_t *data, uint16_t size, uint32_t *prevCrc=nullptr)
Calculates or updates the CRC-32 based on given data.