3.9.1 Functions
static nvm_status_t DIAG_FLASH_StoreCRC (flash_address_t flash_adr, uint16_t data)
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 FLASH address indicated by 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 re-calculating and comparing it with the reference CRC stored by DIAG_FLASH_CalculateStoreCRC.