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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? template.h

?? 嵌入式單片機下可做對Intel flash編程的代碼
?? H
?? 第 1 頁 / 共 3 頁
字號:
/* ILx32 flash command definitions */
#if ILX_32

   #define TMPL_PROGRAM_SETUP         0x00400040
   #define TMPL_BASE_FLASH_ADDRESS    0x00000000
   #define TMPL_READ_STATUS_REGISTER  0x00700070
   #define TMPL_CLEAR_STATUS_REGISTER 0x00500050
   #define TMPL_READ_ID_CODES         0x00900090
   #define TMPL_READ_QUERY            0x00980098
   #define TMPL_BLOCK_ERASE           0x00200020
   #define TMPL_CONFIRM               0x00D000D0
   #define TMPL_READ_ARRAY            0x00ff00ff
   #define TMPL_CONFIG_SETUP          0x00600060

   /* Status Register Values */
   #define TMPL_BLOCK_LOCKED         0x00020002
   #define TMPL_PROGRAM_SUSPENDED    0x00040004
   #define TMPL_VPP_LOW              0x00080008
   #define TMPL_PROGRAM_ERROR        0x00100010
   #define TMPL_ERASE_ERROR          0x00200020
   #define TMPL_ERASE_SUSPENDED      0x00400040
   #define TMPL_STATUS_READY         0x00800080

   typedef UINT32 TMPL_FDATA; /* flash data item */

#endif /* ILX_32 */

typedef TMPL_FDATA * volatile TMPL_FDATA_PTR; 

/* status structure */
typedef struct TMPL_stat {
   enum TMPL_CommandStat Result;  /* subroutine status */
   volatile TMPL_FDATA   SR;      /* Flash status register value */
}TMPL_Status;

/* Page Break  */

/*
 *  Flash template function declarations
 */

/****************************************************************************
 *
 * TMPL_ClearStatus
 *
 * Description:   
 *    This procedure is called to clear the status register on the flash
 *    device.  See the flash device datasheet for specific details on 
 *    this command.
 *
 * Parameters:
 *    NONE
 *
 * Returns:   
 *    NONE
 *
 * Assumptions:
 *    NONE
 *
 ***************************************************************************/
void TMPL_ClearStatus ( void );


/****************************************************************************
 *
 * TMPL_EraseBlock
 *
 * Description:   
 *
 *    This procedure is called to erase a data block on the flash 
 *    device.  See the flash device datasheet for specific details on
 *    this command.
 *
 * Parameters:
 *
 *    IN      blocknum - the block number on the device.
 *
 *    IN      returnSR - flag to indicate whether the device status register
 *                       value should be returned by this function.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum 
 *                  TMPL_CommandStat and optionally the flash device
 *                  status register value.
 *
 * Assumptions:
 *
 *    NONE
 *
 ***************************************************************************/
TMPL_Status TMPL_EraseBlock ( UINT16 blocknum, 
                              UINT8 returnSR );


/****************************************************************************
 *
 * TMPL_EraseAllBlocks
 *
 * Description:   
 *
 *    This procedure is called to erase all data blocks on the flash 
 *    device.  See the flash device datasheet for specific details on
 *    the block erase command.
 *
 * Parameters:
 *
 *    IN      returnSR - flag to indicate whether the device status register
 *                       value should be returned by this function.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum 
 *                  TMPL_CommandStat and optionally the flash device status
 *                  register value.
 *
 * Assumptions:
 *
 *    NONE
 *
 ***************************************************************************/
TMPL_Status TMPL_EraseAllBlocks ( UINT8 returnSR );


/****************************************************************************
 *
 * TMPL_EraseSuspend
 *
 * Description:   
 *
 *    This procedure is called to issue the erase suspend command to
 *    the flash device.  See the flash device datasheet for specific details 
 *    on this command.
 *
 * Parameters:
 *
 *    IN      blocknum - the block number on the device.
 *
 *    IN      returnSR - flag to indicate whether the device status register
 *                       value should be returned by this function.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum
 *                  TMPL_CommandStat and optionally the flash device
 *                  status register value.
 *
 * Assumptions:
 *
 *    When this function is called the device is currently in the erase 
 *    mode for the block identified.
 *
 ***************************************************************************/
TMPL_Status TMPL_EraseSuspend ( UINT16 blocknum,
                                UINT8 returnSR );


