crc_ccitt.c File Reference

CRC-CCITT table and support routines. More...

#include "crc_ccitt.h"

Go to the source code of this file.

Functions

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

Detailed Description

CRC-CCITT table and support routines.

Version:
Id
crc.c 2770 2009-08-05 07:57:59Z
Author:
Francesco Sacchi <batt@develer.com>

Definition in file crc_ccitt.c.


Function Documentation

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

This function implements the CRC-CCITT calculation on a buffer.

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

Definition at line 76 of file crc_ccitt.c.