4.15.22 diag_flash_crc32_direct.c File Reference

This file contains APIs to test FLASH using CRC32 Direct Computation algorithm.

Includes

  1. diag_flash_crc32.h
  2. ../../../diag_common/config/diag_config.h
  3. string.h

Functions

Table 4-42. diag_crc_status_tDIAG_FLASH_CalculateCRC32 (uint32_t startAddress, uint32_t length, uint32_t *crcSeed)
Parameters

[in] startAddress

uint32_t

- starting address of FLASH memory region to be considered for CRC

[in] length

uint32_t

- number of bytes from startAddress to be considered for CRC

[in, out] crcSeed

uint32_t *

- pointer to initial and final CRC

Returns
diag_crc_status_t CRC_OK, CRC_ERROR, CRC_INVALID_ADDRESS, CRC_INVALID_LENGTH