Knud Dalgaard / 310-TMC3-TestHW

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers crc16.h Source File

crc16.h

00001 #include "mbed.h"
00002 
00003 
00004 //----------------------------------------
00005 // Structures
00006 //----------------------------------------
00007 
00008 
00009 //----------------------------------------
00010 // Definitions 
00011 //----------------------------------------
00012 #define CRC16_POLYNOME      0xA001
00013 #define CRC16_STARTVALUE    0xFFFF
00014     
00015     
00016 //----------------------------------------
00017 // global Variables
00018 //----------------------------------------
00019 
00020 
00021 
00022 //----------------------------------------
00023 // global Functions -> Prototype declaration
00024 //----------------------------------------
00025 
00026 //  Inputs: - uint16 *ptrCRC16: must be initialized with 0xFFFF
00027 //                  - uint8 *ptrData: one byte data
00028 
00029 extern void calcCRC16(char *ptrData, int numbBytes, unsigned short *ptrCRC16);
00030