You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
351 B
20 lines
351 B
|
4 weeks ago
|
/*
|
||
|
|
* modbus_crc.h
|
||
|
|
*
|
||
|
|
* Change Logs:
|
||
|
|
* Date Author Notes
|
||
|
|
* 2024-04-02 qiyongzhong first version
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef __MODBUS_CRC_H__
|
||
|
|
#define __MODBUS_CRC_H__
|
||
|
|
|
||
|
4 weeks ago
|
#include "typedef.h"
|
||
|
4 weeks ago
|
|
||
|
|
#define MB_CRC_INIT_VOL 0xFFFF
|
||
|
|
|
||
|
|
u16 mb_crc_cyc_cal(u16 init, const u8 *pdata, int len);
|
||
|
|
u16 mb_crc_cal(const u8 *pdata, int len) ;
|
||
|
|
|
||
|
|
#endif
|