This file contains APIs to test EEPROM using CRC32 Look-up Table algorithm.
Includes
- diag_eeprom_crc32.h
- diag_crc32_lookup_table.h
- ../../../diag_common/config/diag_config.h
- string.h
- xc.h
Functions
Table 3-34. diag_crc_status_tDIAG_EEPROM_CalculateCRC32 (uint16_t startAddress, uint16_t length, uint32_t *crcSeed)
Parameters |
[in] startAddress
|
uint16_t
- starting address of EEPROM memory region to be considered for CRC
|
[in] length
|
uint16_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
|
|
Table 3-35. diag_crc_status_tDIAG_EEPROM_CalculateStoreCRC32 (uint16_t startAddress, uint16_t length, uint16_t storeAddress)
Parameters |
[in] startAddress
|
uint16_t
- starting address of EEPROM memory region to be considered for CRC
|
[in] length
|
uint16_t
- number of bytes from startAddress to be considered for CRC
|
[in] storeAddress
|
uint16_t
- the EEPROM address where calculated CRC will be stored
|
|
Returns |
diag_crc_status_t
| CRC_OK,
CRC_ERROR,
CRC_INVALID_ADDRESS,
CRC_INVALID_LENGTH
|
|
Table 3-36. diag_crc_status_tDIAG_EEPROM_ValidateCRC32 (uint16_t startAddress, uint16_t length, uint16_t refAddress)
Parameters |
[in] startAddress
|
uint16_t
- starting address of EEPROM memory region to be considered for CRC
|
[in] length
|
uint16_t
- number of bytes from startAddress to be considered for CRC
|
[in] refAddress
|
uint16_t
- the EEPROM address where reference CRC is available
|
|
Returns |
diag_crc_status_t
| CRC_OK,
CRC_ERROR,
CRC_INVALID_ADDRESS,
CRC_INVALID_LENGTH
|
|