<< Previous | Next >>

xCalculateECC256

long xCalculateECC256( unsigned long 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 extended memory.

Parameters

data
Physical address of 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