apm32f4xx_crc.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*!
  2. * @file apm32f4xx_crc.h
  3. *
  4. * @brief This file contains all the functions prototypes for the CRC firmware library
  5. *
  6. * @version V1.0.2
  7. *
  8. * @date 2022-06-23
  9. *
  10. * @attention
  11. *
  12. * Copyright (C) 2021-2022 Geehy Semiconductor
  13. *
  14. * You may not use this file except in compliance with the
  15. * GEEHY COPYRIGHT NOTICE (GEEHY SOFTWARE PACKAGE LICENSE).
  16. *
  17. * The program is only for reference, which is distributed in the hope
  18. * that it will be usefull and instructional for customers to develop
  19. * their software. Unless required by applicable law or agreed to in
  20. * writing, the program is distributed on an "AS IS" BASIS, WITHOUT
  21. * ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the GEEHY SOFTWARE PACKAGE LICENSE for the governing permissions
  23. * and limitations under the License.
  24. */
  25. /* Define to prevent recursive inclusion */
  26. #ifndef __APM32F4XX_CRC_H
  27. #define __APM32F4XX_CRC_H
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. /* Includes */
  32. #include "apm32f4xx.h"
  33. /** @addtogroup APM32F4xx_StdPeriphDriver
  34. @{
  35. */
  36. /** @addtogroup CRC_Driver
  37. @{
  38. */
  39. /** @defgroup CRC_Functions
  40. @{
  41. */
  42. /* Reset DATA */
  43. void CRC_ResetDATA(void);
  44. /* Operation functions */
  45. uint32_t CRC_CalculateCRC(uint32_t data);
  46. uint32_t CRC_CalculateBlockCRC(uint32_t *buf, uint32_t bufLen);
  47. uint32_t CRC_ReadCRC(void);
  48. void CRC_WriteIDRegister(uint8_t inData);
  49. uint8_t CRC_ReadIDRegister(void);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif /* __APM32F4XX_CRC_H */
  54. /**@} end of group CRC_Driver */
  55. /**@} end of group APM32F4xx_StdPeriphDriver */