stm32f2xx_crc.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**
  2. ******************************************************************************
  3. * @file stm32f2xx_crc.h
  4. * @author MCD Application Team
  5. * @version V1.1.3
  6. * @date 31-December-2021
  7. * @brief This file contains all the functions prototypes for the CRC firmware
  8. * library.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * Copyright (c) 2012 STMicroelectronics.
  13. * All rights reserved.
  14. *
  15. * This software is licensed under terms that can be found in the LICENSE file
  16. * in the root directory of this software component.
  17. * If no LICENSE file comes with this software, it is provided AS-IS.
  18. *
  19. ******************************************************************************
  20. */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef __STM32F2xx_CRC_H
  23. #define __STM32F2xx_CRC_H
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "stm32f2xx.h"
  29. /** @addtogroup STM32F2xx_StdPeriph_Driver
  30. * @{
  31. */
  32. /** @addtogroup CRC
  33. * @{
  34. */
  35. /* Exported types ------------------------------------------------------------*/
  36. /* Exported constants --------------------------------------------------------*/
  37. /** @defgroup CRC_Exported_Constants
  38. * @{
  39. */
  40. /**
  41. * @}
  42. */
  43. /* Exported macro ------------------------------------------------------------*/
  44. /* Exported functions --------------------------------------------------------*/
  45. void CRC_ResetDR(void);
  46. uint32_t CRC_CalcCRC(uint32_t Data);
  47. uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
  48. uint32_t CRC_GetCRC(void);
  49. void CRC_SetIDRegister(uint8_t IDValue);
  50. uint8_t CRC_GetIDRegister(void);
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif /* __STM32F2xx_CRC_H */
  55. /**
  56. * @}
  57. */
  58. /**
  59. * @}
  60. */