PER Firmware
Loading...
Searching...
No Matches
crc.h
Go to the documentation of this file.
1
7#ifndef __PHAL_G4_CRC_H__
8#define __PHAL_G4_CRC_H__
9
10#include "stm32g474xx.h"
11
24void PHAL_CRC_init(void);
25
42uint32_t PHAL_CRC_calculate(const uint32_t *data, uint32_t words);
43
57uint32_t PHAL_CRC_calculateSw(const uint32_t *data, uint32_t words);
58
59#endif // __PHAL_G4_CRC_H__
void PHAL_CRC_init(void)
Initialize and configure the hardware CRC peripheral.
Definition crc.c:10
uint32_t PHAL_CRC_calculateSw(const uint32_t *data, uint32_t words)
Software reference implementation of PHAL_CRC_calculate().
Definition crc.c:55
uint32_t PHAL_CRC_calculate(const uint32_t *data, uint32_t words)
Compute a CRC-32/MPEG-2 over a word buffer using the hardware unit.
Definition crc.c:15