/** * @file crc32.h * * Copyright (c) 2021 Semidrive Semiconductor. * All rights reserved. */ #ifndef __CRC32_H #define __CRC32_H /** * @brief Calculate the CRC-32 checksum for a given data buffer.This function * uses a predefined CRC-32 table to compute the CRC-32 checksum of the input * data buffer. * * @param crc Initial CRC value, typically 0. * @param buf Pointer to the unsigned character data buffer for which the CRC-32 * is to be calculated. * @param len Length of the data buffer in bytes. * @return The computed CRC-32 checksum. */ unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len); #endif