OpenOCD
crc32.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2022 Otto-von-Guericke-Universität Magdeburg *
5  * marian.buschsieweke@ovgu.de *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_HELPER_CRC32_H
9 #define OPENOCD_HELPER_CRC32_H
10 
11 #include <stdint.h>
12 #include <stddef.h>
13 
21 #define CRC32_POLY_LE 0xedb88320
22 
34 uint32_t crc32_le(uint32_t poly, uint32_t seed, const void *data,
35  size_t data_len);
36 
37 #endif /* OPENOCD_HELPER_CRC32_H */
uint32_t crc32_le(uint32_t poly, uint32_t seed, const void *data, size_t data_len)
Calculate the CRC32 value of the given data.
Definition: crc32.c:33