mirror of
https://gitee.com/dlmu-cone/tronone-h7-scaffold
synced 2026-07-24 11:37:44 +08:00
videotransmiter
This commit is contained in:
33
User_Code/module/algorithm/crc/crc.h
Normal file
33
User_Code/module/algorithm/crc/crc.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/* USER CODE BEGIN Header */
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file : crc.h
|
||||
* @brief : crc check
|
||||
* @author :
|
||||
* @date : 2023/01/22
|
||||
* @version : v1.0
|
||||
******************************************************************************
|
||||
* @attention : None
|
||||
******************************************************************************
|
||||
*/
|
||||
/* USER CODE END Header */
|
||||
|
||||
#ifndef CRC_H
|
||||
#define CRC_H
|
||||
|
||||
#include "stdint.h"
|
||||
#include "stdbool.h"
|
||||
|
||||
|
||||
extern uint8_t Get_CRC8_Check_Sum(unsigned char *pchMessage, unsigned int dwLength, unsigned char ucCRC8);
|
||||
|
||||
extern bool Verify_CRC8_Check_Sum(unsigned char *pchMessage, unsigned int dwLength);
|
||||
|
||||
extern void Append_CRC8_Check_Sum(unsigned char *pchMessage, unsigned int dwLength);
|
||||
|
||||
extern uint16_t Get_CRC16_Check_Sum(uint8_t *pchMessage, uint32_t dwLength, uint16_t wCRC);
|
||||
|
||||
extern bool Verify_CRC16_Check_Sum(uint8_t *pchMessage, uint32_t dwLength);
|
||||
|
||||
extern void Append_CRC16_Check_Sum(uint8_t *pchMessage, uint32_t dwLength);
|
||||
#endif
|
||||
Reference in New Issue
Block a user