stm32f4xx_crc.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /**
  2. ******************************************************************************
  3. * @file stm32f4xx_crc.h
  4. * @author MCD Application Team
  5. * @version V1.5.0
  6. * @date 06-March-2015
  7. * @brief This file contains all the functions prototypes for the CRC firmware
  8. * library.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
  13. *
  14. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  15. * You may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at:
  17. *
  18. * http://www.st.com/software_license_agreement_liberty_v2
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. *
  26. ******************************************************************************
  27. */
  28. /* Define to prevent recursive inclusion -------------------------------------*/
  29. #ifndef __STM32F4xx_CRC_H
  30. #define __STM32F4xx_CRC_H
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. /* Includes ------------------------------------------------------------------*/
  35. #include "stm32f4xx.h"
  36. /** @addtogroup STM32F4xx_StdPeriph_Driver
  37. * @{
  38. */
  39. /** @addtogroup CRC
  40. * @{
  41. */
  42. /* Exported types ------------------------------------------------------------*/
  43. /* Exported constants --------------------------------------------------------*/
  44. /** @defgroup CRC_Exported_Constants
  45. * @{
  46. */
  47. /**
  48. * @}
  49. */
  50. /* Exported macro ------------------------------------------------------------*/
  51. /* Exported functions --------------------------------------------------------*/
  52. void CRC_ResetDR(void);
  53. uint32_t CRC_CalcCRC(uint32_t Data);
  54. uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
  55. uint32_t CRC_GetCRC(void);
  56. void CRC_SetIDRegister(uint8_t IDValue);
  57. uint8_t CRC_GetIDRegister(void);
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif /* __STM32F4xx_CRC_H */
  62. /**
  63. * @}
  64. */
  65. /**
  66. * @}
  67. */
  68. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/