Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
crc.h
00001 /********************************************************************** 00002 * 00003 * Filename: crc.h 00004 * 00005 * Description: A header file describing the various CRC standards. 00006 * 00007 * Notes: 00008 * 00009 * 00010 * Copyright (c) 2000 by Michael Barr. This software is placed into 00011 * the public domain and may be used for any purpose. However, this 00012 * notice must not be changed or removed and no warranty is either 00013 * expressed or implied by its publication or distribution. 00014 **********************************************************************/ 00015 00016 /** 00017 * @file crc.h 00018 * @brief CRC functions 00019 */ 00020 00021 #ifndef _crc_h 00022 #define _crc_h 00023 00024 #include <stdint.h> 00025 00026 #ifdef __cplusplus 00027 extern "C" { 00028 #endif 00029 00030 uint16_t crc16(const void *data, int nBytes); 00031 uint32_t crc32(const void *data, int nBytes); 00032 uint32_t crc32_continue(uint32_t prev_crc, const void *data, int nBytes); 00033 00034 #ifdef __cplusplus 00035 } 00036 #endif 00037 00038 #endif
Generated on Tue Jul 12 2022 15:37:14 by
1.7.2