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.
15 lines
1.5 KiB
15 lines
1.5 KiB
1 year ago
|
//#############################################################################################################################################################################################################
|
||
|
#ifndef _INC_MODBUS_CRC_H_
|
||
|
#define _INC_MODBUS_CRC_H_
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
#include <inttypes.h>
|
||
|
#include <avr/pgmspace.h>
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
#define MODBUS_CRC16_SIZE 2
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
uint16_t MODBUS_CRC16_T(uint8_t *MODBUS_puchMsg, uint16_t MODBUS_usDataLen);
|
||
|
uint16_t MODBUS_CRC16_S(uint8_t *MODBUS_buf, uint16_t MODBUS_len);
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
#endif // #ifndef _INC_MODBUS_CRC_H_
|
||
|
//#############################################################################################################################################################################################################
|