/****************************************************************************
 *
 * TMPL_ExtendedQuery
 *
 * Description:   
 *
 *    This procedure is called to retrieve the extended query
 *    data from the flash device.  See the flash device datasheet for
 *    specific details on this command.
 *
 * Parameters:
 *
 *    OUT      *extquery - pointer to extended query structure
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum 
 *                  TMPL_CommandStat.
 *
 * Assumptions:
 *
 *    NONE
 ***************************************************************************/
TMPL_Status TMPL_ExtendedQuery( struct TMPL_ExtQueryData *extquery );


/****************************************************************************
 *
 * TMPL_GetBlockAddress
 *
 * Description:   
 *
 *    This procedure is called to get the flash starting address for the
 *    specified block number.
 *
 * Parameters:
 *
 *    IN      blocknum - the block number on the device.
 *
 *    OUT     address  - the starting flash address for the specified
 *                       block.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum
 *    TMPL_CommandStat.
 *
 * Assumptions:
 *
 *    NONE
 *
 ***************************************************************************/
TMPL_Status TMPL_GetBlockAddress ( UINT16     blocknum, 
                                   UINT32_PTR address );


/****************************************************************************
 *
 * TMPL_GetFptr
 *
 * Description:   
 *
 *    This procedure is called to return a flash ptr given a 
 *    specified device address.  This routine will likely need to be
 *    provided externally by the template client in order to properly
 *    deal with addressing details that are specific to the HW platform.
 *
 * Parameters:
 *
 *    IN      address  - the flash address 
 *
 * Returns:   
 *
 *    TMPL_FDATA_PTR  - address returned in ptr form
 *
 * Assumptions:
 *
 *    NONE
 *
 ***************************************************************************/
TMPL_FDATA_PTR TMPL_GetFptr( UINT32 address );


/****************************************************************************
 *
 * TMPL_GetQueryAddress
 *
 * Description:   
 *
 *    This procedure is called to get the flash address for a given
 *    query offset.
 *
 *   Parameters:
 *
 *    IN      offset   - query offset location
 *
 *    OUT     address  - the flash address for the specified query
 *                       offset.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum
 *    TMPL_CommandStat.
 *
 * Assumptions:
 *
 *    NONE
 *
 ***************************************************************************/
TMPL_Status TMPL_GetQueryAddress ( UINT32 offset, UINT32_PTR address );


/****************************************************************************
 *
 * TMPL_LockBlock
 *
 * Description:   
 *
 *    This procedure is called to lock the specified block on the flash
 *    device.  See the flash device datasheet for specific details on this 
 *    command.
 *
 * Parameters:
 *
 *    IN      blocknum - the block number on the device.
 *
 *    IN      returnSR - flag to indicate whether the device status register
 *                       value should be returned by this function.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum
 *                  TMPL_CommandStat and optionally the flash device
 *                  status register value.
 *
 * Assumptions:
 *
 *    NONE
 *
 ***************************************************************************/
TMPL_Status TMPL_LockBlock ( UINT16 blocknum,
                             UINT8 returnSR );


/****************************************************************************
 *
 * TMPL_LockDownBlock
 *
 * Description:   
 *
 *    This procedure is called to lockdown the specified block on the flash
 *    device.  See the flash device datasheet for specific details on this 
 *    command.
 *
 * Parameters:
 *
 *    IN      blocknum - the block number on the device.
 *
 *    IN      returnSR - flag to indicate whether the device status register
 *                       value should be returned by this function.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum 
 *                  TMPL_CommandStat and optionally the flash device
 *                  status register value.
 *
 * Assumptions:
 *
 *    NONE
 *
 ***************************************************************************/
TMPL_Status TMPL_LockDownBlock ( UINT16 blocknum,
                                 UINT8 returnSR );


/****************************************************************************
 *
 * TMPL_LockProtection
 *
 * Description:   
 *
 *    This procedure is called to program the protection register user lock
 *    bit on the flash device.  See the flash device datasheet for specific
 *    details on this command.
 *
 * Parameters:
 *
 *    IN      returnSR - flag to indicate whether the device status register
 *                       value should be returned by this function.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum
 *                  TMPL_CommandStat and optionally the flash device
 *                  status register value.
 *
 * Assumptions:
 *
 *    NONE
 *
 ***************************************************************************/
