apm32f10x_crc.h 929 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*!
  2. * @file apm32f10x_crc.h
  3. *
  4. * @brief This file contains all the functions prototypes for the CRC firmware library
  5. *
  6. * @version V1.0.1
  7. *
  8. * @date 2021-03-23
  9. *
  10. */
  11. #ifndef __APM32F10X_CRC_H
  12. #define __APM32F10X_CRC_H
  13. #include "apm32f10x.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /** @addtogroup Peripherals_Library Standard Peripheral Library
  18. @{
  19. */
  20. /** @addtogroup CRC_Driver CRC Driver
  21. @{
  22. */
  23. /** @addtogroup CRC_Fuctions Fuctions
  24. @{
  25. */
  26. /** Reset DATA */
  27. void CRC_ResetDATA(void);
  28. /** Operation functions */
  29. uint32_t CRC_CalculateCRC(uint32_t data);
  30. uint32_t CRC_CalculateBlockCRC(uint32_t *buf, uint32_t bufLen);
  31. uint32_t CRC_ReadCRC(void);
  32. void CRC_WriteIDRegister(uint8_t inData);
  33. uint8_t CRC_ReadIDRegister(void);
  34. /**@} end of group CRC_Fuctions*/
  35. /**@} end of group CRC_Driver */
  36. /**@} end of group Peripherals_Library*/
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif /* __APM32F10X_CRC_H */