1 /*******************************************************************************************
2 * FILE PURPOSE: Define the ECC api used by all ECC algorithms
3 *******************************************************************************************
4 * FILE NAME: ecc.h
5 *
6 * DESCRIPTION: The API used by all software CRCs is defined
7 *
8 * @file ecc.h
9 *
10 * @brief
11 * The API used by all software CRCs is defined
12 *
13 *******************************************************************************************/
14 #include "types.h"
17 #define ECC_SUCCESS 0
18 #define ECC_FAIL -1
20 Int32 eccCorrectData(Uint8 *puchData, Uint8 *puchEccRead, Uint8 *puchEccCalc);
21 Int32 eccComputeECC(const Uint8 *puchData, Uint8 *puchEccCode);
22 Int32 eccNumBytes(void);
23 Int32 eccBytesPerBlock (void);