亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? csl_nand.h

?? ccs下對(duì)dm6446的測(cè)試程序
?? H
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/*  ============================================================================
 *   Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005                 
 *                                                                              
 *   Use of this software is controlled by the terms and conditions found in the
 *   license agreement under which this software has been supplied.             
 *   ===========================================================================
 */ 

/** @mainpage NAND CSL 3.x
 *
 * @section Introduction
 *
 * @subsection xxx Purpose and Scope
 * The purpose of this document is to identify a set of common CSL APIs for
 * the NAND module across various devices. The CSL developer is expected to
 * refer to this document while designing APIs for these modules. Some of the  
 * listed APIs may not be applicable to a given NAND module. While other cases
 * this list of APIs may not be sufficient to cover all the features of a
 * particular NAND Module. The CSL developer should use his discretion
 * designing new APIs or extending the existing ones to cover these.
 *
 * @subsection aaa Terms and Abbreviations
 *   -# CSL:  Chip Support Library
 *   -# API:  Application Programmer Interface
 *
 * @subsection References
 *    -# CSL-001-DES, CSL 3.x Design Specification DocumentVersion 1.02
 *
 */

/** @file csl_nand.h
 *
 * @brief    Header file for functional layer of CSL
 *
 * Description
 *    - The different enumerations, structure definitions
 *      and function declarations
 *
 * PATH \\(CSLPATH)\\ipmodules\\nfc\\src
 *
 * Modification 1
 *    - modified on: 28/6/2004
 *    - reason: Created the sources
 *
 * @date 28th June, 2004
 * @author Santosh Narayanan.
 *
 */

/* ============================================================================
 *  Revision History
 *  ===============
 *  11-Oct-2004 Nsr removed extern keyword before the function declaration.
 *  02-sep-2004 Nsr updated CSL_NandObj and added CSL_NandBaseAddress, 
 *                  CSL_NandParam,CSL_NandContext,  CSL_NandConfig structures.
 *                 - Updated comments for H/W control cmd and status 
 *                   query enums.
 *                 - Added prototypes for CSL_nandGetBaseAdddress and
 *                   CSL_NandHwSetupRaw.
 *                 - Changed prototypes of CSL_nandInit, CSL_nandOpen.
 *                 - Updated respective comments along with that of 
 *                   CSL_nandClose.
 * ============================================================================
 */

#ifndef _CSL_NAND_H_
#define _CSL_NAND_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <soc.h>
#include <cslr.h>
#include <csl_error.h>
//#include <csl_sysData.h>
#include <csl_types.h>
#include <cslr_nand.h>

/**************************************************************************\
* NAND global macro declarations
\**************************************************************************/

/** Constants for passing parameters to the NAND HwSetup function.
 */

/** For de-selecting Strobe mode for Async banks */
#define CSL_NAND_ASYNC_SS_DISABLE                   (0)
/** For selecting Strobe mode for Async banks */
#define CSL_NAND_ASYNC_SS_ENABLE                    (1)
/** For disabling the Extended Wait mode for Async banks */
#define CSL_NAND_ASYNC_EW_DISABLE                   (0)
/** For enabling the Extended Wait mode for Async banks */
#define CSL_NAND_ASYNC_EW_ENABLE                    (1)
/** For disabling NAND FLASH on chip select 5 */
#define CSL_NAND_CS5_NAND_DISABLE                   (0)
/** For enabling NAND FLASH on chip select 5 */
#define CSL_NAND_CS5_NAND_ENABLE                    (1)
/** For disabling NAND FLASH on chip select 4 */
#define CSL_NAND_CS4_NAND_DISABLE                   (0)
/** For enabling NAND FLASH on chip select 4 */
#define CSL_NAND_CS4_NAND_ENABLE                    (1)
/** For disabling NAND FLASH on chip select 3 */
#define CSL_NAND_CS3_NAND_DISABLE                   (0)
/** For enabling NAND FLASH on chip select 3 */
#define CSL_NAND_CS3_NAND_ENABLE                    (1)
/** For disabling NAND FLASH on chip select 2 */
#define CSL_NAND_CS2_NAND_DISABLE                   (0)
/** For enabling NAND FLASH on chip select 2 */
#define CSL_NAND_CS2_NAND_ENABLE                    (1)

/** Asynchronous Wait Cycle Configuration defaults  */
#define CSL_NAND_ASYNCWAITCYCLECONFIG_DEFAULTS   {  \
    (Uint16)1,(Uint16)1,(Uint16)1,(Uint16)1,        \
    (Uint16)0,(Uint16)0,(Uint16)0,(Uint16)0,        \
    (Uint16)0x80 }

