SPRUJB8 April 2024
Calculates the ECC for the supplied address and 64-bit value
uint8 Fapi_calculateEcc(
uint32 u32Address,
uint64 u64Data
)
u32Address [in] | Address of the 64-bit value to calculate the ECC |
u64Data [in] | 64-bit value to calculate ECC on (should be in little endian order) |
This function will calculate the ECC for a 64-bit aligned word including address. There is no need to provide a left-shifted address to this function anymore. TMS320F28P65x Flash API takes care of it.
8-bit calculated ECC (upper 8 bits of the 16-bit return value should be ignored)
If an error occurs, the 16-bit return value is 0xDEAD