1234567891011121314151617181920212223242526 |
- /*
- * CRC16.h
- *
- * Created on: 2019. 7. 3.
- * Author: parkyj
- */
- #ifndef CRC16_H_
- #define CRC16_H_
- #include "main.h"
- typedef enum{
- CHECKSUM_ERROR = 0,
- NO_ERROR
- }etError;
- bool Chksum_Check(uint8_t *data, uint32_t leng,uint8_t chkdata);
- uint8_t Chksum_Create(uint8_t *data);
- uint16_t CRC16_Generate(uint8_t *buf_ptr, int32_t len);
- etError CRC16_Check(uint8_t *buf_ptr, int32_t len,uint16_t checksum);
- uint8_t STH30_CreateCrc(uint8_t *data, uint8_t nbrOfBytes);
- uint8_t STH30_CreateCrc(uint8_t *data, uint8_t nbrOfBytes);
- #endif /* CRC16_H_ */
|