⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iee1.h

📁 飞思卡尔智能车的程序。红外循迹
💻 H
字号:
/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : IEE1.H
**     Project   : che_free
**     Processor : MC9S12DG128BCPV
**     Beantype  : IntEEPROM
**     Version   : Bean 02.078, Driver 01.14, CPU db: 2.87.280
**     Compiler  : Metrowerks HC12 C Compiler
**     Date/Time : 2008-3-20, 下午 08:26
**     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                 : 2048 byte
**         Virtual page size           : 4 byte
**         Initialization:
**              Wait in methods        : Enabled
**              EEPROM clock           : 181 kHz
**
**     Contents  :
**         SetByte - byte IEE1_SetByte(IEE1_TAddress Addr,byte Data);
**         GetByte - byte IEE1_GetByte(IEE1_TAddress Addr,byte *Data);
**         SetWord - byte IEE1_SetWord(IEE1_TAddress Addr,word Data);
**         GetWord - byte IEE1_GetWord(IEE1_TAddress Addr,word *Data);
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2005
**     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"


#ifndef __BWUserType_IEE1_TAddress
#define __BWUserType_IEE1_TAddress
  /* User type for addressing of the EEPROM. Actual type depends on the CPU family. */
  typedef word IEE1_TAddress;          /* Type of address to the EEPROM */
#endif

#pragma CODE_SEG IEE1_CODE

#define IEE1_PageSize      4           /* Size of virtual page */
#define EEPROMStart        6144        /* Start address of EEPROM array */
#define EEPROMEnd          8175        /* End address of EEPROM array */

byte IEE1_SetByte(IEE1_TAddress Addr,byte Data);
/*
** ===================================================================
**     Method      :  IEE1_SetByte (bean IntEEPROM)
**
**     Description :
**         Method writes a given byte to a specified address in
**         EEPROM.
**     Parameters  :
**         NAME            - DESCRIPTION
**         Addr            - Address to EEPROM
**         Data            - Data to write
**     Returns     :
**         ---             - Error code, possible codes:  
**                           - ERR_OK 
**                           - ERR_SPEED 
**                           - ERR_BUSY 
**                           - ERR_VALUE 
**                           - ERR_NOTAVAIL 
**                           - ERR_RANGE
** ===================================================================
*/

byte IEE1_GetByte(IEE1_TAddress Addr,byte *Data);
/*
** ===================================================================
**     Method      :  IEE1_GetByte (bean IntEEPROM)
**
**     Description :
**         Method reads a byte from a specified EEPROM address
**     Parameters  :
**         NAME            - DESCRIPTION
**         Addr            - EEPROM Address
**       * Data            - A pointer to the returned 8-bit data
**     Returns     :
**         ---             - Error code, possible codes:  
**                           - ERR_OK 
**                           - ERR_BUSY 
**                           - ERR_RANGE
** ===================================================================
*/

byte IEE1_SetWord(IEE1_TAddress Addr,word Data);
/*
** ===================================================================
**     Method      :  IEE1_SetWord (bean IntEEPROM)
**
**     Description :
**         Method writes a given word to the specified address in
**         EEPROM.
**     Parameters  :
**         NAME            - DESCRIPTION
**         Addr            - Address to EEPROM
**         Data            - Data to write
**     Returns     :
**         ---             - Error code, possible codes:  
**                           - ERR_OK 
**                           - ERR_SPEED 
**                           - ERR_BUSY 
**                           - ERR_VALUE 
**                           - ERR_NOTAVAIL 
**                           - ERR_RANGE
** ===================================================================
*/

byte IEE1_GetWord(IEE1_TAddress Addr,word *Data);
/*
** ===================================================================
**     Method      :  IEE1_GetWord (bean IntEEPROM)
**
**     Description :
**         Method reads a word from the specified EEPROM address
**     Parameters  :
**         NAME            - DESCRIPTION
**         Addr            - Address to EEPROM
**       * Data            - Pointer to returned 16-bit data
**     Returns     :
**         ---             - Error code, possible codes:  
**                           - ERR_OK 
**                           - ERR_BUSY 
**                           - ERR_RANGE
** ===================================================================
*/

void IEE1_Init(void);
/*
** ===================================================================
**     Method      :  IEE1_Init (bean IntEEPROM)
**
**     Description :
**         Initializes the associated peripheral(s) and the bean internal 
**         variables. The Method is called automatically as a part of the 
**         application initialization code
**         This method is internal. It is used by Processor Expert only.
** ===================================================================
*/

#pragma CODE_SEG DEFAULT

/* END IEE1. */

#endif /* ifndef __IEE1 */
/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 2.96 [03.76]
**     for the Freescale HCS12 series of microcontrollers.
**
** ###################################################################
*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -