Macros | Functions | Variables
crc.c File Reference
#include "crc.h"
Include dependency graph for crc.c:

Go to the source code of this file.

Macros

#define POLYNOMIAL   0x04C11DB7
 
#define TOPBIT   BIT31
 
#define WIDTH   32
 

Functions

uint32_t crcFast (uint8_t const message[], int nBytes, bool isMirrored)
 
uint8_t reflect (uint8_t data, unsigned char nBits)
 

Variables

const uint32_t crcTable [256]
 Legacy crc Table. More...
 

Macro Definition Documentation

◆ POLYNOMIAL

#define POLYNOMIAL   0x04C11DB7

Definition at line 56 of file crc.c.

◆ TOPBIT

#define TOPBIT   BIT31

Definition at line 55 of file crc.c.

◆ WIDTH

#define WIDTH   32

Definition at line 54 of file crc.c.

Function Documentation

◆ crcFast()

uint32_t crcFast ( uint8_t const  message[],
int  nBytes,
bool  isMirrored 
)

Definition at line 58 of file crc.c.

◆ reflect()

uint8_t reflect ( uint8_t  data,
unsigned char  nBits 
)

Definition at line 88 of file crc.c.

Variable Documentation

◆ crcTable

const uint32_t crcTable[256]

Legacy crc Table.

Definition at line 15 of file crc.c.



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