crc.c File Reference

CRC table and support routines. More...

#include "crc.h"

Go to the source code of this file.


Functions

uint16_t crc16 (uint16_t crc, const void *buffer, size_t len)
 This function implements the CRC 16 calculation on a buffer.

Variables

const uint16_t crc16tab [256]
 crctab calculated by Mark G.

Detailed Description

CRC table and support routines.

Version:
Id
crc.c 976 2007-10-31 16:02:23Z asterix
Author:
Bernardo Innocenti <bernie@develer.com>

Definition in file crc.c.


Function Documentation

uint16_t crc16 ( uint16_t  crc,
const void *  buf,
size_t  len 
)

This function implements the CRC 16 calculation on a buffer.

Parameters:
crc Current CRC16 value.
buf The buffer to perform CRC calculation on.
len The length of the Buffer.
Returns:
The updated CRC16 value.

Definition at line 80 of file crc.c.


Variable Documentation

const uint16_t crc16tab[256]

crctab calculated by Mark G.

Mendel, Network Systems Corporation

Definition at line 45 of file crc.c.