DIAG_EEPROM_ValidateCRC32()

diag_crc_status_t DIAG_EEPROM_ValidateCRC32 (uint32_t startAddress, uint32_t length, uint32_t refAddress)

The CRC EEPROM test implements the periodic modified checksum (H.2.19.3.1) defined by the IEC 60730 standard. This API validates the CRC of a given EEPROM memory region by re-calculating and comparing it with reference CRC stored by DIAG_EEPROM_CalculateStoreCRC32

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 refAddress

- the EEPROM address where reference CRC is available

Returns:

CRC_OK, CRC_ERROR, CRC_INVALID_ADDRESS, CRC_INVALID_LENGTH