CHG: Minor code clean up.

ADD: crc16.c - new crc16_ccitt calc.
This commit is contained in:
iceman1001 2015-01-07 20:40:22 +01:00
commit 23b598ee23
6 changed files with 33 additions and 11 deletions

View file

@ -5,10 +5,11 @@
//-----------------------------------------------------------------------------
// CRC16
//-----------------------------------------------------------------------------
#include <stdint.h>
#ifndef __CRC16_H
#define __CRC16_H
unsigned short update_crc16(unsigned short crc, unsigned char c);
uint16_t crc16(uint8_t const *message, int length, uint16_t remainder, uint16_t polynomial);
uint16_t crc16_ccitt(uint8_t const *message, int length);
#endif