crc529.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "sportident.h"

Go to the source code of this file.

Defines

#define POLYNOM   0x8005
 Polynomial used for CRC.

Functions

unsigned int SiCrc (unsigned int len, const unsigned char *data)
 A function to return CRC values used by SPORTident.

Detailed Description

Author:
Dylan (smellyfis) Thies <dylan.thies@lostorienteerer.net>
Jürgen Ehms <juergen@sportident.com>
Version:
1.1.0

LICENSE

This Program/Library is open source software; you may redistribute and/or modify it as long as the resulting program/library is under a FOSS license or with the approval of the authors or owning group

This Program is distributed in hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

DESCRIPTION

This is a file is the implementtion of a crc-16 that is used in si hardware

Definition in file crc529.c.


Function Documentation

unsigned int SiCrc ( unsigned int  len,
const unsigned char *  data 
)

A function to return CRC values used by SPORTident.

It uses ANSI CRC-16

Parameters:
len The length of the byte string data.
data The byte string of what you want to encode.
Returns:
A CRC value of data

Definition at line 37 of file crc529.c.

All Data Structures Files Functions Variables Enumerations Defines
Generated on Sat May 22 20:28:32 2010 for LibSportIdent by  doxygen 1.6.3