gd32f10x_crc.h 979 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. ******************************************************************************
  3. * @brief CRC header file of the firmware library.
  4. ******************************************************************************
  5. */
  6. /* Define to prevent recursive inclusion -------------------------------------*/
  7. #ifndef __GD32F10X_CRC_H
  8. #define __GD32F10X_CRC_H
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. /* Includes ------------------------------------------------------------------*/
  13. #include "gd32f10x.h"
  14. /** @addtogroup GD32F10x_Firmware
  15. * @{
  16. */
  17. /** @addtogroup CRC
  18. * @{
  19. */
  20. /** @defgroup CRC_Exported_Functions
  21. * @{
  22. */
  23. void CRC_ResetDTR(void);
  24. uint32_t CRC_CalcSingleData(uint32_t CRC_data);
  25. uint32_t CRC_CalcDataFlow(uint32_t pbuffer[], uint32_t buffer_length);
  26. uint32_t CRC_ReadDTR(void);
  27. void CRC_WriteFDTR(uint8_t CRC_fdtr);
  28. uint8_t CRC_ReadFDTR(void);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif /*__GD32F10X_CRC_H */
  33. /**
  34. * @}
  35. */
  36. /**
  37. * @}
  38. */
  39. /**
  40. * @}
  41. */