STM32 Bootloader
Customizable Bootloader for STM32 microcontrollers

Functions

void CrcInit (void)
 Initialize the CRC peripheral.
 
void CrcDeInit (void)
 De-initialize the CRC peripheral.
 
uint32_t CrcAccumulate (const uint8_t *const data, const uint32_t size)
 Calculate the CRC value over the provided buffer. More...
 

Variables

static CRC_HandleTypeDef crcHandle
 

Detailed Description

Function Documentation

◆ CrcAccumulate()

uint32_t CrcAccumulate ( const uint8_t *const  data,
const uint32_t  size 
)

Calculate the CRC value over the provided buffer.

The calculation is done in an accumulated manner; i.e. the calculation starts with the previously computed CRC value as the CRC initialization value.

Parameters
dataPointer to the buffer containing the data.
sizeSize of the buffer in bytes.
Returns
The calculated CRC value.

Definition at line 71 of file crc.c.

Variable Documentation

◆ crcHandle

CRC_HandleTypeDef crcHandle
static

Handle for the CRC peripheral.

Definition at line 34 of file crc.c.