/** NAND Asynchronous Bank Configuration defaults  */
#define CSL_NAND_ASYNCBANKCONFIG_DEFAULTS  {    \
    (Uint16)0,    \
    (Uint16)0,    \
    (Uint16)0xF,  \
    (Uint16)0X3F, \
    (Uint16)7,    \
    (Uint16)0XF,  \
    (Uint16)0X3F, \
    (Uint16)7,    \
    (Uint16)3,    \
    (Uint16)1    }

/** NAND Flash Control defaults  */
#define CSL_NAND_NANDFLASHCONTROL_DEFAULTS{  \
    (Uint16)0,      \
    (Uint16)0,      \
    (Uint16)0,      \
    (Uint16)0      }

/**************************************************************************\
* NAND global typedef declarations
\**************************************************************************/

/** @brief This object contains the reference to the instance of NAND opened
 *  using the @a CSL_nandOpen().
 *
 *  The pointer to this, is passed to all NAND CSL APIs.
 */
typedef struct CSL_NandObj {
    /** Base-address of the configuration registers of the peripheral
     */
    CSL_NandRegsOvly regs;
    /** This is the instance of NAND being referred to by this object  */
    CSL_InstNum perNum;
}CSL_NandObj;

/** @brief This will have the base-address information for the peripheral
 *  instance
 */
typedef struct {
    /** Base-address of the Configuration registers of NAND.
     */
    CSL_NandRegsOvly regs;
} CSL_NandBaseAddress;

/** @brief NAND specific parameters. Present implementation doesn't have
 *  any specific parameters.
 */
typedef struct {
    /** Bit mask to be used for module specific parameters.
     *  The below declaration is just a place-holder for future
     *  implementation.
     */
    CSL_BitMask16   flags;
} CSL_NandParam;

/** @brief NAND specific context information. Present implementation doesn't
 *  have any Context information.
 */

typedef struct {
    /** Context information of NAND.
     *  The below declaration is just a place-holder for future
     *  implementation.
     */
    Uint16  contextInfo;
} CSL_NandContext;

/** @brief Config structure of NAND. This is used to configure NAND
     * using CSL_HwSetupRaw function
     */
typedef struct  {
    /** Asynchronous Wait Cycle Configuration Register */
    volatile Uint32 AWCCR;
    /** Asynchronous Bank 1 Configuration Register */
    volatile Uint32 AB1CR;
    /** Asynchronous Bank 2 Configuration Register */
    volatile Uint32 AB2CR;
    /** Asynchronous Bank 3 Configuration Register */
    volatile Uint32 AB3CR;
    /** Asynchronous Bank 4 Configuration Register */
    volatile Uint32 AB4CR;
    /** NAND Interrupt Raw Register */
    volatile Uint32 NIRR;
    /** NAND Interrupt Mask Register */
    volatile Uint32 NIMR;
    /** NAND Interrupt Mask Set Register */
    volatile Uint32 NIMSR;
    /** NAND Interrupt Mask Clear Register */
    volatile Uint32 NIMCR;
    /** NAND Flash Control Register */
    volatile Uint32 NANDFCR;
    /** IODFT Test Logic Execution Counter Register */
    volatile Uint32 IODFTECR;
    /** IODFT Test Logic Global Control Register */
    volatile Uint32 IODFTGCR;
    /** NAND DATA Address for NAND_/CE0 */
    volatile Uint32 CE0DATA;
    /** NAND ALE Address for NAND_/CE0 */
    volatile Uint32 CE0ALE;
    /** NAND CLE Address for NAND_/CE0 */
    volatile Uint32 CE0CLE;
    /** NAND DATA Address for NAND_/CE1 */
    volatile Uint32 CE1DATA;
    /** NAND ALE Address for NAND_/CE1 */
    volatile Uint32 CE1ALE;
    /** NAND CLE Address for NAND_/CE1 */
    volatile Uint32 CE1CLE;
    /** NAND DATA Address for NAND_/CE2 */
    volatile Uint32 CE2DATA;
    /** NAND ALE Address for NAND_/CE2 */
    volatile Uint32 CE2ALE;
    /** NAND CLE Address for NAND_/CE2 */
    volatile Uint32 CE2CLE;
    /** NAND DATA Address for NAND_/CE3 */
    volatile Uint32 CE3DATA;
    /** NAND ALE Address for NAND_/CE3 */
    volatile Uint32 CE3ALE;
    /** NAND CLE Address for NAND_/CE3 */
    volatile Uint32 CE3CLE;
} CSL_NandConfig;

