6.2.3 DIAG_EEPROM_CalculateCRC32

This API calculates 32-bit CRC with CCITT Direct Computation method for given EEPROM memory region. This API will be used by DIAG_EEPROM_CalculateStoreCRC32 and DIAG_EEPROM_ValidateCRC32.

static void DIAG_EEPROM_CalculateCRC32(
    uint16_t startAddress,    uint16_t length,    uint32_t * crcSeed
)

Parameters

[in] startAddress

uint16_t

- starting address of EEPROM memory region to be considered for CRC

[in] length

uint16_t

- number of bytes from startAddress to be considered for CRC

[in, out] crcSeed

uint32_t *

- pointer to initial and final CRC

Returns

void None