// -------------------------------------------------------------- #ifndef CRC_H #define CRC_H #include // -------------------------------------------------------------- #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