Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Sat Jul 16 2022 03:23:51 by
