functions for CRC calculation
Author: Monica Redon Segrera and Nuria Llombart Juan
Copyright: (C) 2003-2004 by Fraunhofer IIS-A, IT-Services, Erlangen
Created: 2001-01-02
Version: 2004-03-02
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <malloc.h>
Go to the source code of this file.
Functions | |
unsigned short | CRC_Build_16 (const unsigned char *cDataPointer, const unsigned long iLength) |
calculate CRC-16 | |
unsigned char | CRC_Build_8 (const unsigned char *cDataPointer, const unsigned long iLength) |
calculate 8 bit CRC | |
char | CRC_Check_16 (const unsigned char *cDataPointer, const unsigned long iLength, const unsigned short iCRC_16) |
check whether data matches CRC-16 | |
char | CRC_Check_8 (const unsigned char *cDataPointer, const unsigned long iLength, const unsigned char iCRC_8) |
check whether data matches CRC-8 |
|
calculate CRC-16
calculates the 16 bit CRC value of the provided data and returns it CreationDate: 2001-02-02 Version: 2004-03-02
|
|
calculate 8 bit CRC
calculates the 8 bit CRC value of the provided data and returns it CreationDate: 2001-02-02 Version: 2004-03-02
|
|
check whether data matches CRC-16
compares the 16 bit CRC value of the provided data to the provided 16 bit value CreationDate: 2001-02-02 Version: 2004-03-02
|
|
check whether data matches CRC-8
compares the 8 bit CRC value of the provided data to the provided 8 bit value CreationDate: 2001-02-02 Version: 2004-03-02
|