Herunterladen Inhalt Inhalt Diese Seite drucken

Referenzen; C-Code-Beispiel Für Die Crc-Berechnung (Rs-232/Rs-422) - Sick Ld-Oem Betriebsanleitung

Lasermesssystem
Inhaltsverzeichnis
Kapitel 10
Example C code to calculate a CRC sum:
/*
**************************************************************************
Project:
File:
Version:
Date:
Compiler:
Developed by:
Copyright:
**************************************************************************
Abstract:
routines for calculating a 16 bits CRC signature using the generator
polynom x^16 + x^12 + x^5 + 1 as recommended by the ITU.T V.42
(former CCITT); all routines use a table driven algorithm
--------------------------------------------------------------------------
Modification History:
0.0.1
20.09.1998
created
***************************************************************************/
#define CRC16C_C
// includes
#include "cpu-dep.h"
//========================================================================
// local scope defines
// (global scope in seperate header file: this_file.h)
//========================================================================
10-12
Anhang
Fehlerbehandlung
Das aktuelle Packet wird ignoriert und der aktuelle Rahmen verworfen, wenn ein Paket eine
falsche Paket-ID hat.
10.5.6

Referenzen

/1/ COM 20020 ULANC Revision D, data sheet for the SMSC ARCnet chip COM20020
/2/ Technical Note 7-5, Rev. E, May 1994, SMSC application note; RS-485 cabeling guide-
lines for the COM20020
/3/ ANSI/ATA 878.1 Version 1.10; Local Area Network: Token Bus (2.5MBPS), ARCnet
Trade Association, 8196 Cass Avenue, Darien, IL 60561
10.5.7
C-Code-Beispiel für die CRC-Berechnung (RS-232/RS-422)
generic project
crc16c.c
CRC16 calculation
V0.0.1
20.09.1998
Uwe Reuther
(c) IBEO Lasertechnik GmbH 1998
© SICK AG · Division Auto Ident · Germany · All rights reserved
Betriebsanleitung
Lasermesssystem LD OEM
8 010 327/0000/28-09-2004
Inhaltsverzeichnis
loading

Diese Anleitung auch für:

9106697

Inhaltsverzeichnis