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 PROGMEM crc16tab [256]
 crctab calculated by Mark G.

Detailed Description

CRC table and support routines.

Version:
Id
crc.c 2770 2009-08-05 07:57:59Z
Author:
Bernie Innocenti <bernie@codewiz.org>

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 PROGMEM crc16tab[256]

crctab calculated by Mark G.

Mendel, Network Systems Corporation

Definition at line 45 of file crc.c.