TMPL_Status TMPL_LockProtection ( UINT8 returnSR );


/****************************************************************************
 *
 * TMPL_ProgramFlash
 *
 * Description:   
 *
 *    This procedure is called to program the flash device at the specified 
 *    address with the single specified data value.  See the flash device 
 *    datasheet for specific details on this command.
 *
 * Parameters:
 *
 *    IN      address  - the flash address to be programmed.
 *
 *    IN      item     - the data value to be programmed.
 *
 *    IN      returnSR - flag to indicate whether the device status register
 *                       value should be returned by this function.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum
 *                  TMPL_CommandStat and optionally the flash device
 *                  status register value.
 *
 * Assumptions:
 *
 *    NONE
 *
 ***************************************************************************/
TMPL_Status TMPL_ProgramFlash ( UINT32 address, 
                                UINT8  item,
                                UINT8  returnSR );


/****************************************************************************
 *
 * TMPL_ProgramFlashBuffered
 *
 * Description:   
 *
 *    This procedure is called to program the flash device at the specified 
 *    starting address contiguously with the specified buffer data.  See
 *    the flash device datasheet for specific details on the program
 *    command.
 *
 * Parameters:
 *
 *    IN      address  - the flash address to be programmed.
 *
 *    IN      buffer   - the buffer containing data to be programmed.
 *
 *    IN      numitems - the number of data items contained in the buffer.
 *
 *    IN      returnSR - flag to indicate whether the device status register
 *                       value should be returned by this function.
 *
 * Returns:   
 *
 *    TMPL_Status - includes function return status defined by enum
 *                  TMPL_CommandStat and optionally the flash device
 *                  status register value.
 *
 * Assumptions:
 *
 *    NONE.
 *
 ***************************************************************************/
TMPL_Status TMPL_ProgramFlashBuffered ( UINT32    address, 
                                        UINT8_PTR buffer, 
                                        UINT32    numbytes,
                                        UINT8     returnSR );


