S32 SDK
crc_hal.c File Reference
#include "crc_hal.h"

Go to the source code of this file.

Macros

#define CRC_DEFAULT_POLYNOMIAL   (0x1021U)
 
#define CRC_INITIAL_SEED   (0U)
 

Functions

void CRC_HAL_Init (CRC_Type *const base)
 Initializes the CRC module. More...
 
uint32_t CRC_HAL_GetCrc32 (CRC_Type *const base, uint32_t data, bool newSeed, uint32_t seed)
 Appends 32-bit data to the current CRC calculation and returns new result. More...
 
uint32_t CRC_HAL_GetCrc16 (CRC_Type *const base, uint16_t data, bool newSeed, uint32_t seed)
 Appends 16-bit data to the current CRC calculation and returns new result. More...
 
uint32_t CRC_HAL_GetCrc8 (CRC_Type *const base, uint8_t data, bool newSeed, uint32_t seed)
 Appends 8-bit data to the current CRC calculation and returns new result. More...
 
uint32_t CRC_HAL_GetCrcResult (const CRC_Type *const base)
 Returns the current result of the CRC calculation. More...
 

Macro Definition Documentation

#define CRC_DEFAULT_POLYNOMIAL   (0x1021U)

Definition at line 32 of file crc_hal.c.

#define CRC_INITIAL_SEED   (0U)

Definition at line 34 of file crc_hal.c.