1 /** 2 ****************************************************************************** 3 * @file HAL_crc.h 4 * @author AE Team 5 * @version V1.1.0 6 * @date 28/08/2019 7 * @brief This file contains all the functions prototypes for the CRC firmware 8 * library. 9 ****************************************************************************** 10 * @copy 11 * 12 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 * TIME. AS A RESULT, MindMotion SHALL NOT BE HELD LIABLE FOR ANY 15 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 * 19 * <h2><center>© COPYRIGHT 2019 MindMotion</center></h2> 20 */ 21 22 /* Define to prevent recursive inclusion -------------------------------------*/ 23 #ifndef __HAL_CRC_H 24 #define __HAL_CRC_H 25 26 /* Includes ------------------------------------------------------------------*/ 27 #include "HAL_device.h" 28 29 /** @addtogroup StdPeriph_Driver 30 * @{ 31 */ 32 33 /** @addtogroup CRC 34 * @{ 35 */ 36 37 /** @defgroup CRC_Exported_Types 38 * @{ 39 */ 40 41 /** 42 * @} 43 */ 44 45 /** @defgroup CRC_Exported_Constants 46 * @{ 47 */ 48 49 /** 50 * @} 51 */ 52 53 /** @defgroup CRC_Exported_Macros 54 * @{ 55 */ 56 57 /** 58 * @} 59 */ 60 61 /** @defgroup CRC_Exported_Functions 62 * @{ 63 */ 64 65 void CRC_ResetDR(void); 66 uint32_t CRC_CalcCRC(uint32_t Data); 67 uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength); 68 uint32_t CRC_GetCRC(void); 69 void CRC_SetIDRegister(uint8_t IDValue); 70 uint8_t CRC_GetIDRegister(void); 71 72 #endif /* __HAL_CRC_H */ 73 /** 74 * @} 75 */ 76 77 /** 78 * @} 79 */ 80 81 /** 82 * @} 83 */ 84 85 /*-------------------------(C) COPYRIGHT 2019 MindMotion ----------------------*/ 86