3.3.13.3.1 DIAG_EEPROM_CalculateCRC16()

static void DIAG_EEPROM_CalculateCRC16 (uint16_t startAddress, uint16_t length, uint16_t * crcSeed)[static]

The CRC EEPROM test implements the periodic modified checksum (H.2.19.3.1) defined by the IEC 60730 standard.

This API calculates 16-bit CRC with Look-Up Table method for given EEPROM memory region. This API will be used by DIAG_EEPROM_CalculateStoreCRC16 and DIAG_EEPROM_ValidateCRC16.
Parameters:
in startAddress

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

in length

- number of bytes from startAddress to be considered for CRC

in,out crcSeed

- pointer to initial and final CRC

Returns:

None