stm32f4xx_crc.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /**
  2. ******************************************************************************
  3. * @file stm32f4xx_crc.h
  4. * @author MCD Application Team
  5. * @version V1.0.0
  6. * @date 30-September-2011
  7. * @brief This file contains all the functions prototypes for the CRC firmware
  8. * library.
  9. ******************************************************************************
  10. * @attention
  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, STMICROELECTRONICS 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 2011 STMicroelectronics</center></h2>
  20. ******************************************************************************
  21. */
  22. /* Define to prevent recursive inclusion -------------------------------------*/
  23. #ifndef __STM32F4xx_CRC_H
  24. #define __STM32F4xx_CRC_H
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. /* Includes ------------------------------------------------------------------*/
  29. #include "stm32f4xx.h"
  30. /** @addtogroup STM32F4xx_StdPeriph_Driver
  31. * @{
  32. */
  33. /** @addtogroup CRC
  34. * @{
  35. */
  36. /* Exported types ------------------------------------------------------------*/
  37. /* Exported constants --------------------------------------------------------*/
  38. /** @defgroup CRC_Exported_Constants
  39. * @{
  40. */
  41. /**
  42. * @}
  43. */
  44. /* Exported macro ------------------------------------------------------------*/
  45. /* Exported functions --------------------------------------------------------*/
  46. void CRC_ResetDR(void);
  47. uint32_t CRC_CalcCRC(uint32_t Data);
  48. uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
  49. uint32_t CRC_GetCRC(void);
  50. void CRC_SetIDRegister(uint8_t IDValue);
  51. uint8_t CRC_GetIDRegister(void);
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif /* __STM32F4xx_CRC_H */
  56. /**
  57. * @}
  58. */
  59. /**
  60. * @}
  61. */
  62. /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/