📄 e2prom_1.h
字号:
/******************************************************************************
* FILENAME: E2PROM_1.h
* VERSION: Rev A, 2002 JUL 25
*******************************************************************************
* DESCRIPTION:
* E2PROM_1 E2PROM User Module header file. These routines use the
* FlashBlock functions to emulate an EEPROM device. These algorithms
* translate flash block oriented operations into byte-wise operations.
*
* See E2PROMLIB.INC and E2PROMLIB.ASM for specific detail of operation.
*******************************************************************************
* Copyright (c) Cypress MicroSystems 2000-2002. All Rights Reserved.
******************************************************************************/
/* include the global header file */
#include <m8c.h>
/* Create pragmas to support proper argument and return value passing */
#pragma fastcall E2PROM_1_bE2Write
#pragma fastcall E2PROM_1_E2Read
/**************************************************
* Prototypes of E2PROM API. For a definition of
* functions see E2PROM_1.inc.
**************************************************/
extern CHAR E2PROM_1_bE2Write(WORD wAddr, BYTE * pbData, WORD wByteCount, CHAR cTemperature);
extern void E2PROM_1_E2Read(WORD wAddr, BYTE * pbDataDest, WORD wByteCount);
/* Return value for bE2Write */
#define NOERROR 0
#define FAILURE -1
#define STACKOVERFLOW -2
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -