This file contains APIs to test FLASH using CRC16 CCITT Direct Computation algorithm.
Includes
- diag_flash_crc16.h
- ../../../diag_common/config/diag_config.h
- string.h
- xc.h
Functions
Table 4-38. diag_crc_status_tDIAG_FLASH_CalculateCRC16 (uint32_t startAddress, uint32_t length, uint16_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
|
uint16_t *
- pointer to initial and final CRC
|
|
Returns |
diag_crc_status_t
| CRC_OK,
CRC_ERROR,
CRC_INVALID_ADDRESS,
CRC_INVALID_LENGTH
|
|