<< Previous | Next >>

CalculateECC256

long CalculateECC256( void * data );

Description

Calculates a 3 byte Error Correcting Checksum (ECC, 1 bit correction and 2 bit detection capability) value for a 256 byte (2048 bit) data buffer located in root memory.

Parameters

data
Pointer to the 256 byte data buffer

Return value

The calculated ECC in the 3 LSBs of the long (i.e., BCDE) result. Note that the MSB (i.e., B) of the long result is always zero.

Library

ECC.LIB (This function was introduced in Dynamic C 9.01)


Dynamic C Functions << Previous | Next >> rabbit.com