videotransmiter

This commit is contained in:
TuxMonkey
2025-12-05 21:47:00 +08:00
parent 7522bc9974
commit c021b4794c
15 changed files with 2164 additions and 239 deletions

View 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