/** Default Values for Config structure */
#define CSL_NAND_CONFIG_DEFAULTS {  \
    CSL_NAND_AWCCR_RESETVAL,     \
    CSL_NAND_AB1CR_RESETVAL,     \
    CSL_NAND_AB2CR_RESETVAL,     \
    CSL_NAND_AB3CR_RESETVAL,     \
    CSL_NAND_AB4CR_RESETVAL,     \
    CSL_NAND_NIRR_RESETVAL ,     \
    CSL_NAND_NIMR_RESETVAL ,     \
    CSL_NAND_NIMSR_RESETVAL,     \
    CSL_NAND_NIMCR_RESETVAL,     \
    CSL_NAND_NANDFCR_RESETVAL,   \
    CSL_NAND_IODFTECR_RESETVAL,  \
    CSL_NAND_IODFTGCR_RESETVAL,  \
    CSL_NAND_CE0DATA_RESETVAL,   \
    CSL_NAND_CE0ALE_RESETVAL,    \
    CSL_NAND_CE0CLE_RESETVAL,    \
    CSL_NAND_CE1DATA_RESETVAL,   \
    CSL_NAND_CE1ALE_RESETVAL,    \
    CSL_NAND_CE1CLE_RESETVAL,    \
    CSL_NAND_CE2DATA_RESETVAL,   \
    CSL_NAND_CE2ALE_RESETVAL,    \
    CSL_NAND_CE2CLE_RESETVAL,    \
    CSL_NAND_CE3DATA_RESETVAL,   \
    CSL_NAND_CE3ALE_RESETVAL,    \
    CSL_NAND_CE3CLE_RESETVAL     \
}

/** @brief This data type is used to return the handle to the CSL of NAND
 */
typedef struct CSL_NandObj *CSL_NandHandle;

/** @brief Asynchronous Wait Cycle Configuration structure
*
* All fields needed for Async Wait Cycle configuration are present in this
* structure.
*/
typedef struct {
    /** Wait polarity for pad_wait_i[3]*/
    Uint16 wp3;
    /** Wait polarity for pad_wait_i[2]*/
    Uint16 wp2;
    /** Wait polarity for pad_wait_i[1]*/
    Uint16 wp1;
    /** Wait polarity for pad_wait_i[0]*/
    Uint16 wp0;
    /** pad_wait_i map bits for chip select 5 */
    Uint16 cs3Wait;
    /** pad_wait_i map bits for chip select 4 */
    Uint16 cs2Wait;
     /** pad_wait_i map bits for chip select 3 */
    Uint16 cs1Wait;
     /** pad_wait_i map bits for chip select 2 */
    Uint16 cs0Wait;
    /** Maximum external wait cycles */
    Uint16 maxExtWait;
}CSL_NandAsyncWaitCycleConfig;

/** @brief Asynchronous Bank Configuration structure
*
* All fields needed for Async Bank configuration are present in this structure.
*/
typedef struct {
    /** Select strobe mode */
    Uint16 selectStrobe;
    /** Extend wait mode */
    Uint16 extWait;
    /** Write strobe setup cycles */
    Uint16 writeSetup;
    /** Write strobe duration cycles */
    Uint16 writeStrobe;
    /** Write strobe hold cycles */
    Uint16 writeHold;
    /** Read strobe setup cycles */
    Uint16 readSetup;
     /** Read strobe duration cycles */
    Uint16 readStrobe;
     /** Read strobe hold cycles */
    Uint16 readHold;
     /** Turnaround cycles */
    Uint16 turnAround;
    /** Asyncronous Bank size */
    Uint16 asyncSize;
}CSL_NandAsyncBankConfig;

/** @brief  NAND FLASH Control Register structure
*
*  All fields needed for NAND FLASH Control are present in this structure.
*/
typedef struct {
    /** Chip select 5 Nand */
    Uint16 cs5nand;
    /** Chip select 4 Nand */
    Uint16 cs4nand;
    /** Chip select 3 Nand */
    Uint16 cs3nand;
    /** Chip select 2 Nand */
    Uint16 cs2nand;
}CSL_NandFlashControl;

/** @brief This has all the fields required to configure NAND at Power Up
 *  (After a Hardware Reset) or a Soft Reset
 *
 *  This structure is used to setup or obtain existing setup of
 *  NAND using @a CSL_nandHwSetup() & @a CSL_nandGetHwSetup() functions
 *  respectively.
 */
