e2prom_1.h

来自「Application Note Abstract This Applicat」· C头文件 代码 · 共 36 行

H
36
字号
/******************************************************************************
*  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 + =
减小字号Ctrl + -
显示快捷键?