<< Previous | Next >>

ChkCorrectECC256

void ChkCorrectECC256( void * data, void * old_ecc, void * new_ecc);

Description

Checks the old versus new ECC values for a 256 byte (2048 bit) data buffer, and if necessary and possible (1 bit correction, 2 bit detection), corrects the data in the specified root memory buffer.

Parameters

data
Pointer to the 256 byte data buffer

old_ecc
Pointer to the old (original) 3 byte ECC's buffer

new_ecc
Pointer to the new (current) 3 byte ECC's buffer

Return value

0: Data and ECC are good (no correction is necessary)
1: Data is corrected and ECC is good
2: Data is good and ECC is corrected
3: Data and/or ECC are bad and uncorrectable

Library

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


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