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

📄 iic.h

📁 TDK 6521 SOC 芯片 DEMO程序
💻 H
字号:
/***************************************************************************
 * This code and information is provided "as is" without warranty of any   *
 * kind, either expressed or implied, including but not limited to the     *
 * implied warranties of merchantability and/or fitness for a particular   *
 * purpose.                                                                *
 *                                                                         *
 * Copyright (C) 2005 Teridian Semiconductor Corp. All Rights Reserved.    *
 ***************************************************************************/
//**************************************************************************
//    
//  DESCRIPTION: 71M651x POWER METER - Serial EEPROM Routines. 
// 
//  AUTHOR:  RGV
//
//  HISTORY: See end of file
//
//**************************************************************************
//               
// File: IIC.H
//               
//**************************************************************************
// IIC API to control an IIC bus.  This is compatible with both
// iicdio.c, a fast bool-banging interface, and iiceep.c, a slower,
// less power-hungry interface that uses the chip's internal IIC 
// hardware.
//
#ifndef IIC_H
#define IIC_H 1

// initialize the hardware
void IICInit(void) small reentrant;

// read the bools, one by one (used to initialize)
uint8_t IICGetBit(void) small reentrant;

// an IIC bus's start condition
void IICStart(void) small reentrant;

// an IIC bus's ending condition
void IICStop(void) small reentrant;

// transmit a counted string of bytes to an IIC bus
uint8_t IICWrite(uint8_t xdata *pchOut, int16_t cnt) small reentrant;

#if CLI
// transmit a counted string of identical bytes to an IIC bus
uint8_t IICPad(int16_t cnt, uint8_t bIn) small reentrant;
#endif

// receive a counted string of bytes from an IIC bus
void IICRead(uint8x_t *pchIn, int16_t cnt) small reentrant;

#endif

/***************************************************************************
 * $Log: iic.h,v $
 * Revision 1.14  2006/09/09 01:09:29  gmikef
 * *** empty log message ***
 *
 * Revision 1.13  2006/08/09 00:56:34  tvander
 * *** empty log message ***
 *
 * Revision 1.12  2006/06/15 16:36:55  tvander
 * Fixed reentrancy on iiceep.c and eepromp.c
 * Made parallel code changes to microwire eeprom drivers.
 *
 * Revision 1.11  2006/05/18 23:18:44  tvander
 * 16K and 32K
 * First cut at new requirements.
 * 32K 6521 is grossly tested.
 * All others have a clean compile with C51 8.02
 *
 * Revision 1.10  2006/03/06 03:31:16  Michael T. Fischer
 * More 6530 prep.
 *
 * Revision 1.9  2006/01/10 03:57:51  gmikef
 * Added PDATA support for CE Outputs.
 *
 * Revision 1.7  2005/11/05 02:14:00  tvander
 * Fixed build
 *
 * Revision 1.6  2005/11/05 01:56:26  tvander
 * Added EEPROM erase; Note uwreep.c is not working; don't know why.
 *
 * Revision 1.5  2005/09/22 23:45:04  tvander
 * Clean build all models and unit tests, updated copyright to be fore Teridian
 *
 * Revision 1.4  2005/04/21 01:59:23  gmikef
 * *** empty log message ***
 *
 * Revision 1.6  2005/04/09 02:04:24  gmikef
 * *** empty log message ***
 *
 * Revision 1.3  2005/03/12 00:16:59  tvander
 * Integrated memory types.
 *
 * Revision 1.2  2005/03/11 22:57:02  tvander
 * Added bool, and 8/16/32 data structures
 *
 * Revision 1.1  2005/03/11 22:19:14  tvander
 * *** empty log message ***
 *
 * Revision 1.2  2005/02/17 18:32:26  tvander
 * Added automatic check-in logging to all source code.
 *
 * 2004 DECEMBER 22;    First Version
 * 
 * Revision 1.1  2005/02/01 20:04:40  tvander
 * Reorganization
 *
 * Revision 1.2  2005/01/26 19:52:35  tvander
 * Added update log
 *
 * Copyright (C) 2005 Teridian Semiconductor Corp. All Rights Reserved.    *
 * this program is fully protected by the United States copyright          *
 * laws and is the property of Teridian Semiconductor Corporation.         *
 ***************************************************************************/

⌨️ 快捷键说明

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