AM243x MCU+ SDK  09.00.00
CRC functions

Introduction

Files

file  cb_crc.h
 CRC implementation.
 

Functions

uint32_t cb_crc32_calculate (uint8_t *bufptr, uint32_t bufsize)
 The function implement the CRC32 calculation based on the IEEE-802.3 CRC32 Ethernet Standard. More...
 

Function Documentation

◆ cb_crc32_calculate()

uint32_t cb_crc32_calculate ( uint8_t *  bufptr,
uint32_t  bufsize 
)

The function implement the CRC32 calculation based on the IEEE-802.3 CRC32 Ethernet Standard.

Polynomial: 04C11DB7h
Initial value: FFFFFFFFh
Input data reflected: Yes
Result data reflected: Yes
XOR value: FFFFFFFFh

Parameters
bufptrinput data buffer
bufsizeinput data buffer size
Returns
0 if bufptr = NULL or bufsize = 0, else return calculated CRC