4.5.2.2 DIAG_EEPROM_ValidateCRC16
Software Requirement Reference ID : SW_EEPROM_MEMORY_CHECKSUM_CRC_TEST_01. This API validates the CRC of a given EEPROM memory region by re-calculating and comparing it with reference CRC stored by DIAG_EEPROM_CalculateStoreCRC16.
diag_crc_status_t DIAG_EEPROM_ValidateCRC16(
uint32_t startAddress, uint32_t length, uint32_t refAddress
)
Parameters
[in] startAddress |
uint32_t
- starting address of EEPROM memory region to be considered for CRC |
[in] length |
uint32_t
- number of bytes from startAddress to be considered for CRC |
[in] refAddress |
uint32_t
- the EEPROM address where reference CRC is available |
Returns
diag_crc_status_t | CRC_OK= 0, CRC_ERROR= 1, CRC_INVALID_ADDRESS= 2, CRC_INVALID_LENGTH= 3 |