crc.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // Copyright (c) 2000 by Michael Barr. This software is placed into
3 // the public domain and may be used for any purpose. However, this
4 // notice must not be changed or removed and no warranty is either
5 // expressed or implied by its publication or distribution.
6 // https://barrgroup.com/downloads/code-crc-c
7 //
8 // Portions Copyright (c) 2020 Analog Devices, Inc.
9 
10 #ifndef _CRC_H_
11 #define _CRC_H_
12 #ifdef __cplusplus
13 extern "C" {
14 #endif /* __cplusplus */
15 
16 #include <stdbool.h>
17 #include <stdint.h>
18 
19 //Calculates a CRC of a block of memory using same algorithm as in the fuse table.
20 uint32_t crcFast(uint8_t const message[], int nBytes, bool isMirrored);
21 uint8_t reflect(uint8_t data, unsigned char nBits);
22 
23 #ifdef __cplusplus
24 }
25 #endif /* __cplusplus */
26 #endif //_CRC_H_
crcFast
uint32_t crcFast(uint8_t const message[], int nBytes, bool isMirrored)
Definition: crc.c:58
nBytes
int nBytes
Definition: network.cpp:64
reflect
uint8_t reflect(uint8_t data, unsigned char nBits)
Definition: crc.c:88
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: glcorearb.h:2879
message
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: glcorearb.h:2695


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:49