📄 iee1.h
字号:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : IEE1.H
** Project : ESV1_0_DJ64
** Processor : MC9S12DJ64BCFU
** Beantype : IntEEPROM
** Version : Bean 02.056, Driver 01.06, CPU db: 2.87.238
** Compiler : Metrowerks HC12 C Compiler
** Date/Time : 2006-6-10, 10:56
** Abstract :
** This device "IntEEPROM" implements internal EEPROM
** Comment :
** The EEPROM array is organized as rows of word (2 bytes), the EEPROM block's
** erase sector size is 2 rows (2 words). Therefore it is preferable
** to use word aligned data for writting - methods SetWord and SetLong -
** with word aligned address.
** Driver expects that all security options of EEPROM are disabled.
** If some security option is enabled methods performing write
** operation (such as SetWord) can return error.
** Settings :
** EEPROM size : 1024 byte
** Initialization:
** Wait in methods : Disabled
** EEPROM clock : 181 kHz
**
** Contents :
** SetByte - byte IEE1_SetByte(word Addr,byte Data);
** GetByte - byte IEE1_GetByte(word Addr,byte *Data);
** SetWord - byte IEE1_SetWord(word Addr,word Data);
** GetWord - byte IEE1_GetWord(word Addr,word *Data);
** SetWait - void IEE1_SetWait(bool Wait);
** Busy - bool IEE1_Busy(void);
**
** (c) Copyright UNIS, spol. s r.o. 1997-2002
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef __IEE1
#define __IEE1
/* MODULE IEE1. */
#include "Cpu.h"
#pragma CODE_SEG IEE1_CODE /* Code section for this module. */
#define EEPROMStart 16384 /* Start address of EEPROM array */
#define EEPROMEnd 17391 /* End address of EEPROM array */
byte IEE1_SetByte(word Addr,byte Data);
/*
** ===================================================================
** Method : IEE1_SetByte (bean IntEEPROM)
**
** Description :
** Method writes given byte to the given address in EEPROM.
** Parameters :
** NAME - DESCRIPTION
** Addr - Address to EEPROM
** Data - Data to write
** Returns :
** --- - Error code
** ===================================================================
*/
byte IEE1_GetByte(word Addr,byte *Data);
/*
** ===================================================================
** Method : IEE1_GetByte (bean IntEEPROM)
**
** Description :
** Method reads byte from the given EEPROM address
** Parameters :
** NAME - DESCRIPTION
** Addr - Address to EEPROM
** * Data - Pointer to returned 8-bit data
** Returns :
** --- - Error code
** ===================================================================
*/
byte IEE1_SetWord(word Addr,word Data);
/*
** ===================================================================
** Method : IEE1_SetWord (bean IntEEPROM)
**
** Description :
** Method writes given word to the given address in EEPROM.
** Parameters :
** NAME - DESCRIPTION
** Addr - Address to EEPROM
** Data - Data to write
** Returns :
** --- - Error code
** ===================================================================
*/
byte IEE1_GetWord(word Addr,word *Data);
/*
** ===================================================================
** Method : IEE1_GetWord (bean IntEEPROM)
**
** Description :
** Method reads word from the given EEPROM address
** Parameters :
** NAME - DESCRIPTION
** Addr - Address to EEPROM
** * Data - Pointer to returned 16-bit data
** Returns :
** --- - Error code
** ===================================================================
*/
#define IEE1_SetWait(Wait) (IEE1_Wait = Wait)
/*
** ===================================================================
** Method : IEE1_SetWait (bean IntEEPROM)
**
** Description :
** Method changes wait status of methods SetByte, SetActByte
** and SetPage.
** Parameters :
** NAME - DESCRIPTION
** Wait - TRUE - methods wait till the write
** operation to EEPROM is finished,
** FALSE - methods do not wait for the end
** of write operation
** Returns : Nothing
** ===================================================================
*/
#define IEE1_Busy() (!ESTAT_CBEIF)
/*
** ===================================================================
** Method : IEE1_Busy (bean IntEEPROM)
**
** Description :
** Method return status of EEPROM device
** Parameters : None
** Returns :
** --- - TRUE/FALSE - EEPROM is busy/ready
** ===================================================================
*/
void IEE1_Init(void);
/*
** ===================================================================
** Method : IEE1_Init (bean IntEEPROM)
**
** Description :
** This method is internal. It is used by Processor Expert
** only.
** ===================================================================
*/
#pragma CODE_SEG DEFAULT /* Change code section to DEFAULT. */
/* END IEE1. */
#endif /* ifndef __IEE1 */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 03.33 for
** the Motorola HCS12 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -