3.5.1 Functions
const uint16_t reference_crc __at (DIAG_FLASH_CRC_STORE_ADDR)=0
static void DIAG_FLASH_CalculateCRC (flash_address_t startAddress, uint32_t length, uint16_t *crcSeed)
diag_result_t DIAG_FLASH_CalculateStoreCRC (flash_address_t startAddress, uint32_t length, flash_address_t storeAddress)
Calculates the 16-bit CRC for a given Flash memory region and stores it at the address indicated by the storeAddress argument.
diag_result_t DIAG_FLASH_ValidateCRC (flash_address_t startAddress, uint32_t length, flash_address_t refAddress)
Validates the CRC of a given Flash memory region by recalculating and comparing it with the reference CRC stored by DIAG_FLASH_CalculateStoreCRC.