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.
|
|
#pragma once
#include <stdbool.h>
#include <stdint.h>
/**
* @brief ����CRC16У���� * * @param puckMsg ����ָ�� * @param usDataLen ���ݳ���(������CRC16) * @return uint16_t */ uint16_t modbus_gen_crc16(uint8_t *puckMsg, uint8_t usDataLen); /**
* @brief ��CRC16У�������ӵ����ݰ��� * * @param puckMsg ����ָ�룬������Ԥ������λ�ø�CRC16 * @param packetlen ���ݳ��� */ void modbus_pack_crc_to_packet(uint8_t *puckMsg, uint8_t packetlen); /**
* @brief ����CRC16У���� * * @param message ����ָ�� * @param length ���ݳ���(����CRC16) * @return true У���ɹ� * @return false У��ʧ�� */ bool modbus_checkcrc16(uint8_t *message, uint8_t length);
|