⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swecc.h

📁 s3c6410的jtag程序sjf6410_1.0
💻 H
字号:
/*****************************************************************************/
/*                                                                           */
/* PROJECT : AnyStore II                                                     */
/* MODULE  : XSR BML                                                         */
/* NAME    : SW Error Correction Code (Hamming Algorithm) header file        */
/* FILE    : SWEcc.h                                                         */
/* PURPOSE : Definitions and Declarations of SWECC                           */
/*                                                                           */
/*---------------------------------------------------------------------------*/
/*                                                                           */
/*        COPYRIGHT 2003-2006, SAMSUNG ELECTRONICS CO., LTD.                 */
/*                      ALL RIGHTS RESERVED                                  */
/*                                                                           */
/*   Permission is hereby granted to licenses of Samsung Electronics         */
/*   Co., Ltd. products to use or abstract this computer program only in     */
/*   accordance with the terms of the NAND FLASH MEMORY SOFTWARE LICENSE     */
/*   AGREEMENT for the sole purpose of implementing a product based on       */
/*   Samsung Electronics Co., Ltd. products. No other rights to reproduce,   */
/*   use, or disseminate this computer program, whether in part or in whole, */
/*   are granted.                                                            */
/*                                                                           */
/*   Samsung Electronics Co., Ltd. makes no representation or warranties     */
/*   with respect to the performance of this computer program, and           */
/*   specifically disclaims any responsibility for any damages,              */
/*   special or consequential, connected with the use of this program.       */
/*                                                                           */
/*---------------------------------------------------------------------------*/
/*                                                                           */
/* REVISION HISTORY                                                          */
/*                                                                           */
/* - 27/DEC/2002 [Kwangyoon Lee] : first writing                             */
/* - 15/JUL/2003 [SeWook Na] : code modification                             */
/* - 11/AUG/2003 [Janghwan Kim] : code modification                          */
/* - 02/OCT/2003 [Janghwan Kim] : reorganization                             */
/*                                                                           */
/*****************************************************************************/

#ifndef _SWECC_H_
#define _SWECC_H_

/*****************************************************************************/
/* Common Constant Definition                                                */
/*****************************************************************************/
#define M_AREA                       0
#define S_AREA                       1


/*****************************************************************************/
/* ECC Data Strcutuers                                                       */
/*****************************************************************************/
#define SWECC_E_ERROR                1    /* ECC error                       */  
#define SWECC_N_ERROR                0    /* no error                        */
#define SWECC_C_ERROR               -1    /* one bit data error              */
#define SWECC_U_ERROR               -2    /* uncorrectable error             */

//#define BW_X08                       LLD_BW_X08 /* 0 */
//#define BW_X16                       LLD_BW_X16 /* 1 */

#define BW_X08                       0 /* 0 */
#define BW_X16                       1 /* 1 */

/*****************************************************************************/
/* ECC External Function Declarations                                        */
/*****************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/*
VOID    ECC_Gen  (UINT8 *pEcc,  
                  UINT8 *pBuf,  UINT8  nArea, UINT8 nBW);
INT32   ECC_Comp (UINT8 *pEcc1, UINT8 *pEcc2, 
                  UINT8 *pBuf,  UINT8  nArea, UINT8 nBW);
*/

//void ECC_GenM(U8 *pEcc, U32 *pBuf, U8 nBW);
//void  ECC_GenS  (U8 *pEcc,  U8  *pBuf, U8 nBW);

//INT32 ECC_CompM (U8 *pEcc1, U8 *pEcc2, U8 *pBuf, U8 nBW);
//INT32 ECC_CompS (U8 *pEcc1, U8 *pEcc2, U8 *pBuf, U8 nBW);

#ifdef __cplusplus
}
#endif /* __cplusplus */    


#endif /* _SWECC_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -