HAL_crc.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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>&copy; COPYRIGHT 2019 MindMotion</center></h2>
  20. */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef __HAL_CRC_H
  23. #define __HAL_CRC_H
  24. /* Includes ------------------------------------------------------------------*/
  25. #include "HAL_device.h"
  26. /** @addtogroup StdPeriph_Driver
  27. * @{
  28. */
  29. /** @addtogroup CRC
  30. * @{
  31. */
  32. /** @defgroup CRC_Exported_Types
  33. * @{
  34. */
  35. /**
  36. * @}
  37. */
  38. /** @defgroup CRC_Exported_Constants
  39. * @{
  40. */
  41. /**
  42. * @}
  43. */
  44. /** @defgroup CRC_Exported_Macros
  45. * @{
  46. */
  47. /**
  48. * @}
  49. */
  50. /** @defgroup CRC_Exported_Functions
  51. * @{
  52. */
  53. void CRC_ResetDR(void);
  54. uint32_t CRC_CalcCRC(uint32_t Data);
  55. uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
  56. uint32_t CRC_GetCRC(void);
  57. void CRC_SetIDRegister(uint8_t IDValue);
  58. uint8_t CRC_GetIDRegister(void);
  59. #endif /* __HAL_CRC_H */
  60. /**
  61. * @}
  62. */
  63. /**
  64. * @}
  65. */
  66. /**
  67. * @}
  68. */
  69. /*-------------------------(C) COPYRIGHT 2019 MindMotion ----------------------*/