NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
crc.cpp File Reference
#include "crc.h"

Go to the source code of this file.

Macros

#define WIDTH   (8 * sizeof(crc))
 
#define TOPBIT   (1 << (WIDTH - 1))
 
#define REFLECT_DATA(X)   (X)
 
#define REFLECT_REMAINDER(X)   (X)
 

Functions

unsigned long reflect (unsigned long data, unsigned char nBits)
 
void crcInit (void)
 

Variables

crc crcTable [256]
 

Macro Definition Documentation

#define REFLECT_DATA (   X)    (X)

Definition at line 32 of file crc.cpp.

#define REFLECT_REMAINDER (   X)    (X)

Definition at line 40 of file crc.cpp.

#define TOPBIT   (1 << (WIDTH - 1))

Definition at line 25 of file crc.cpp.

#define WIDTH   (8 * sizeof(crc))

Definition at line 24 of file crc.cpp.

Function Documentation

void crcInit ( void  )

Definition at line 99 of file crc.cpp.

unsigned long reflect ( unsigned long  data,
unsigned char  nBits 
)

Definition at line 57 of file crc.cpp.

Variable Documentation

crc crcTable[256]

Definition at line 82 of file crc.cpp.