DLPU114A August 2024 – November 2024 DLPC8445
This command computes and returns the checksum starting at the given address for the specified number of bytes. Checksum is calculated as below: -
uint32 SimpleChecksum = 0;
uint32 SumofSumChecksum = 0;
uint08 *Addr = (uint08 *) StartAddress;
while (NumBytes--)
{
SimpleChecksum += *Addr++;
SumofSumChecksum += SimpleChecksum;
}