6.2.2 DIAG_EEPROM_ValidateCRC32

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.

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

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] refAddress

uint16_t

- the EEPROM address where reference CRC is available

Returns