DIAG_EEPROM_CalculateStoreCRC32()

diag_crc_status_t DIAG_EEPROM_CalculateStoreCRC32 (uint16_t startAddress, uint16_t length, uint16_t storeAddress)

The CRC EEPROM test implements the periodic modified checksum (H.2.19.3.1) defined by the IEC 60730 standard.

This API calculates 32-bit CRC for a given EEPROM memory region and stores the same at EEPROM address indicated by storeAddress argument.

Parameters:
in startAddress

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

in length

- number of bytes from startAddress to be considered for CRC

in storeAddress

- the EEPROM address where calculated CRC will be stored

Returns:

CRC_OK, CRC_ERROR, CRC_INVALID_ADDRESS, CRC_INVALID_LENGTH