Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers crc.h Source File

crc.h

Go to the documentation of this file.
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