1.5wuling_zhuanjietou/UDS/crc.h

18 lines
434 B
C
Raw Normal View History

2024-10-17 01:06:51 +00:00
#ifndef _CRC_H
#define _CRC_H
#include "sys.h"
uint32_t crc32( uint8_t *buf, int len); //crc32 ʵ<>ֺ<EFBFBD><D6BA><EFBFBD>
uint32_t crc32MultSegment( uint8_t *seg1, int len1, uint8_t *seg2, int len2);
void CalcCheckSum(uint32_t *sum, uint8_t *data, uint32_t size);
void CRC16_CCITT_1021_Init(uint16_t *crc);
void CRC16_CCITT_1021_Update(uint16_t *crc, uint8_t *pData ,uint32_t len);
uint32_t CRC16_DataCheck( const u8 *pData, u32 size );
#endif