Implementation of CRC16 using polynomial 0x8005 - (X^16 X^15 X^2 1)
Fork of CRC16 by
CRC16.h
- Committer:
- dragyu
- Date:
- 2016-11-01
- Revision:
- 1:88c965afbea6
- Parent:
- 0:585ead300cab
File content as of revision 1:88c965afbea6:
#ifndef CRC16_H #define CRC16_H #include "mbed.h" class CRC16 { private: char *auchCRCHi; char *auchCRCLo; public: uint16_t calculateCRC16( char *updata, int lenght); CRC16(); ~CRC16(); }; // x16+x15+x2+1 现在生成的 crc16 modbus 是正确顺序 高位在前 d低位在后 #endif