/****************************************************************************
 *
 * TMPL_ProgramProtection

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品免费视频| 精品捆绑美女sm三区| 国产一区二区三区在线看麻豆| 亚洲精品美国一| 不卡高清视频专区| 久久精品av麻豆的观看方式| 亚洲成在人线在线播放| 天天影视色香欲综合网老头| 夜色激情一区二区| 午夜精品福利一区二区三区av | 日韩久久免费av| 欧美一卡在线观看| 欧美电影免费观看高清完整版在| 91精品午夜视频| 国产欧美1区2区3区| 国产精品色哟哟| 夜夜爽夜夜爽精品视频| 天天操天天干天天综合网| 久久精品国内一区二区三区| 国产尤物一区二区在线| av福利精品导航| 欧美日韩一区中文字幕| 精品国产123| 亚洲三级理论片| 午夜精品福利一区二区蜜股av| 日本午夜精品一区二区三区电影| 狠狠色丁香婷综合久久| 91网站视频在线观看| 欧美一级在线免费| 国产精品网站在线观看| 亚洲激情av在线| 韩国视频一区二区| 91免费国产在线观看| 欧美一区日韩一区| 成人欧美一区二区三区在线播放| 午夜视频一区二区三区| 国产夫妻精品视频| 欧美一区二区三区成人| 国产精品美女久久久久久久| 午夜电影一区二区| 不卡的av网站| 久久亚洲一区二区三区四区| 亚洲另类春色国产| 国产成人精品免费一区二区| 欧美日韩高清一区二区三区| 国产精品麻豆一区二区| 久久精品国产精品亚洲综合| 91九色最新地址| 国产三级三级三级精品8ⅰ区| 亚洲成av人片一区二区三区| 大陆成人av片| 337p日本欧洲亚洲大胆色噜噜| 中文字幕欧美一| 国产综合久久久久久久久久久久 | 3atv一区二区三区| 亚洲乱码一区二区三区在线观看| 日本va欧美va瓶| 91国在线观看| 国产精品乱人伦| 国产一区欧美日韩| 91麻豆精品国产91久久久久久久久 | 国产一区在线精品| 欧美一区二区三区在线观看视频| 亚洲视频在线一区| 成人aa视频在线观看| 久久综合成人精品亚洲另类欧美| 性做久久久久久免费观看欧美| 99re热视频精品| 国产精品色婷婷| 粉嫩高潮美女一区二区三区| 欧美极品美女视频| 国产中文字幕精品| 欧美成人乱码一区二区三区| 首页国产丝袜综合| 欧美精品在线一区二区三区| 亚洲一区二区欧美日韩| 欧美性极品少妇| 亚洲综合在线免费观看| 日本精品视频一区二区三区| 亚洲嫩草精品久久| 色婷婷精品大视频在线蜜桃视频 | 欧美性受xxxx黑人xyx性爽| 亚洲精品久久久蜜桃| 色又黄又爽网站www久久| 亚洲欧美国产毛片在线| 色女孩综合影院| 亚洲国产综合色| 欧美一区二区在线视频| 久久国产精品72免费观看| 国产香蕉久久精品综合网| 高清不卡在线观看| 一区二区三区不卡在线观看| 在线精品视频免费播放| 日本怡春院一区二区| 久久这里都是精品| 92精品国产成人观看免费 | 国产一区二区三区免费播放| 欧美精品一区二区三区很污很色的| 麻豆久久一区二区| 欧美国产国产综合| 在线免费不卡电影| 久久国产尿小便嘘嘘尿| 久久久国产午夜精品| 日本高清无吗v一区| 日韩电影在线免费看| 久久久精品日韩欧美| 色综合久久天天| 免费观看一级欧美片| 一区视频在线播放| 91超碰这里只有精品国产| 国产自产v一区二区三区c| 亚洲人吸女人奶水| 欧美成人激情免费网| 色婷婷av久久久久久久| 久久精品国产秦先生| 亚洲最新在线观看| 国产亚洲va综合人人澡精品| 欧美日韩大陆一区二区| 国产精品99久久不卡二区| 国产精品一区在线观看你懂的| 国产精品久久久久四虎| 91精品国产综合久久精品| 91亚洲资源网| 国产精品一二三在| 日韩国产欧美在线播放| 亚洲男人天堂av| 国产视频一区在线观看| 欧美人体做爰大胆视频| 色综合一个色综合| 粉嫩av一区二区三区粉嫩| 精品一区二区日韩| 人人精品人人爱| 亚洲国产精品综合小说图片区| 日本一区二区三区免费乱视频| 欧美精品乱码久久久久久按摩| 99久久精品免费精品国产| 国产福利精品导航| 国产精品456| 蜜桃精品视频在线| 亚洲成a天堂v人片| 亚洲123区在线观看| 亚洲精品成人在线| 最新国产の精品合集bt伙计| 国产日韩欧美综合在线| www欧美成人18+| 精品国产免费久久| 日韩一区二区三区av| 6080亚洲精品一区二区| 91精品国产全国免费观看 | 成人ar影院免费观看视频| 激情综合网av| 激情都市一区二区| 国产美女精品人人做人人爽| 蜜臀a∨国产成人精品| 亚洲国产欧美日韩另类综合 | 欧美性一二三区| 色丁香久综合在线久综合在线观看| 成人三级在线视频| 白白色 亚洲乱淫| av中文字幕亚洲| 91视频在线观看免费| 国产高清亚洲一区| 国产999精品久久| 成人一区二区三区在线观看| 丁香六月综合激情| 99精品久久久久久| 色狠狠色狠狠综合| 欧美区一区二区三区| 欧美久久久久中文字幕| 日韩欧美国产三级| 国产日韩欧美电影| 亚洲视频在线一区观看| 性欧美大战久久久久久久久| 天涯成人国产亚洲精品一区av| 免费在线观看一区| 国产一区二三区好的| 国产高清久久久久| 在线免费亚洲电影| 日韩精品一区二区三区在线播放| 久久综合九色综合97婷婷女人| 中文字幕不卡的av| 一区二区三区四区在线免费观看| 亚洲最大色网站| 激情偷乱视频一区二区三区| 成人av资源站| 91麻豆精品国产91久久久久 | 日韩精品成人一区二区三区| 精品一区二区三区久久| 99久久精品免费| 欧美成人video| 椎名由奈av一区二区三区| 日韩国产精品久久久| 99久久夜色精品国产网站| 欧美一区二区三区四区高清| 国产精品免费人成网站| 毛片基地黄久久久久久天堂| 99在线热播精品免费| 日韩三级视频中文字幕| 亚洲一区国产视频| 99精品视频一区|