ch32v30x_crc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /********************************** (C) COPYRIGHT *******************************
  2. * File Name : ch32v30x_crc.h
  3. * Author : WCH
  4. * Version : V1.0.0
  5. * Date : 2021/06/06
  6. * Description : This file contains all the functions prototypes for the
  7. * CRC firmware library.
  8. *********************************************************************************
  9. * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
  10. * Attention: This software (modified or not) and binary are used for
  11. * microcontroller manufactured by Nanjing Qinheng Microelectronics.
  12. *******************************************************************************/
  13. #ifndef __CH32V30x_CRC_H
  14. #define __CH32V30x_CRC_H
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #include "ch32v30x.h"
  19. void CRC_ResetDR(void);
  20. uint32_t CRC_CalcCRC(uint32_t Data);
  21. uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
  22. uint32_t CRC_GetCRC(void);
  23. void CRC_SetIDRegister(uint8_t IDValue);
  24. uint8_t CRC_GetIDRegister(void);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif