n32g45x_crc.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*****************************************************************************
  2. * Copyright (c) 2019, Nations Technologies Inc.
  3. *
  4. * All rights reserved.
  5. * ****************************************************************************
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions are met:
  9. *
  10. * - Redistributions of source code must retain the above copyright notice,
  11. * this list of conditions and the disclaimer below.
  12. *
  13. * Nations' name may not be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. *
  16. * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY NATIONS "AS IS" AND ANY EXPRESS OR
  17. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  18. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
  19. * DISCLAIMED. IN NO EVENT SHALL NATIONS BE LIABLE FOR ANY DIRECT, INDIRECT,
  20. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  21. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
  22. * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  23. * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  24. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  25. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. * ****************************************************************************/
  27. /**
  28. * @file n32g45x_crc.h
  29. * @author Nations
  30. * @version v1.0.0
  31. *
  32. * @copyright Copyright (c) 2019, Nations Technologies Inc. All rights reserved.
  33. */
  34. #ifndef __N32G45X_CRC_H__
  35. #define __N32G45X_CRC_H__
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. #include "n32g45x.h"
  40. /** @addtogroup N32G45X_StdPeriph_Driver
  41. * @{
  42. */
  43. /** @addtogroup CRC
  44. * @{
  45. */
  46. /** @addtogroup CRC_Exported_Types
  47. * @{
  48. */
  49. /**
  50. * @}
  51. */
  52. /** @addtogroup CRC_Exported_Constants
  53. * @{
  54. */
  55. /**
  56. * @}
  57. */
  58. /** @addtogroup CRC_Exported_Macros
  59. * @{
  60. */
  61. /**
  62. * @}
  63. */
  64. /** @addtogroup CRC_Exported_Functions
  65. * @{
  66. */
  67. void CRC32_ResetCrc(void);
  68. uint32_t CRC32_CalcCrc(uint32_t Data);
  69. uint32_t CRC32_CalcBufCrc(uint32_t pBuffer[], uint32_t BufferLength);
  70. uint32_t CRC32_GetCrc(void);
  71. void CRC32_SetIDat(uint8_t IDValue);
  72. uint8_t CRC32_GetIDat(void);
  73. uint16_t CRC16_CalcBufCrc(uint8_t pBuffer[], uint32_t BufferLength);
  74. uint16_t CRC16_CalcCRC(uint8_t Data);
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78. #endif /* __N32G45X_CRC_H__ */
  79. /**
  80. * @}
  81. */
  82. /**
  83. * @}
  84. */
  85. /**
  86. * @}
  87. */