BeRTOS
Functions | Variables
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

 CRC_TABLE
 crctab calculated by Mark G.

Detailed Description

CRC table and support routines.

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:
crcCurrent CRC16 value.
bufThe buffer to perform CRC calculation on.
lenThe length of the Buffer.
Returns:
The updated CRC16 value.

Definition at line 94 of file crc.c.


Variable Documentation

crctab calculated by Mark G.

Mendel, Network Systems Corporation

Definition at line 59 of file crc.c.