Initial import

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/crc@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-07-19 07:44:42 +00:00
commit ec11499cb4
2 changed files with 65 additions and 0 deletions
Executable
+19
View File
@@ -0,0 +1,19 @@
// --------------------------------------------------------------
#ifndef CRC_H
#define CRC_H
#include <stdint.h>
// --------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
uint16_t Upd_crc16(uint8_t ch, uint16_t poly, uint16_t crc);
uint16_t Crc16(uint16_t poly, uint16_t crc, uint8_t *pBuf, uint32_t len);
#ifdef __cplusplus
}
#endif // __cplusplus
// --------------------------------------------------------------
#endif // CRC_H