typedef struct {
    /** Structure for Async Wait Cycle configuration */
    CSL_NandAsyncWaitCycleConfig  *asyncWaitCycleConfig;
    /** Structure for Async Bank 1 Config Registers */
    CSL_NandAsyncBankConfig *asyncBank1Config;
    /** Structure for Async Bank 2 Config Registers */
    CSL_NandAsyncBankConfig *asyncBank2Config;
    /** Structure for Async Bank 3 Config Registers */
    CSL_NandAsyncBankConfig *asyncBank3Config;
    /** Structure for Async Bank 4 Config Registers */
    CSL_NandAsyncBankConfig *asyncBank4Config;
    /** Structure for NAND FLASH control */
    CSL_NandFlashControl *nandFlashControl;
    /** Base address for NAND device */
    Uint32                nandBaseAddress;
}CSL_NandHwSetup;

/** @brief NAND Module ID and Revision structure
*
*  This structure is used for querying the NAND module ID and revision
*/
typedef struct {
    /** NAND Module ID */
    Uint16 moduleID;
    /** NAND Major Revision */
    Uint16 majorRev;
    /** NAND Minor Revision */
    Uint16 minorRev;
}CSL_NandRevStatus;

/** @brief NAND FLASH ECC structure
*
* This structure holds the fields in the Nand Flash ECC Register.
*/
typedef struct {
    /** ECC code calculated while reading/writing NAND Flash.
      For 8_bit NAND Flash, p1o, p2o, and p4o are column parities. p8o to
      p2048o are row parities.For 16_bit NAND Flash, p1o, p2o, p4o and p8o 
      are column parities. p16o to p2048o are row parities.
      Odd Polarity for p2048 */ 
    Uint16 p2048o; 
    
    /** Odd Polarity for p1024 */
    Uint16 p1024o;
    
    /** Odd Polarity for p512 */
    Uint16 p512o;
    
    /** Odd Polarity for p256 */
    Uint16 p256o;
    
    /** Odd Polarity for p128 */
    Uint16 p128o;
    
    /** Odd Polarity for p64 */
    Uint16 p64o;
    
    /** Odd Polarity for p32 */
    Uint16 p32o;
    
    /** Odd Polarity for p16 */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品亚洲porn| 一本色道亚洲精品aⅴ| 91亚洲精华国产精华精华液| 欧美色图第一页| 国产女主播在线一区二区| 亚洲午夜在线电影| 国产成人精品免费视频网站| 欧美一区二区精美| 亚洲精品中文在线| 成人免费看黄yyy456| 精品欧美久久久| 亚洲午夜精品在线| 一本一本大道香蕉久在线精品 | 亚洲视频资源在线| 黄色日韩三级电影| 日韩一区二区电影在线| 亚洲电影一区二区三区| 91美女视频网站| 亚洲欧洲国产日本综合| 国产福利一区在线观看| 久久先锋影音av鲁色资源| 日韩av在线发布| 欧美精品在线观看播放| 亚洲一区二区在线观看视频| 99精品国产一区二区三区不卡| 久久欧美一区二区| 国内久久婷婷综合| 久久蜜桃一区二区| 国产成人av电影在线观看| 欧美成人性战久久| 蜜臀av一区二区在线免费观看| 欧美高清视频一二三区| 亚洲高清不卡在线| 欧美伊人久久久久久久久影院| 亚洲另类在线一区| 色婷婷国产精品综合在线观看| 自拍偷拍国产精品| 日本精品一区二区三区高清 | 国产成人av一区二区三区在线| 日韩精品一区二| 国产真实乱偷精品视频免| 国产视频一区不卡| av在线一区二区三区| 最新日韩在线视频| 欧美揉bbbbb揉bbbbb| 亚洲色欲色欲www在线观看| 91 com成人网| 免费观看成人鲁鲁鲁鲁鲁视频| 日韩欧美一区中文| 国产一区二区不卡| 国产精品久久久久久久久久免费看| 制服丝袜av成人在线看| 麻豆国产精品视频| 久久久五月婷婷| 99精品偷自拍| 亚洲福利视频一区二区| 欧美成人精品高清在线播放| 国产精品亚洲人在线观看| 国产精品久久综合| 欧美卡1卡2卡| 国产麻豆9l精品三级站| 亚洲男人电影天堂| 91精品国产福利在线观看| 国产激情一区二区三区四区 | 偷拍日韩校园综合在线| 精品黑人一区二区三区久久| 成人激情图片网| 日本vs亚洲vs韩国一区三区二区| 久久精品视频一区二区三区| 色婷婷av一区| 久久97超碰色| 亚洲综合激情网| 欧美精品一区二| 欧美日韩一区中文字幕| 成人久久18免费网站麻豆| 亚洲成a人片在线不卡一二三区| 久久久久久久久一| 在线成人免费观看| 国产精品18久久久久久久久久久久| 不卡的av在线播放| 日本最新不卡在线| 国产女人18水真多18精品一级做| av在线不卡免费看| 老鸭窝一区二区久久精品| 久草这里只有精品视频| 亚洲精品乱码久久久久久黑人| 日韩情涩欧美日韩视频| 欧美午夜片在线看| 成人久久视频在线观看| 国内偷窥港台综合视频在线播放| 一区二区三区欧美亚洲| 国产精品丝袜黑色高跟| 亚洲精品在线三区| 欧美一区二区三区婷婷月色| 91一区一区三区| 国产精品888| 九色综合狠狠综合久久| 天涯成人国产亚洲精品一区av| 日韩一区中文字幕| 国产精品美女一区二区| 久久久久国产精品人| 欧美一级二级三级蜜桃| 538prom精品视频线放| 91久久一区二区| 99免费精品视频| 丁香激情综合五月| 国产精品一二一区| 国产精品一区在线观看你懂的| 久久国产精品一区二区| 麻豆91在线看| 日韩av一区二| 日韩成人免费看| 美女久久久精品| 精品一区二区三区影院在线午夜 | 国产精品乱码人人做人人爱| 91国偷自产一区二区三区成为亚洲经典 | 日韩视频免费观看高清在线视频| 欧美午夜精品一区二区三区 | 91免费观看视频在线| 99riav久久精品riav| 欧美国产日韩一二三区| 欧美国产成人精品| 国产精品久久久久久亚洲伦| 国产精品久久久久久福利一牛影视| 国产日韩精品一区二区三区| 国产精品乱人伦中文| 亚洲女子a中天字幕| 亚洲国产精品一区二区久久| 午夜免费欧美电影| 久久国产剧场电影| 国产不卡视频在线观看| 91麻豆国产福利在线观看| 欧美私人免费视频| 日韩一二在线观看| 日本一区二区在线不卡| 亚洲色欲色欲www在线观看| 亚洲成人免费在线观看| 美女视频黄久久| 成人午夜视频网站| 欧美视频一区二区在线观看| 欧美一区二区三区思思人| 久久亚洲精华国产精华液 | 亚洲成年人网站在线观看| 午夜精品福利一区二区蜜股av| 美女国产一区二区| 成人性视频免费网站| 在线免费观看日韩欧美| 欧美一级在线视频| 国产精品福利av| 日韩二区三区四区| 成人污视频在线观看| 欧美日韩和欧美的一区二区| 久久色在线视频| 夜夜嗨av一区二区三区四季av| 麻豆精品精品国产自在97香蕉| av不卡在线播放| 在线成人小视频| 亚洲三级在线看| 久久99久久精品| 91国偷自产一区二区三区成为亚洲经典| 7777女厕盗摄久久久| 欧美国产一区在线| 日韩av一区二区三区四区| 99re免费视频精品全部| 精品日本一线二线三线不卡| 一区二区三区四区不卡视频 | 91福利社在线观看| 久久综合九色综合97婷婷| 亚洲一区av在线| 成人一级黄色片| 精品欧美一区二区三区精品久久| 亚洲一区二区三区在线播放| 粉嫩av亚洲一区二区图片| 欧美一区二区三区啪啪| 亚洲资源中文字幕| 国产福利91精品一区| 精品999在线播放| 日韩国产精品久久| 欧美天堂一区二区三区| 国产精品国产成人国产三级 | 欧美久久高跟鞋激| 国产一区二区三区黄视频 | 久久久久久久久久久久久久久99 | 99国产精品国产精品毛片| 精品卡一卡二卡三卡四在线| 午夜久久久影院| 欧美日免费三级在线| 亚洲免费伊人电影| 99久久久精品免费观看国产蜜| 久久人人97超碰com| 麻豆一区二区三| 欧美一区二区久久| 看片的网站亚洲| 日韩你懂的在线播放| 日韩高清在线一区| 91精品国产欧美一区二区| 日本特黄久久久高潮| 这里只有精品免费| 日韩二区在线观看| 欧美videossexotv100|