STM32 Bootloader
Customizable Bootloader for STM32 microcontrollers
crc.h
Go to the documentation of this file.
1 
16 #ifndef BSP_CRC_H
17 #define BSP_CRC_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
32 /* Includes ------------------------------------------------------------------*/
33 #include <stdint.h>
34 
35 /* Functions------------------------------------------------------------------*/
39 void CrcInit(void);
40 
44 void CrcDeInit(void);
45 
57 uint32_t CrcAccumulate(const uint8_t* const data, const uint32_t size);
58 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif
uint32_t CrcAccumulate(const uint8_t *const data, const uint32_t size)
Calculate the CRC value over the provided buffer.
Definition: crc.c:71
void CrcDeInit(void)
De-initialize the CRC peripheral.
Definition: crc.c:65
void CrcInit(void)
Initialize the CRC peripheral.
Definition: crc.c:37